Class Role

java.lang.Object
org.dspace.xmlworkflow.Role
All Implemented Interfaces:
Aware, BeanNameAware

public class Role extends Object implements BeanNameAware
The role that is responsible for a certain step. Can either be on a group in the repository, or a collection group or an item role will check for workflowItemRoles
Author:
Bram De Schouwer (bram.deschouwer at dot com), Kevin Van de Velde (kevin at atmire dot com), Ben Bosman (ben at atmire dot com), Mark Diggory (markd at atmire dot com)
  • Constructor Details

    • Role

      public Role()
  • Method Details

    • setBeanName

      public void setBeanName(String s)
      Specified by:
      setBeanName in interface BeanNameAware
    • getId

      public String getId()
    • getName

      public String getName()
    • getDescription

      public String getDescription()
    • isInternal

      public boolean isInternal()
    • getScope

      public Role.Scope getScope()
    • getMembers

      public RoleMembers getMembers(Context context, XmlWorkflowItem wfi) throws SQLException
      Throws:
      SQLException
    • setName

      @Autowired(required=true) public void setName(String name)
      The name specified in the name attribute of a role will be used to lookup the in DSpace. The lookup will depend on the scope specified in the "scope" attribute:
      Parameters:
      name -
    • setDescription

      public void setDescription(String description)
      Set the description of the role
      Parameters:
      description - the description
    • setScope

      public void setScope(Role.Scope scope)
      Set the scope attribute, depending on the scope the users will be retrieved in the following manner: * collection: The collection value specifies that the group will be configured at the level of the collection. * repository: The repository scope uses groups that are defined at repository level in DSpace. item: The item scope assumes that a different action in the workflow will assign a number of EPersons or Groups to a specific workflow-item in order to perform a step.
      Parameters:
      scope - the scope parameter
    • setInternal

      public void setInternal(boolean internal)
      Optional attribute which isn't really used at the moment, false by default
      Parameters:
      internal - if the role is internal
    • isDeleteTemporaryGroup

      public boolean isDeleteTemporaryGroup()
    • setDeleteTemporaryGroup

      public void setDeleteTemporaryGroup(boolean deleteTemporaryGroup)
      Setter for config that indicated whether or not to delete temporary group made attached to the WorkflowItemRole for this role in AutoAssignAction
      Parameters:
      deleteTemporaryGroup -