Class ContainedInViewMacro
java.lang.Object
com.synopsys.arc.jenkins.plugins.rolestrategy.RoleMacroExtension
com.synopsys.arc.jenkins.plugins.rolestrategy.macros.ContainedInViewMacro
- All Implemented Interfaces:
IMacroExtension,ExtensionPoint
Checks if the item is contained in one of the views.
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns description of the macro (including parameters).getName()Get name of the appropriate macro.booleanhasPermission(PermissionEntry sid, Permission p, RoleType type, AccessControlled accessControlledItem, Macro macro) Check if user belongs to specified Macro.booleanIsApplicable(RoleType roleType) Check if the macro extension is applicable to specified role type.Methods inherited from class com.synopsys.arc.jenkins.plugins.rolestrategy.RoleMacroExtension
all, getMacro, getMacroExtensionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.synopsys.arc.jenkins.plugins.rolestrategy.IMacroExtension
hasPermission
-
Constructor Details
-
ContainedInViewMacro
public ContainedInViewMacro()
-
-
Method Details
-
getName
Description copied from interface:IMacroExtensionGet name of the appropriate macro.- Returns:
- Name of the macro
-
IsApplicable
Description copied from interface:IMacroExtensionCheck if the macro extension is applicable to specified role type.- Parameters:
roleType- Type to be checked- Returns:
trueif the macro is applicable to the specified role type
-
hasPermission
public boolean hasPermission(PermissionEntry sid, Permission p, RoleType type, AccessControlled accessControlledItem, Macro macro) Description copied from interface:IMacroExtensionCheck if user belongs to specified Macro.- Parameters:
sid- SID to be checkedp- Permissiontype- Type of the role to be checkedaccessControlledItem- Itemmacro- Macro with parameters- Returns:
- True if user satisfies macro's requirements
-
getDescription
Description copied from interface:IMacroExtensionReturns description of the macro (including parameters).- Returns:
- Description of the macro
-