Class NodeOwnershipAction
java.lang.Object
com.synopsys.arc.jenkins.plugins.ownership.OwnershipAction
com.synopsys.arc.jenkins.plugins.ownership.ItemOwnershipAction<Computer>
com.synopsys.arc.jenkins.plugins.ownership.nodes.NodeOwnershipAction
- All Implemented Interfaces:
IOwnershipItem<Computer>,Action,ModelObject
Node ownership action.
- Since:
- 0.2
- Author:
- Oleg Nenashev
-
Field Summary
Fields inherited from class com.synopsys.arc.jenkins.plugins.ownership.OwnershipAction
ICON_FILENAME, URL_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanorg.kohsuke.stapler.HttpResponsedoOwnersSubmit(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) static StringgetAbsoluteUrl(Computer computer) Get absolute URL of the computer.Gets a permission for "Manage Ownership" action.Gets ownership description.Gets a permission for "Configure project-specific security" action.helper()Gets a helper for typical operations.Methods inherited from class com.synopsys.arc.jenkins.plugins.ownership.ItemOwnershipAction
getDescribedItemMethods inherited from class com.synopsys.arc.jenkins.plugins.ownership.OwnershipAction
getConfigureSpecificAccessTitle, getDisplayName, getIconFileName, getManageOwnershipTitle, getUrlName
-
Constructor Details
-
NodeOwnershipAction
-
-
Method Details
-
actionIsAvailable
public boolean actionIsAvailable()- Specified by:
actionIsAvailablein classOwnershipAction
-
getOwnerPermission
Description copied from class:ItemOwnershipActionGets a permission for "Manage Ownership" action.- Specified by:
getOwnerPermissionin classItemOwnershipAction<Computer>- Returns:
- A permission to be checked
-
getProjectSpecificPermission
Description copied from class:ItemOwnershipActionGets a permission for "Configure project-specific security" action.- Specified by:
getProjectSpecificPermissionin classItemOwnershipAction<Computer>- Returns:
- A permission to be checked
-
helper
Description copied from interface:IOwnershipItemGets a helper for typical operations.- Returns:
- Helper
-
getOwnership
Description copied from interface:IOwnershipItemGets ownership description. By default, returnsOwnershipDescription.DISABLED_DESCR- Specified by:
getOwnershipin interfaceIOwnershipItem<Computer>- Overrides:
getOwnershipin classItemOwnershipAction<Computer>- Returns:
- Ownership Description (not null)
-
getAbsoluteUrl
Get absolute URL of the computer. This method is just a copy of getAbsoluteUrl from AbstractItem.- Parameters:
computer-- Returns:
-
doOwnersSubmit
public org.kohsuke.stapler.HttpResponse doOwnersSubmit(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException, UnsupportedEncodingException, javax.servlet.ServletException, Descriptor.FormException - Throws:
IOExceptionUnsupportedEncodingExceptionjavax.servlet.ServletExceptionDescriptor.FormException
-