@Extension public class BuildableJobMacro extends RoleMacroExtension
Constructor and Description |
---|
BuildableJobMacro() |
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Returns description of the macro (including parameters).
|
String |
getName()
Get name of the appropriate macro.
|
boolean |
hasPermission(String sid,
hudson.security.Permission p,
RoleType type,
hudson.security.AccessControlled item,
Macro macro)
Check if user belongs to specified Macro
|
boolean |
IsApplicable(RoleType roleType)
Check if the macro extension is applicable to specified role type
|
all, getMacro, getMacroExtension
public String getName()
IMacroExtension
public boolean IsApplicable(RoleType roleType)
IMacroExtension
roleType
- Type to be checkedtrue
if the macro is applicable to the specified role typepublic boolean hasPermission(String sid, hudson.security.Permission p, RoleType type, hudson.security.AccessControlled item, Macro macro)
IMacroExtension
sid
- SID to be checkedp
- Permissiontype
- Type of the role to be checkeditem
- Itemmacro
- Macro with parameterspublic String getDescription()
IMacroExtension
Copyright © 2016–2018. All rights reserved.