public class Participant extends AbstractResource implements java.lang.Cloneable
AbstractResource.BlockType
_blockedDuration, _blockType, _description, _isAvailable, _notes, _resourceID
Constructor and Description |
---|
Participant()
CONSTRUCTORS
|
Participant(boolean newParticipant) |
Participant(Element e) |
Participant(java.lang.String id) |
Participant(java.lang.String lastName,
java.lang.String firstName,
java.lang.String userID) |
Participant(java.lang.String lastName,
java.lang.String firstName,
java.lang.String userid,
boolean persist) |
Participant(java.lang.String lastname,
java.lang.String firstname,
java.lang.String userID,
boolean isAdministrator,
java.util.Set<Position> positions,
java.util.Set<Role> roles,
java.util.Set<Capability> capabilities) |
Modifier and Type | Method and Description |
---|---|
void |
addCapability(Capability cap) |
void |
addCapability(java.lang.String cid) |
void |
addPosition(Position pos) |
void |
addPosition(java.lang.String pid) |
void |
addRole(Role role) |
void |
addRole(java.lang.String rid) |
void |
attachWorkQueue(WorkQueue q,
boolean persisting) |
Participant |
clone() |
QueueSet |
createQueueSet(boolean persisting) |
void |
fromXML(java.lang.String xml) |
java.util.Set<AbstractResourceAttribute> |
getAttributeReferences() |
java.util.Set<Capability> |
getCapabilities() |
java.lang.String |
getFirstName() |
java.lang.String |
getFullName() |
java.lang.String |
getLastName() |
java.lang.String |
getName() |
java.lang.String |
getPassword() |
java.util.Set<Position> |
getPositions() |
java.util.Set<Role> |
getRoles() |
java.lang.String |
getUserID() |
UserPrivileges |
getUserPrivileges() |
QueueSet |
getWorkQueues() |
QueueSet |
getWorkQueues(boolean init)
returns an initialised qSet if init is true
|
boolean |
hasCapability(Capability cap) |
boolean |
hasPosition(Position pos) |
boolean |
hasRole(Role role) |
boolean |
isAdministrator() |
boolean |
isOrgGroupMember(OrgGroup og) |
boolean |
isPersisting() |
boolean |
isValidPassword(java.lang.String password) |
void |
mergeCapabilities(java.util.Set<Capability> capSet) |
void |
mergePositions(java.util.Set<Position> posSet) |
void |
mergeRoles(java.util.Set<Role> roleSet) |
void |
reconstitute(Element e) |
void |
removeAttributeReferences() |
void |
removeCapabilities() |
void |
removeCapability(Capability cap) |
void |
removeCapability(java.lang.String cid) |
void |
removePosition(Position pos) |
void |
removePosition(java.lang.String pid) |
void |
removePositions() |
void |
removeRole(Role role) |
void |
removeRole(java.lang.String rid) |
void |
removeRoles() |
void |
save() |
void |
setAdministrator(boolean canAdministrate) |
void |
setAttributeReferences(java.util.Set<AbstractResourceAttribute> attributes) |
void |
setCapabilities(java.util.Set<Capability> capSet) |
void |
setFirstName(java.lang.String name) |
void |
setID(java.lang.String id)
GETTERS & SETTERS
|
void |
setLastName(java.lang.String name) |
void |
setPassword(java.lang.String pw) |
void |
setPassword(java.lang.String pw,
boolean encrypt) |
void |
setPersisting(boolean persisting) |
void |
setPositions(java.util.Set<Position> posSet) |
void |
setRoles(java.util.Set<Role> roleSet) |
void |
setUserID(java.lang.String id) |
void |
setUserPrivileges(UserPrivileges up) |
void |
setValues(Participant p) |
void |
setWorkQueues(QueueSet q) |
java.lang.String |
toXML() |
equals, getBlockedDuration, getBlockType, getDescription, getID, getNotes, hashCode, isAvailable, isAvailable, merge, setBlockedDuration, setBlockedDuration, setBlockType, setDescription, setNotes, toString
public Participant()
public Participant(boolean newParticipant)
public Participant(java.lang.String id)
public Participant(java.lang.String lastName, java.lang.String firstName, java.lang.String userID)
public Participant(java.lang.String lastName, java.lang.String firstName, java.lang.String userid, boolean persist)
public Participant(java.lang.String lastname, java.lang.String firstname, java.lang.String userID, boolean isAdministrator, java.util.Set<Position> positions, java.util.Set<Role> roles, java.util.Set<Capability> capabilities)
public Participant(Element e)
public Participant clone()
clone
in class AbstractResource
public void setValues(Participant p)
public void save() throws ResourceGatewayException
ResourceGatewayException
public void setPersisting(boolean persisting)
public boolean isPersisting()
public void setID(java.lang.String id)
setID
in class AbstractResource
public java.lang.String getName()
getName
in class AbstractResource
public java.lang.String getFirstName()
public void setFirstName(java.lang.String name)
public java.lang.String getLastName()
public void setLastName(java.lang.String name)
public java.lang.String getFullName()
public java.lang.String getUserID()
public void setUserID(java.lang.String id)
public java.lang.String getPassword()
public void setPassword(java.lang.String pw)
public void setPassword(java.lang.String pw, boolean encrypt)
public boolean isValidPassword(java.lang.String password)
public boolean isAdministrator()
public void setAdministrator(boolean canAdministrate)
public void setUserPrivileges(UserPrivileges up)
public UserPrivileges getUserPrivileges()
public java.util.Set<Role> getRoles()
public void setRoles(java.util.Set<Role> roleSet)
public void addRole(Role role)
public void addRole(java.lang.String rid) throws ResourceGatewayException
ResourceGatewayException
public void mergeRoles(java.util.Set<Role> roleSet)
public void removeRole(Role role)
public void removeRole(java.lang.String rid)
public void removeRoles()
public boolean hasRole(Role role)
public java.util.Set<Capability> getCapabilities()
public void setCapabilities(java.util.Set<Capability> capSet)
public void addCapability(Capability cap)
public void addCapability(java.lang.String cid) throws ResourceGatewayException
ResourceGatewayException
public void mergeCapabilities(java.util.Set<Capability> capSet)
public void removeCapability(Capability cap)
public void removeCapability(java.lang.String cid)
public void removeCapabilities()
public boolean hasCapability(Capability cap)
public java.util.Set<Position> getPositions()
public void setPositions(java.util.Set<Position> posSet)
public void addPosition(Position pos)
public void addPosition(java.lang.String pid) throws ResourceGatewayException
ResourceGatewayException
public void removePosition(Position pos)
public void removePosition(java.lang.String pid)
public void removePositions()
public void mergePositions(java.util.Set<Position> posSet)
public boolean hasPosition(Position pos)
public void removeAttributeReferences()
public java.util.Set<AbstractResourceAttribute> getAttributeReferences()
public void setAttributeReferences(java.util.Set<AbstractResourceAttribute> attributes)
public boolean isOrgGroupMember(OrgGroup og)
public QueueSet getWorkQueues()
public void setWorkQueues(QueueSet q)
public QueueSet getWorkQueues(boolean init)
public QueueSet createQueueSet(boolean persisting)
public void attachWorkQueue(WorkQueue q, boolean persisting)
public java.lang.String toXML()
public void fromXML(java.lang.String xml)
public void reconstitute(Element e)
Copyright © 2004-2014 The YAWL Foundation.