Class PermissionTemplateDefinition
java.lang.Object
org.jenkinsci.plugins.rolestrategy.casc.PermissionTemplateDefinition
- All Implemented Interfaces:
Comparable<PermissionTemplateDefinition>
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public class PermissionTemplateDefinition
extends Object
implements Comparable<PermissionTemplateDefinition>
PermissionTemplate definition. Used for custom formatting in Casc.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
getName()
final PermissionTemplate
Return the corresponding PermissionTemplate object.int
hashCode()
-
Constructor Details
-
PermissionTemplateDefinition
@DataBoundConstructor public PermissionTemplateDefinition(@NonNull String name, @CheckForNull Collection<String> permissions)
-
-
Method Details
-
getPermissionTemplate
Return the corresponding PermissionTemplate object.- Returns:
- permission template
-
getName
-
getPermissions
-
compareTo
- Specified by:
compareTo
in interfaceComparable<PermissionTemplateDefinition>
-
equals
-
hashCode
public int hashCode()
-