Interface UserAssignment

    • Method Detail

      • getPrincipal

        String getPrincipal()
        The principal for the User that the set of roles is associated with. NOTE: This field is considered the Primary Key for this object.
        Returns:
        the principal for the User.
      • addRoleName

        void addRoleName​(Role role)
        Add a rolename to this assignment.
        Parameters:
        role - the role.
      • addRoleName

        void addRoleName​(String roleName)
        Add a rolename to this assignment.
        Parameters:
        roleName - the role name.
      • addRoleId

        void addRoleId​(String roleId)
        Adds a role id to this assignment
        Parameters:
        roleId -
      • removeRoleName

        void removeRoleName​(Role role)
        Remove a rolename from this assignment.
        Parameters:
        role - the role who's name is to be removed.
      • removeRoleName

        void removeRoleName​(String roleName)
        Remove a role name from this assignment.
        Parameters:
        roleName - the role name to be removed.
      • setPrincipal

        void setPrincipal​(String principal)
        Set the user principal object for this association. NOTE: This field is considered the Primary Key for this object.
        Parameters:
        principal -
      • setRoleNames

        void setRoleNames​(List<String> roles)
        Set the roles names for this user.
        Parameters:
        roles - the List of <String> objects representing the Role Names.
      • isPermanent

        boolean isPermanent()
        Test to see if the object is a permanent object or not.
        Returns:
        true if the object is permanent.
      • setPermanent

        void setPermanent​(boolean permanent)
        Set flag indicating if the object is a permanent object or not.
        Parameters:
        permanent - true if the object is permanent.