|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jalios.jstore.BasicStorable
com.jalios.jcms.Data
com.jalios.jcms.workspace.WKRole
public class WKRole
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.jalios.jcms.Data |
---|
Data.AuthorComparator, Data.AuthorSelector, Data.CdateSelector, Data.DataNameComparator, Data.DeletableSelector, Data.ImportSelector, Data.MdateSelector, Data.OpAuthorComparator |
Nested classes/interfaces inherited from class com.jalios.jstore.BasicStorable |
---|
BasicStorable.CdateComparator, BasicStorable.IdComparator, BasicStorable.MdateComparator |
Field Summary | |
---|---|
static int |
AND_MODE
|
protected ArrayList |
groupList
|
protected int |
groupMode
|
protected boolean |
isInvolvedAuthor
|
protected boolean |
isOpen
|
protected ArrayList |
memberList
|
protected int |
memberMode
|
protected Set |
memberSet
|
static int |
OR_MODE
|
static String |
REVISION
|
protected int[] |
roleWeight
|
protected boolean[] |
roleWeightType
|
static boolean |
WEIGHT_COUNT
|
static boolean |
WEIGHT_PERCENTAGE
|
protected Workspace |
workspace
|
Fields inherited from class com.jalios.jcms.Data |
---|
author, channel, DISPLAY_URL_EXTRA_INFO, extension, extraDataMap, extraDBDataMapToSaveOnOp, importMap, lockDate, lockMember, opAuthor, opDelegate |
Fields inherited from class com.jalios.jstore.BasicStorable |
---|
cdate, ddate, id, mdate, store |
Fields inherited from interface com.jalios.util.JaliosConstants |
---|
CRLF, MILLIS_IN_ONE_DAY, MILLIS_IN_ONE_HOUR, MILLIS_IN_ONE_MINUTE, MILLIS_IN_ONE_MONTH, MILLIS_IN_ONE_SECOND, MILLIS_IN_ONE_WEEK, MILLIS_IN_ONE_YEAR |
Fields inherited from interface com.jalios.jcms.mashup.ImportConstants |
---|
IMPORT_ALARM_MGR, IMPORT_AUTHOR_PROP, IMPORT_CATEGORY_DEFAULT, IMPORT_DC_ATTR, IMPORT_DC_STEP, IMPORT_DIR, IMPORT_ENABLED, IMPORT_JDOM_ELEMENT, IMPORT_LOG_FILE, IMPORT_LOG_MAX, IMPORT_OPTIONS, IMPORT_OPTIONS_DC_CONTEXT, IMPORT_ROOT_PROP, IMPORT_SOURCE_FILE, IMPORT_SOURCE_PREFIX_PROP, IMPORT_SOURCES_DIR, IMPORT_STEP_CLEAN, IMPORT_STEP_IMPORT, IMPORT_STEP_UPDATE_REF, IMPORT_WS_PROP |
Fields inherited from interface com.jalios.jcms.mashup.MashupConstants |
---|
DATA_TAG, DATASET_TAG, FIELD_CLASS, FIELD_ENTRY, FIELD_ITEM, FIELD_KEY, FIELD_NAME, FIELD_TAG, FIELD_VALUE, FILE_FIELD, FILE_ID, FILE_MTIME, FILE_SIZE, FILE_TAG, FILE_TICKET, FILESET_TAG |
Constructor Summary | |
---|---|
WKRole()
|
|
WKRole(WKRole other)
|
Method Summary | |
---|---|
void |
addGroup(Group grp,
int weight,
boolean type)
|
void |
addMember(Member member)
Convenient method to add a Member |
ArrayList |
getGroupList()
|
int |
getGroupMode()
|
ArrayList |
getMemberList()
|
int |
getMemberMode()
|
String |
getName(String lang)
Returns the localized name of the WFRole bound to this WKRole. |
int[] |
getRoleWeight()
|
boolean[] |
getRoleWeightType()
|
int |
getWeightForGroup(Group group)
Return the value of the weight for a Group |
WFRole |
getWFRole()
Returns the WFRole bound to this WKRole. |
Set |
getWorkerSet(Publication pub,
boolean searchInGroups)
Returns a Set of Member that can work on the role. |
Workflow |
getWorkflow()
Returns the Workflow bound to this WKRole. |
String |
getWorkflowLabel(String lang)
Returns the localized label of the workflow this WFRole is bound to. |
Workspace |
getWorkspace()
|
boolean |
isGroupModeAND()
|
boolean |
isGroupModeOR()
|
boolean |
isInvolved(Group group)
Check if the group is involved to this Role |
boolean |
isInvolved(Member member,
boolean searchInGroups)
Check if the member is involved in the role or belongs to a groups involved in this Role |
boolean |
isInvolved(Publication pub,
Member member,
boolean searchInGroups)
Check if the member is involved in the role or belongs to a groups involved in this Role |
boolean |
isInvolvedAuthor()
|
boolean |
isMemberModeAND()
|
boolean |
isMemberModeOR()
|
boolean |
isOpen()
Returns true if this role is open (i.e. a writer can choose the validators). |
boolean |
isPercentageForGroup(Group group)
|
void |
setGroupList(ArrayList groupList)
|
void |
setGroupMode(int groupMode)
|
void |
setInvolvedAuthor(boolean involvedAuthor)
|
void |
setMemberList(ArrayList memberList)
|
void |
setMemberMode(int memberMode)
|
void |
setOpen(boolean isOpen)
Set the value of isOpen. |
void |
setRoleWeight(int[] roleWeight)
|
void |
setRoleWeightType(boolean[] roleWeightType)
|
void |
setWorkspace(Workspace workspace)
|
Methods inherited from class com.jalios.jstore.BasicStorable |
---|
clearId, compareTo, equals, getAttribute, getAttributes, getCdate, getDdate, getId, getMdate, getStore, getUrid, hasBeenUpdated, isStored, resolveAtt, resolveVal, setAttributes, setCdate, setDdate, setId, setStore, toXml |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String REVISION
public static final boolean WEIGHT_PERCENTAGE
public static final boolean WEIGHT_COUNT
public static final int AND_MODE
public static final int OR_MODE
protected ArrayList groupList
protected ArrayList memberList
protected int[] roleWeight
protected boolean[] roleWeightType
protected boolean isInvolvedAuthor
protected boolean isOpen
protected int groupMode
protected int memberMode
protected transient Workspace workspace
protected transient Set memberSet
Constructor Detail |
---|
public WKRole()
public WKRole(WKRole other)
Method Detail |
---|
public void addMember(Member member)
member
- the Member to addpublic void addGroup(Group grp, int weight, boolean type)
grp
- the Group to addweight
- the weight of the grouptype
- the weight type of the group % or quantitypublic int getWeightForGroup(Group group)
group
- A group
public boolean isPercentageForGroup(Group group)
group
- the group
public boolean isInvolved(Member member, boolean searchInGroups)
member
- the member to checksearchInGroups
- if we should look in member groups
public boolean isInvolved(Publication pub, Member member, boolean searchInGroups)
pub
- the publication to workOn or null if it is a global testmember
- the member to checksearchInGroups
- if we should look in member groups
public boolean isInvolved(Group group)
group
-
public Set getWorkerSet(Publication pub, boolean searchInGroups)
pub
- the publication
(since the author must be added if he is involved in this role
and the selected workers must have rights to read the publication)searchInGroups
- if true add members from groups
public WFRole getWFRole()
public String getName(String lang)
lang
- the language.
public Workflow getWorkflow()
public String getWorkflowLabel(String lang)
lang
- the language.
public ArrayList getGroupList()
public void setGroupList(ArrayList groupList)
groupList
- The groupList to set.public ArrayList getMemberList()
public void setMemberList(ArrayList memberList)
memberList
- The memberList to set.public Workspace getWorkspace()
public void setWorkspace(Workspace workspace)
workspace
- The workgroup to set.public int[] getRoleWeight()
public void setRoleWeight(int[] roleWeight)
roleWeight
- The roleWeight to set.public boolean[] getRoleWeightType()
public void setRoleWeightType(boolean[] roleWeightType)
roleWeightType
- The roleWeightType to set.public boolean isInvolvedAuthor()
public void setInvolvedAuthor(boolean involvedAuthor)
involvedAuthor
- The involveAuthor to set.public boolean isOpen()
public void setOpen(boolean isOpen)
isOpen
- Value to assign to isOpen.public int getGroupMode()
public void setGroupMode(int groupMode)
public int getMemberMode()
public void setMemberMode(int memberMode)
public boolean isMemberModeOR()
public boolean isMemberModeAND()
public boolean isGroupModeOR()
public boolean isGroupModeAND()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |