Package org.dspace.xmlworkflow
Class Role
java.lang.Object
org.dspace.xmlworkflow.Role
- All Implemented Interfaces:
Aware,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)
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()getMembers(Context context, XmlWorkflowItem wfi) getName()getScope()booleanbooleanvoidvoidsetDeleteTemporaryGroup(boolean deleteTemporaryGroup) Setter for config that indicated whether or not to delete temporary group made attached to the WorkflowItemRole for this role in AutoAssignActionvoidsetDescription(String description) Set the description of the rolevoidsetInternal(boolean internal) Optional attribute which isn't really used at the moment, false by defaultvoidThe name specified in the name attribute of a role will be used to lookup the in DSpace.voidsetScope(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
-
Constructor Details
-
Role
public Role()
-
-
Method Details
-
setBeanName
- Specified by:
setBeanNamein interfaceBeanNameAware
-
getId
-
getName
-
getDescription
-
isInternal
public boolean isInternal() -
getScope
-
getMembers
- Throws:
SQLException
-
setName
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
Set the description of the role- Parameters:
description- the description
-
setScope
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-
-