public class ResourceDataSet
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ResourceDataSet.Identifier |
static class |
ResourceDataSet.ResUnit |
Constructor and Description |
---|
ResourceDataSet(DataSource source) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
addCapability(Capability c) |
java.lang.String |
addNonHumanCategory(NonHumanCategory c) |
java.lang.String |
addNonHumanResource(NonHumanResource r) |
java.lang.String |
addOrgGroup(OrgGroup o) |
java.lang.String |
addParticipant(Participant p) |
java.lang.String |
addPosition(Position p) |
java.lang.String |
addRole(Role r) |
void |
augmentDataSourceAsRequired() |
java.util.Set<Participant> |
castToParticipantSet(java.util.Set<AbstractResource> resources) |
java.lang.String |
checkCyclicAttributeReference(AbstractResourceAttribute resource,
java.lang.String parentID) |
java.lang.String |
checkCyclicOrgGroupReference(OrgGroup orgGroup,
java.lang.String refID) |
java.lang.String |
checkCyclicPositionReference(Position position,
java.lang.String refID) |
java.lang.String |
checkCyclicRoleReference(Role role,
java.lang.String refID) |
void |
delCapability(Capability c) |
void |
delNonHumanCategory(NonHumanCategory r) |
void |
delNonHumanResource(NonHumanResource r) |
void |
delOrgGroup(OrgGroup o) |
void |
delParticipant(Participant p) |
void |
delPosition(Position p) |
void |
delRole(Role r) |
void |
freeResource(java.lang.String caseID,
java.lang.String id) |
java.util.Set<Capability> |
getCapabilities() |
java.lang.String |
getCapabilitiesAsXML() |
Capability |
getCapability(java.lang.String cid) |
Capability |
getCapabilityByLabel(java.lang.String label) |
java.util.Map<java.lang.String,java.lang.String> |
getCapabilityIdentifiers() |
java.util.Map<java.lang.String,Capability> |
getCapabilityMap() |
java.util.Set<Participant> |
getCapabilityParticipants(java.lang.String cid) |
java.lang.String |
getCapabilityParticipantsAsXML(java.lang.String cid) |
long |
getChangeStamp(ResourceDataSet.ResUnit unit) |
DataSource |
getDataSource(ResourceDataSet.ResUnit resource) |
Participant |
getImmediateSupervisor(Participant p)
Gets the immediate supervisor of a participant.
|
Participant |
getImmediateSupervisor(java.lang.String pid)
Gets the immediate supervisor of a participant.
|
long |
getLastChangeStamp() |
java.util.Set<NonHumanCategory> |
getNonHumanCategories() |
java.lang.String |
getNonHumanCategoriesAsXML() |
NonHumanCategory |
getNonHumanCategory(java.lang.String cid) |
NonHumanCategory |
getNonHumanCategoryByName(java.lang.String name) |
java.util.Map<java.lang.String,java.lang.String> |
getNonHumanCategoryIdentifiers() |
java.util.Map<java.lang.String,NonHumanCategory> |
getNonHumanCategoryMap() |
java.lang.String |
getNonHumanCategoryNames() |
java.lang.String |
getNonHumanCategorySet() |
NonHumanResource |
getNonHumanResource(java.lang.String rid) |
NonHumanResource |
getNonHumanResourceByName(java.lang.String name) |
java.util.Map<java.lang.String,java.lang.String> |
getNonHumanResourceIdentifiers() |
java.util.Map<java.lang.String,NonHumanResource> |
getNonHumanResourceMap() |
java.lang.String |
getNonHumanResourceNames() |
java.util.Set<NonHumanResource> |
getNonHumanResources() |
java.util.Set<NonHumanResource> |
getNonHumanResources(NonHumanCategory category,
java.lang.String subcategory) |
java.util.Set<NonHumanResource> |
getNonHumanResources(java.lang.String id,
java.lang.String subcategory) |
java.lang.String |
getNonHumanResourcesAsXML() |
java.util.Set<NonHumanResource> |
getNonHumanResourcesByName(java.lang.String category,
java.lang.String subcategory) |
java.util.Set<NonHumanSubCategory> |
getNonHumanSubCategories() |
java.lang.String |
getNonHumanSubCategoriesAsXML() |
java.lang.String |
getNonHumanSubCategoriesAsXML(java.lang.String categoryID) |
OrgGroup |
getOrgGroup(java.lang.String oid) |
OrgGroup |
getOrgGroupByLabel(java.lang.String label) |
java.util.Map<java.lang.String,java.lang.String> |
getOrgGroupIdentifiers() |
java.util.Map<java.lang.String,OrgGroup> |
getOrgGroupMap() |
java.util.Set<Participant> |
getOrgGroupMembers(OrgGroup o) |
java.util.Set<Participant> |
getOrgGroupParticipants(java.lang.String oid) |
java.util.Set<OrgGroup> |
getOrgGroups() |
java.lang.String |
getOrgGroupsAsXML() |
Participant |
getParticipant(java.lang.String pid) |
java.util.Set<Capability> |
getParticipantCapabilities(java.lang.String pid) |
java.lang.String |
getParticipantCapabilitiesAsXML(java.lang.String pid) |
int |
getParticipantCount() |
Participant |
getParticipantFromUserID(java.lang.String userID) |
java.util.Map<java.lang.String,java.lang.String> |
getParticipantIdentifiers() |
java.util.Map<java.lang.String,java.lang.String> |
getParticipantIdentifiers(ResourceDataSet.Identifier idType) |
java.util.Map<java.lang.String,java.lang.String> |
getParticipantIdentifiers(java.lang.String idStr) |
java.util.Map<java.lang.String,Participant> |
getParticipantMap() |
java.lang.String |
getParticipantNames() |
java.util.Set<Position> |
getParticipantPositions(java.lang.String pid) |
java.lang.String |
getParticipantPositionsAsXML(java.lang.String pid) |
java.util.Set<Role> |
getParticipantRoles(java.lang.String pid) |
java.lang.String |
getParticipantRolesAsXML(java.lang.String pid) |
java.util.Set<Participant> |
getParticipants() |
java.lang.String |
getParticipantsAsXML() |
java.util.Set<Participant> |
getParticipantsInDescendantRoles(Role owner) |
java.util.Set<Participant> |
getParticipantsReportingTo(java.lang.String pid)
Gets the complete set of Participants that ultimately report to the
position(s) held by a Participant
|
java.util.Set<Participant> |
getParticipantsReportingToPosition(Position manager)
Gets the set of Participants the ultimately report to the Position passed
|
java.util.Set<Participant> |
getParticipantsWithCapability(java.lang.String capabilityName) |
java.util.Set<Participant> |
getParticipantsWithPosition(java.lang.String positionName) |
java.util.Set<Participant> |
getParticipantsWithRole(java.lang.String roleName) |
java.lang.String |
getParticpantsWithCapabilityAsXML(java.lang.String capabilityName) |
java.lang.String |
getParticpantsWithPositionAsXML(java.lang.String positionName) |
java.lang.String |
getParticpantsWithRoleAsXML(java.lang.String roleName) |
Position |
getPosition(java.lang.String pid) |
Position |
getPositionByLabel(java.lang.String label) |
java.util.Map<java.lang.String,java.lang.String> |
getPositionIdentifiers() |
java.util.Map<java.lang.String,Position> |
getPositionMap() |
java.util.Set<Participant> |
getPositionParticipants(java.lang.String pid) |
java.lang.String |
getPositionParticipantsAsXML(java.lang.String posid) |
java.util.Set<Position> |
getPositions() |
java.lang.String |
getPositionsAsXML() |
AbstractResource |
getResource(java.lang.String id) |
ResourceDataSet.ResUnit |
getResUnit(java.lang.String name) |
Role |
getRole(java.lang.String rid) |
Role |
getRoleByName(java.lang.String roleName) |
java.util.Map<java.lang.String,java.lang.String> |
getRoleIdentifiers() |
java.util.Map<java.lang.String,Role> |
getRoleMap() |
java.lang.String |
getRoleNames() |
java.util.Set<Participant> |
getRoleParticipants(java.lang.String rid) |
java.lang.String |
getRoleParticipantsAsXML(java.lang.String rid) |
java.util.Set<AbstractResource> |
getRoleParticipantsWithCapability(java.lang.String rid,
java.lang.String cid) |
java.util.Set<Role> |
getRoles() |
java.lang.String |
getRolesAsXML() |
boolean |
hasDefaultDataSource(ResourceDataSet.ResUnit resource) |
void |
importCapability(Capability c) |
void |
importNonHumanCategory(NonHumanCategory r) |
void |
importNonHumanResource(NonHumanResource r) |
void |
importOrgGroup(OrgGroup o) |
boolean |
importParticipant(Participant p) |
void |
importPosition(Position p) |
void |
importRole(Role r) |
boolean |
isDataEditable(ResourceDataSet.ResUnit resource) |
boolean |
isDataEditable(java.lang.String resName) |
boolean |
isExternalOrgDataModsAllowed() |
boolean |
isKnownCapability(java.lang.String cid) |
boolean |
isKnownCapabilityName(java.lang.String name) |
boolean |
isKnownNonHumanCategory(NonHumanCategory c) |
boolean |
isKnownNonHumanCategory(java.lang.String rid) |
boolean |
isKnownNonHumanCategoryName(java.lang.String name) |
boolean |
isKnownNonHumanResource(NonHumanResource r) |
boolean |
isKnownNonHumanResource(java.lang.String rid) |
boolean |
isKnownNonHumanResourceName(java.lang.String name) |
boolean |
isKnownOrgGroup(java.lang.String oid) |
boolean |
isKnownOrgGroupName(java.lang.String name) |
boolean |
isKnownParticipant(Participant p) |
boolean |
isKnownParticipant(java.lang.String pid) |
boolean |
isKnownPosition(java.lang.String pid) |
boolean |
isKnownPositionName(java.lang.String name) |
boolean |
isKnownRole(Role r) |
boolean |
isKnownRole(java.lang.String rid) |
boolean |
isKnownRoleName(java.lang.String name) |
boolean |
isUserAuthenticationExternal() |
boolean |
logResourceBusy(java.lang.String caseID,
java.lang.String id,
boolean isBusy) |
void |
putCapability(Capability c) |
void |
putNonHumanCategory(NonHumanCategory r) |
void |
putNonHumanResource(NonHumanResource r) |
void |
putOrgGroup(OrgGroup o) |
void |
putParticipant(Participant p) |
void |
putPosition(Position p) |
void |
putRole(Role r) |
void |
removeCapability(Capability c) |
boolean |
removeCapability(java.lang.String cid) |
void |
removeNonHumanCategory(NonHumanCategory r) |
boolean |
removeNonHumanCategory(java.lang.String rid) |
void |
removeNonHumanResource(NonHumanResource r) |
boolean |
removeNonHumanResource(java.lang.String rid) |
void |
removeOrgGroup(OrgGroup o) |
boolean |
removeOrgGroup(java.lang.String oid) |
boolean |
removeParticipant(Participant p) |
void |
removePosition(Position p) |
boolean |
removePosition(java.lang.String pid) |
void |
removeRole(Role r) |
boolean |
removeRole(java.lang.String rid) |
java.util.Set<java.lang.String> |
resolveParticipantIds(java.lang.String anyID) |
java.lang.String |
resolveParticipantIdsAsXML(java.lang.String anyID) |
java.util.Set<Participant> |
resolveParticipants(java.lang.String anyID) |
java.util.Set<Participant> |
resolveParticipantsFromResourceName(java.lang.String anyName) |
void |
setAllowExternalOrgDataMods(boolean allow) |
void |
setCapabilities(java.util.Map<java.lang.String,Capability> capabilities,
DataSource source) |
void |
setDataSource(ResourceDataSet.ResUnit resource,
DataSource source) |
void |
setExternalUserAuthentication(boolean externalAuth) |
void |
setNonHumanCategories(java.util.Map<java.lang.String,NonHumanCategory> resources,
DataSource source) |
void |
setNonHumanResources(java.util.Map<java.lang.String,NonHumanResource> resources,
DataSource source) |
void |
setOrgGroups(java.util.Map<java.lang.String,OrgGroup> groups,
DataSource source) |
void |
setParticipants(java.util.Map<java.lang.String,Participant> participants,
DataSource source) |
void |
setPositions(java.util.Map<java.lang.String,Position> positions,
DataSource source) |
void |
setRoles(java.util.Map<java.lang.String,Role> roles,
DataSource source) |
void |
updateCapability(Capability c) |
void |
updateNonHumanCategory(NonHumanCategory r) |
void |
updateNonHumanResource(NonHumanResource r) |
void |
updateOrgGroup(OrgGroup o) |
boolean |
updateParticipant(Participant p) |
void |
updatePosition(Position p) |
void |
updateResource(AbstractResource r) |
void |
updateResourceAttribute(java.lang.Object obj) |
void |
updateRole(Role r) |
public ResourceDataSet(DataSource source)
public void setAllowExternalOrgDataMods(boolean allow)
public boolean isExternalOrgDataModsAllowed()
public boolean isDataEditable(ResourceDataSet.ResUnit resource)
public boolean isDataEditable(java.lang.String resName)
public void setExternalUserAuthentication(boolean externalAuth)
public boolean isUserAuthenticationExternal()
public void setDataSource(ResourceDataSet.ResUnit resource, DataSource source)
public DataSource getDataSource(ResourceDataSet.ResUnit resource)
public boolean hasDefaultDataSource(ResourceDataSet.ResUnit resource)
public ResourceDataSet.ResUnit getResUnit(java.lang.String name)
public long getChangeStamp(ResourceDataSet.ResUnit unit)
public long getLastChangeStamp()
public void setParticipants(java.util.Map<java.lang.String,Participant> participants, DataSource source)
public void setRoles(java.util.Map<java.lang.String,Role> roles, DataSource source)
public void setCapabilities(java.util.Map<java.lang.String,Capability> capabilities, DataSource source)
public void setPositions(java.util.Map<java.lang.String,Position> positions, DataSource source)
public void setOrgGroups(java.util.Map<java.lang.String,OrgGroup> groups, DataSource source)
public void setNonHumanResources(java.util.Map<java.lang.String,NonHumanResource> resources, DataSource source)
public void setNonHumanCategories(java.util.Map<java.lang.String,NonHumanCategory> resources, DataSource source)
public void augmentDataSourceAsRequired()
public void putParticipant(Participant p)
public void putCapability(Capability c)
public void putRole(Role r)
public void putPosition(Position p)
public void putOrgGroup(OrgGroup o)
public void putNonHumanResource(NonHumanResource r)
public void putNonHumanCategory(NonHumanCategory r)
public void delParticipant(Participant p)
public void delRole(Role r)
public void delCapability(Capability c)
public void delPosition(Position p)
public void delOrgGroup(OrgGroup o)
public void delNonHumanResource(NonHumanResource r)
public void delNonHumanCategory(NonHumanCategory r)
public java.lang.String addParticipant(Participant p)
public java.lang.String addRole(Role r)
public java.lang.String addCapability(Capability c)
public java.lang.String addPosition(Position p)
public java.lang.String addOrgGroup(OrgGroup o)
public java.lang.String addNonHumanResource(NonHumanResource r)
public java.lang.String addNonHumanCategory(NonHumanCategory c)
public boolean importParticipant(Participant p)
public void importRole(Role r)
public void importCapability(Capability c)
public void importPosition(Position p)
public void importOrgGroup(OrgGroup o)
public void importNonHumanResource(NonHumanResource r)
public void importNonHumanCategory(NonHumanCategory r)
public void updateResource(AbstractResource r)
public boolean updateParticipant(Participant p)
public void updateResourceAttribute(java.lang.Object obj)
public void updateRole(Role r)
public void updateCapability(Capability c)
public void updatePosition(Position p)
public void updateOrgGroup(OrgGroup o)
public void updateNonHumanResource(NonHumanResource r)
public void updateNonHumanCategory(NonHumanCategory r)
public boolean removeParticipant(Participant p)
public void removeRole(Role r)
public void removeCapability(Capability c)
public void removePosition(Position p)
public void removeOrgGroup(OrgGroup o)
public void removeNonHumanResource(NonHumanResource r)
public void removeNonHumanCategory(NonHumanCategory r)
public boolean removeRole(java.lang.String rid)
public boolean removeCapability(java.lang.String cid)
public boolean removePosition(java.lang.String pid)
public boolean removeOrgGroup(java.lang.String oid)
public boolean removeNonHumanResource(java.lang.String rid)
public boolean removeNonHumanCategory(java.lang.String rid)
public AbstractResource getResource(java.lang.String id)
public Participant getParticipant(java.lang.String pid)
public Role getRole(java.lang.String rid)
public Capability getCapability(java.lang.String cid)
public Position getPosition(java.lang.String pid)
public OrgGroup getOrgGroup(java.lang.String oid)
public NonHumanResource getNonHumanResource(java.lang.String rid)
public NonHumanCategory getNonHumanCategory(java.lang.String cid)
public java.util.Set<Participant> getParticipants()
public java.util.Set<Role> getRoles()
public java.util.Set<Position> getPositions()
public java.util.Set<Capability> getCapabilities()
public java.util.Set<OrgGroup> getOrgGroups()
public java.util.Set<NonHumanResource> getNonHumanResources()
public java.util.Set<NonHumanCategory> getNonHumanCategories()
public java.util.Set<NonHumanSubCategory> getNonHumanSubCategories()
public java.util.Map<java.lang.String,Participant> getParticipantMap()
public java.util.Map<java.lang.String,Role> getRoleMap()
public java.util.Map<java.lang.String,Position> getPositionMap()
public java.util.Map<java.lang.String,Capability> getCapabilityMap()
public java.util.Map<java.lang.String,OrgGroup> getOrgGroupMap()
public java.util.Map<java.lang.String,NonHumanResource> getNonHumanResourceMap()
public java.util.Map<java.lang.String,NonHumanCategory> getNonHumanCategoryMap()
public java.util.Map<java.lang.String,java.lang.String> getParticipantIdentifiers()
public java.util.Map<java.lang.String,java.lang.String> getParticipantIdentifiers(java.lang.String idStr)
public java.util.Map<java.lang.String,java.lang.String> getParticipantIdentifiers(ResourceDataSet.Identifier idType)
public java.util.Map<java.lang.String,java.lang.String> getRoleIdentifiers()
public java.util.Map<java.lang.String,java.lang.String> getPositionIdentifiers()
public java.util.Map<java.lang.String,java.lang.String> getCapabilityIdentifiers()
public java.util.Map<java.lang.String,java.lang.String> getOrgGroupIdentifiers()
public java.util.Map<java.lang.String,java.lang.String> getNonHumanResourceIdentifiers()
public java.util.Map<java.lang.String,java.lang.String> getNonHumanCategoryIdentifiers()
public java.lang.String getNonHumanSubCategoriesAsXML(java.lang.String categoryID)
public java.lang.String getNonHumanCategorySet()
public int getParticipantCount()
public Role getRoleByName(java.lang.String roleName)
public Position getPositionByLabel(java.lang.String label)
public OrgGroup getOrgGroupByLabel(java.lang.String label)
public Capability getCapabilityByLabel(java.lang.String label)
public NonHumanResource getNonHumanResourceByName(java.lang.String name)
public NonHumanCategory getNonHumanCategoryByName(java.lang.String name)
public java.util.Set<NonHumanResource> getNonHumanResources(NonHumanCategory category, java.lang.String subcategory)
public java.util.Set<NonHumanResource> getNonHumanResources(java.lang.String id, java.lang.String subcategory)
public java.util.Set<NonHumanResource> getNonHumanResourcesByName(java.lang.String category, java.lang.String subcategory)
public boolean isKnownRoleName(java.lang.String name)
public boolean isKnownCapabilityName(java.lang.String name)
public boolean isKnownPositionName(java.lang.String name)
public boolean isKnownOrgGroupName(java.lang.String name)
public boolean isKnownNonHumanResourceName(java.lang.String name)
public boolean isKnownNonHumanCategoryName(java.lang.String name)
public boolean isKnownParticipant(Participant p)
public boolean isKnownParticipant(java.lang.String pid)
public boolean isKnownRole(Role r)
public boolean isKnownRole(java.lang.String rid)
public boolean isKnownCapability(java.lang.String cid)
public boolean isKnownPosition(java.lang.String pid)
public boolean isKnownOrgGroup(java.lang.String oid)
public boolean isKnownNonHumanResource(NonHumanResource r)
public boolean isKnownNonHumanResource(java.lang.String rid)
public boolean isKnownNonHumanCategory(NonHumanCategory c)
public boolean isKnownNonHumanCategory(java.lang.String rid)
public java.lang.String getParticipantNames()
public java.lang.String getRoleNames()
public java.lang.String getNonHumanResourceNames()
public java.lang.String getNonHumanCategoryNames()
public java.util.Set<Role> getParticipantRoles(java.lang.String pid)
public java.util.Set<Position> getParticipantPositions(java.lang.String pid)
public java.util.Set<Capability> getParticipantCapabilities(java.lang.String pid)
public java.util.Set<Participant> getRoleParticipants(java.lang.String rid)
public java.util.Set<Participant> getOrgGroupParticipants(java.lang.String oid)
public java.util.Set<AbstractResource> getRoleParticipantsWithCapability(java.lang.String rid, java.lang.String cid)
public java.util.Set<Participant> getCapabilityParticipants(java.lang.String cid)
public java.util.Set<Participant> getPositionParticipants(java.lang.String pid)
public java.util.Set<Participant> getParticipantsWithRole(java.lang.String roleName)
public java.util.Set<Participant> getParticipantsWithPosition(java.lang.String positionName)
public java.util.Set<Participant> getParticipantsWithCapability(java.lang.String capabilityName)
public java.util.Set<Participant> getOrgGroupMembers(OrgGroup o)
public java.util.Set<Participant> resolveParticipants(java.lang.String anyID)
public java.util.Set<Participant> resolveParticipantsFromResourceName(java.lang.String anyName)
public Participant getParticipantFromUserID(java.lang.String userID)
public java.util.Set<java.lang.String> resolveParticipantIds(java.lang.String anyID)
public java.lang.String resolveParticipantIdsAsXML(java.lang.String anyID)
public java.util.Set<Participant> getParticipantsReportingTo(java.lang.String pid)
pid
- the id of the 'manager' Participantpublic java.util.Set<Participant> getParticipantsReportingToPosition(Position manager)
manager
- the 'manager' Positionpublic Participant getImmediateSupervisor(java.lang.String pid)
pid
- the id of the participant to get the supervisor ofpublic Participant getImmediateSupervisor(Participant p)
p
- the participant to get the supervisor ofpublic java.util.Set<Participant> getParticipantsInDescendantRoles(Role owner)
public java.lang.String getParticipantsAsXML()
public java.lang.String getRolesAsXML()
public java.lang.String getCapabilitiesAsXML()
public java.lang.String getPositionsAsXML()
public java.lang.String getOrgGroupsAsXML()
public java.lang.String getNonHumanResourcesAsXML()
public java.lang.String getNonHumanSubCategoriesAsXML()
public java.lang.String getNonHumanCategoriesAsXML()
public java.lang.String getParticipantRolesAsXML(java.lang.String pid)
public java.lang.String getParticipantPositionsAsXML(java.lang.String pid)
public java.lang.String getParticipantCapabilitiesAsXML(java.lang.String pid)
public java.lang.String getParticpantsWithRoleAsXML(java.lang.String roleName)
public java.lang.String getRoleParticipantsAsXML(java.lang.String rid)
public java.lang.String getParticpantsWithPositionAsXML(java.lang.String positionName)
public java.lang.String getPositionParticipantsAsXML(java.lang.String posid)
public java.lang.String getParticpantsWithCapabilityAsXML(java.lang.String capabilityName)
public java.lang.String getCapabilityParticipantsAsXML(java.lang.String cid)
public java.util.Set<Participant> castToParticipantSet(java.util.Set<AbstractResource> resources)
public java.lang.String checkCyclicAttributeReference(AbstractResourceAttribute resource, java.lang.String parentID)
public java.lang.String checkCyclicRoleReference(Role role, java.lang.String refID)
public java.lang.String checkCyclicPositionReference(Position position, java.lang.String refID)
public java.lang.String checkCyclicOrgGroupReference(OrgGroup orgGroup, java.lang.String refID)
public boolean logResourceBusy(java.lang.String caseID, java.lang.String id, boolean isBusy)
public void freeResource(java.lang.String caseID, java.lang.String id)
Copyright © 2004-2014 The YAWL Foundation.