Class ModelTemplate

  • All Implemented Interfaces:
    Serializable

    public class ModelTemplate
    extends Object
    implements Serializable
    model templates specify a role and its corresponding permissions, child roles and parent roles to link to, however they are generated at runtime with additional input .
    Version:
    $Revision$ $Date$
    See Also:
    Serialized Form
    • Method Detail

      • addChildRole

        public void addChildRole​(String string)
        Method addChildRole.
        Parameters:
        string -
      • addChildTemplate

        public void addChildTemplate​(String string)
        Method addChildTemplate.
        Parameters:
        string -
      • addParentRole

        public void addParentRole​(String string)
        Method addParentRole.
        Parameters:
        string -
      • addParentTemplate

        public void addParentTemplate​(String string)
        Method addParentTemplate.
        Parameters:
        string -
      • equals

        public boolean equals​(Object other)
        Method equals.
        Overrides:
        equals in class Object
        Parameters:
        other -
        Returns:
        boolean
      • getId

        public String getId()
        Get the id field.
        Returns:
        String
      • isAssignable

        public boolean isAssignable()
        Get boolean specifying if a given role can assigned.
        Returns:
        boolean
      • isPermanent

        public boolean isPermanent()
        Get boolean specifying if a given role can be removed once created.
        Returns:
        boolean
      • isPermanentResource

        public boolean isPermanentResource()
        Get boolean specifying if the resource generated with this template can be removed once created.
        Returns:
        boolean
      • removeChildRole

        public void removeChildRole​(String string)
        Method removeChildRole.
        Parameters:
        string -
      • removeParentRole

        public void removeParentRole​(String string)
        Method removeParentRole.
        Parameters:
        string -
      • setAssignable

        public void setAssignable​(boolean assignable)
        Set boolean specifying if a given role can assigned.
        Parameters:
        assignable -
      • setChildRoles

        public void setChildRoles​(List<String> childRoles)
        Set the id of other role profiles to assign as children to this role, can accept 'foo - ${resource}'.
        Parameters:
        childRoles -
      • setChildTemplates

        public void setChildTemplates​(List<String> childTemplates)
        Set the id of other templates to assign as children to this role, can accept 'foo - ${resource}'.
        Parameters:
        childTemplates -
      • setDelimiter

        public void setDelimiter​(String delimiter)
        Set the delimiter field.
        Parameters:
        delimiter -
      • setDescription

        public void setDescription​(String description)
        Set description of this role.
        Parameters:
        description -
      • setId

        public void setId​(String id)
        Set the id field.
        Parameters:
        id -
      • setNamePrefix

        public void setNamePrefix​(String namePrefix)
        Set the namePrefix field.
        Parameters:
        namePrefix -
      • setParentRoles

        public void setParentRoles​(List<String> parentRoles)
        Set the id of other role profiles to have create a child relationship to this role, can accept 'foo - ${resource}'.
        Parameters:
        parentRoles -
      • setParentTemplates

        public void setParentTemplates​(List<String> parentTemplates)
        Set the id of other templates to have create a child relationship to this role, can accept 'foo - ${resource}'.
        Parameters:
        parentTemplates -
      • setPermanent

        public void setPermanent​(boolean permanent)
        Set boolean specifying if a given role can be removed once created.
        Parameters:
        permanent -
      • setPermanentResource

        public void setPermanentResource​(boolean permanentResource)
        Set boolean specifying if the resource generated with this template can be removed once created.
        Parameters:
        permanentResource -