Class RolesImpl

    • Constructor Detail

      • RolesImpl

        public RolesImpl()
        Constructor
    • Method Detail

      • addRole

        public void addRole​(Role role)
        Description copied from interface: Roles
        Add an role to the collection
        Specified by:
        addRole in interface Roles
        Parameters:
        role - to be added
      • createRole

        public Role createRole()
        Description copied from interface: Roles
        Create a Role
        Specified by:
        createRole in interface Roles
        Returns:
        an object implementing Role
      • getRole

        public Role getRole​(String name)
        Description copied from interface: Roles
        Get the role definition with given name
        Specified by:
        getRole in interface Roles
        Parameters:
        name - role name
        Returns:
        wanted role definition
      • getRoles

        public Role[] getRoles()
        Description copied from interface: Roles
        Get the roles definition
        Specified by:
        getRoles in interface Roles
        Returns:
        roles definition
      • iterateRole

        public Iterator<Role> iterateRole()
        Description copied from interface: Roles
        Iterate through the Role objects
        Specified by:
        iterateRole in interface Roles
        Returns:
        an iterator
      • removeRole

        public void removeRole​(String strRoleName)
                        throws WorkflowException
        Description copied from interface: Roles
        Remove an role from the collection
        Specified by:
        removeRole in interface Roles
        Parameters:
        strRoleName - the name of the role to be removed.
        Throws:
        WorkflowException - if the role cannot be found.