Class ModelRole

    • Method Detail

      • addChildRole

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

        public void addParentRole​(String string)
        Method addParentRole.
        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
      • getName

        public String getName()
        Get either a normal name, or 'name - ${resource}'.
        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
      • 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 -
      • 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 -
      • setName

        public void setName​(String name)
        Set either a normal name, or 'name - ${resource}'.
        Parameters:
        name -
      • 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 -
      • setPermanent

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