public class ResourceGatewayClient extends Interface_Client
| Constructor and Description |
|---|
ResourceGatewayClient()
empty constructor
|
ResourceGatewayClient(java.lang.String uri)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
addCapability(java.lang.String name,
java.lang.String description,
java.lang.String notes,
java.lang.String handle)
Adds a new Capability to the Resource Service's org data
|
java.lang.String |
addNonHumanCategory(java.lang.String category,
java.lang.String handle)
Adds a new category to the set of NonHumanResource categories
|
java.lang.String |
addNonHumanResource(java.lang.String name,
java.lang.String category,
java.lang.String subcategory,
java.lang.String description,
java.lang.String notes,
java.lang.String handle)
Adds a new NonHumanResource to the Resource Service's org data
|
java.lang.String |
addNonHumanSubCategory(java.lang.String id,
java.lang.String subcategory,
java.lang.String handle)
Adds a new subcategory to the specified NonHumanResource category
|
java.lang.String |
addNonHumanSubCategoryByName(java.lang.String category,
java.lang.String subcategory,
java.lang.String handle)
Adds a new subcategory to the specified NonHumanResource category.
|
java.lang.String |
addOrgGroup(java.lang.String name,
java.lang.String groupType,
java.lang.String description,
java.lang.String notes,
java.lang.String containingGroupID,
java.lang.String handle)
Adds a new OrgGroup to the Resource Service's org data
|
java.lang.String |
addParticipant(java.lang.String userid,
java.lang.String password,
boolean encrypt,
java.lang.String lastname,
java.lang.String firstname,
boolean admin,
java.lang.String description,
java.lang.String notes,
java.lang.String handle)
Adds a new Participant to the Resource Service's org data
|
java.lang.String |
addParticipantToCapability(java.lang.String participantID,
java.lang.String capabilityID,
java.lang.String handle)
Adds a Participant to the set of Participants holding a Capability
|
java.lang.String |
addParticipantToPosition(java.lang.String participantID,
java.lang.String positionID,
java.lang.String handle)
Adds a Participant to the set of Participants holding a Position
|
java.lang.String |
addParticipantToRole(java.lang.String participantID,
java.lang.String roleID,
java.lang.String handle)
Adds a Participant to the set of Participants occupying a Role
|
java.lang.String |
addPosition(java.lang.String name,
java.lang.String positionID,
java.lang.String description,
java.lang.String notes,
java.lang.String orgGroupID,
java.lang.String containingPositionID,
java.lang.String handle)
Adds a new Position to the Resource Service's org data
|
java.lang.String |
addRole(java.lang.String name,
java.lang.String description,
java.lang.String notes,
java.lang.String containingRoleID,
java.lang.String handle)
Adds a new Role to the Resource Service's org data
|
java.lang.String |
checkConnection(java.lang.String handle)
Check that a session handle is active
|
java.lang.String |
connect(java.lang.String userID,
java.lang.String password)
Connects an external entity to the resource service
|
void |
disconnect(java.lang.String handle)
Disconnects an external entity from the resource service
|
java.lang.String |
getActiveParticipants(java.lang.String handle)
Gets an XML list of the Participants that are currently logged on to the service
|
java.lang.String |
getAllNonHumanResourceNames(java.lang.String handle)
Gets an XML list of the name of each NonHumanResource known to the service
|
java.lang.String |
getAllocators(java.lang.String handle)
Gets an XML list of all Resource Allocators known to the service
|
java.lang.String |
getAllParticipantNames(java.lang.String handle)
Gets an XML list of the full name of each Participant known to the service
|
java.lang.String |
getAllRoleNames(java.lang.String handle)
Gets an XML list of the name of each Role known to the service
|
java.lang.String |
getAllSelectors(java.lang.String handle)
Gets a concatenated XML list of all Resource Selectors (i.e.
|
java.lang.String |
getCapabilities(java.lang.String handle)
Gets an XML list of all Capabilities known to the service
|
java.lang.String |
getCapability(java.lang.String id,
java.lang.String handle)
Gets the Capability with the specified id
|
java.lang.String |
getCapabilityByName(java.lang.String name,
java.lang.String handle)
Gets the Capability with the specified name
|
java.lang.String |
getCapabilityIdentifiers(java.lang.String handle)
Gets the id and name of every Capability
|
java.lang.String |
getCapabilityIdentifiers(java.lang.String format,
java.lang.String handle)
Gets the id and name of every Capability
|
java.lang.String |
getCodeletParameters(java.lang.String codeletName,
java.lang.String handle)
Gets an XML list of the required parameters for the specified codelet
|
java.lang.String |
getCodelets(java.lang.String handle)
Gets an XML list of the Codelets known to the service
|
java.lang.String |
getConstraints(java.lang.String handle)
Gets an XML list of all Resource Constraints known to the service
|
java.lang.String |
getFilters(java.lang.String handle)
Gets an XML list of all Resource Filters known to the service
|
java.lang.String |
getNonHumanCategories(java.lang.String handle)
Gets all the NonHumanResource categories known to the service
|
java.lang.String |
getNonHumanCategories(java.lang.String format,
java.lang.String handle)
Gets all the NonHumanResource categories known to the service
|
java.lang.String |
getNonHumanCategory(java.lang.String id,
java.lang.String handle)
Gets the NonHumanCategory with the specified id
|
java.lang.String |
getNonHumanCategoryByName(java.lang.String name,
java.lang.String handle)
Gets the NonHumanCategory with the specified name
|
java.lang.String |
getNonHumanCategorySet(java.lang.String handle)
Gets all the NonHumanResource categories known to the service, together with
each of their subcategories
|
java.lang.String |
getNonHumanResource(java.lang.String id,
java.lang.String handle)
Gets a specific NonHumanResource
|
java.lang.String |
getNonHumanResourceByName(java.lang.String name,
java.lang.String handle)
Gets the NonHumanResource with the specified name
|
java.lang.String |
getNonHumanResourceIdentifiers(java.lang.String handle)
Gets the id and name of every NonHumanResource
|
java.lang.String |
getNonHumanResourceIdentifiers(java.lang.String format,
java.lang.String handle)
Gets the id and name of every NonHumanResource
|
java.lang.String |
getNonHumanResources(java.lang.String handle)
Gets an XML list of all NonHumanResources known to the service
|
java.lang.String |
getNonHumanSubCategories(java.lang.String id,
java.lang.String handle)
Gets all the NonHumanResource sub-categories for the specified category identifier
|
java.lang.String |
getNonHumanSubCategories(java.lang.String id,
java.lang.String format,
java.lang.String handle)
Gets all the NonHumanResource sub-categories for the specified category identifier
|
java.lang.String |
getNonHumanSubCategoriesByName(java.lang.String category,
java.lang.String handle)
Gets all the NonHumanResource sub-categories for the specified category name
|
java.lang.String |
getNonHumanSubCategoriesByName(java.lang.String category,
java.lang.String format,
java.lang.String handle)
Gets all the NonHumanResource sub-categories for the specified category name
|
java.lang.String |
getOrgGroup(java.lang.String id,
java.lang.String handle)
Gets the OrgGroup with the specified id
|
java.lang.String |
getOrgGroupByName(java.lang.String name,
java.lang.String handle)
Gets the OrgGroup with the specified name
|
java.lang.String |
getOrgGroupIdentifiers(java.lang.String handle)
Gets the id and name of every OrgGroup
|
java.lang.String |
getOrgGroupIdentifiers(java.lang.String format,
java.lang.String handle)
Gets the id and name of every OrgGroup
|
java.lang.String |
getOrgGroups(java.lang.String handle)
Gets an XML list of all OrgGroups known to the service
|
java.lang.String |
getParticipant(java.lang.String id,
java.lang.String handle)
Gets a specific Participant
|
java.lang.String |
getParticipantCapabilities(java.lang.String id,
java.lang.String handle)
Gets all the Capabilities held by the specified Participant
|
java.lang.String |
getParticipantFromUserID(java.lang.String userID,
java.lang.String handle)
Gets the participant with the specified user id
|
java.lang.String |
getParticipantIdentifiers(int id,
java.lang.String handle)
Gets the id and chosen identifier of every Participant
|
java.lang.String |
getParticipantIdentifiers(int id,
java.lang.String format,
java.lang.String handle)
Gets the id and chosen identifier of every Participant
|
java.lang.String |
getParticipantIdentifiers(java.lang.String handle)
Gets the id and fullname of every Participant
|
java.lang.String |
getParticipantIdentifiers(java.lang.String format,
java.lang.String handle)
Gets the id and chosen identifier of every Participant
|
java.lang.String |
getParticipantPositions(java.lang.String id,
java.lang.String handle)
Gets all the Positions held by the specified Participant
|
java.lang.String |
getParticipantRoles(java.lang.String id,
java.lang.String handle)
Gets all the Roles the specified Participant is a member of
|
java.lang.String |
getParticipants(java.lang.String handle)
Gets an XML list of all Participants known to the service
|
java.lang.String |
getParticipantsWithCapability(java.lang.String name,
java.lang.String handle)
Gets all the participants holding the specified capability (by name)
|
java.lang.String |
getParticipantsWithPosition(java.lang.String name,
java.lang.String handle)
Gets all the participants holding the specified position (by name)
|
java.lang.String |
getParticipantsWithRole(java.lang.String name,
java.lang.String handle)
Gets all the participants holding the specified role (by name)
|
java.lang.String |
getPosition(java.lang.String id,
java.lang.String handle)
Gets the Position with the specified id
|
java.lang.String |
getPositionByName(java.lang.String name,
java.lang.String handle)
Gets the Position with the specified name
|
java.lang.String |
getPositionIdentifiers(java.lang.String handle)
Gets the id and name of every Position
|
java.lang.String |
getPositionIdentifiers(java.lang.String format,
java.lang.String handle)
Gets the id and name of every Position
|
java.lang.String |
getPositions(java.lang.String handle)
Gets an XML list of all Positions known to the service
|
java.lang.String |
getReferencedParticipantIDs(java.lang.String anyID,
java.lang.String handle)
Gets an XML list of participant ids referenced by the id string argument
|
java.lang.String |
getRole(java.lang.String id,
java.lang.String handle)
Gets the role with the specified id
|
java.lang.String |
getRoleByName(java.lang.String name,
java.lang.String handle)
Gets the role with the specified name
|
java.lang.String |
getRoleIdentifiers(java.lang.String handle)
Gets the id and name of every Role
|
java.lang.String |
getRoleIdentifiers(java.lang.String format,
java.lang.String handle)
Gets the id and name of every Role
|
java.lang.String |
getRoles(java.lang.String handle)
Gets an XML list of all Roles known to the service
|
java.lang.String |
getUserPrivileges(java.lang.String id,
java.lang.String handle)
Gets the UserPrivileges of the participant with the specified id
|
java.lang.String |
isKnownCapability(java.lang.String capabilityID,
java.lang.String handle)
Check if the id passed is that of a known Capability
|
java.lang.String |
isKnownNonHumanCategory(java.lang.String id,
java.lang.String handle)
Check if the id passed is that of a known NonHumanCategory
|
java.lang.String |
isKnownNonHumanResource(java.lang.String id,
java.lang.String handle)
Check if the id passed is that of a known NonHumanResource
|
java.lang.String |
isKnownOrgGroup(java.lang.String orgGroupID,
java.lang.String handle)
Check if the id passed is that of a known OrgGroup
|
java.lang.String |
isKnownParticipant(java.lang.String participantID,
java.lang.String handle)
Check if the id passed is that of a known Participant
|
java.lang.String |
isKnownPosition(java.lang.String positionID,
java.lang.String handle)
Check if the id passed is that of a known Position
|
java.lang.String |
isKnownRole(java.lang.String roleID,
java.lang.String handle)
Check if the id passed is that of a known Role
|
void |
refreshOrgDataSet(java.lang.String handle)
Triggers a reload of org data
|
java.lang.String |
removeCapability(java.lang.String capabilityID,
java.lang.String handle)
Removes (deletes) the specified Capability from the Service's org data
|
java.lang.String |
removeNonHumanCategory(java.lang.String id,
java.lang.String handle)
Removes the specified category from the set of NonHumanResource categories; any
sub-categories of the specified categories are also removed.
|
java.lang.String |
removeNonHumanCategoryByName(java.lang.String category,
java.lang.String handle)
Removes the specified category from the set of NonHumanResource categories; any
sub-categories of the specified categories are also removed.
|
java.lang.String |
removeNonHumanResource(java.lang.String resourceID,
java.lang.String handle)
Removes (deletes) the specified NonHumanResource from the Service's org data
|
java.lang.String |
removeNonHumanSubCategory(java.lang.String id,
java.lang.String subcategory,
java.lang.String handle)
Removes the specified category from the set of NonHumanResource categories; any
sub-categories of the specified categories are also removed.
|
java.lang.String |
removeNonHumanSubCategoryByName(java.lang.String category,
java.lang.String subcategory,
java.lang.String handle)
Removes the specified category from the set of NonHumanResource categories; any
sub-categories of the specified categories are also removed.
|
java.lang.String |
removeOrgGroup(java.lang.String groupID,
java.lang.String handle)
Removes (deletes) the specified OrgGroup from the Service's org data
|
java.lang.String |
removeParticipant(java.lang.String participantID,
java.lang.String handle)
Removes (deletes) the specified Participant from the Service's org data
|
java.lang.String |
removeParticipantFromCapability(java.lang.String participantID,
java.lang.String capabilityID,
java.lang.String handle)
Removes (deletes) the specified Participant from the set of Participants holding
the specified Capability
|
java.lang.String |
removeParticipantFromPosition(java.lang.String participantID,
java.lang.String positionID,
java.lang.String handle)
Removes (deletes) the specified Participant from the set of Participants occupying
the specified Position
|
java.lang.String |
removeParticipantFromRole(java.lang.String participantID,
java.lang.String roleID,
java.lang.String handle)
Removes (deletes) the specified Participant from the set of Participants occupying
the specified Role
|
java.lang.String |
removePosition(java.lang.String positionID,
java.lang.String handle)
Removes (deletes) the specified Position from the Service's org data
|
java.lang.String |
removeRole(java.lang.String roleID,
java.lang.String handle)
Removes (deletes) the specified Role from the Service's org data
|
void |
resetOrgDataRefreshRate(int minutes,
java.lang.String handle)
(re)sets the timer for automatic org data reloads
|
java.lang.String |
setContainingOrgGroup(java.lang.String groupID,
java.lang.String containingGroupID,
java.lang.String handle)
Sets the containing OrgGroup for an OrgGroup (i.e.
|
java.lang.String |
setContainingPosition(java.lang.String positionID,
java.lang.String containingPositionID,
java.lang.String handle)
Sets the containing Position for a Position (i.e.
|
java.lang.String |
setContainingRole(java.lang.String roleID,
java.lang.String containingRoleID,
java.lang.String handle)
Sets the containing Role for a Role (i.e.
|
java.lang.String |
setParticipantPrivileges(java.lang.String participantID,
boolean canChooseItemToStart,
boolean canStartConcurrent,
boolean canReorder,
boolean canViewTeamItems,
boolean canViewOrgGroupItems,
boolean canChainExecution,
boolean canManageCases,
java.lang.String handle)
Sets the user privileges of the specified participant individually
|
java.lang.String |
setParticipantPrivileges(java.lang.String participantID,
boolean carteblanche,
java.lang.String handle)
Sets the user privileges of the specified participant on an 'all on' or 'all off'
basis
|
java.lang.String |
setParticipantPrivileges(java.lang.String participantID,
java.lang.String bits,
java.lang.String handle)
Sets the user privileges of the specified participant individually via a 'bit string'
|
java.lang.String |
setPositionOrgGroup(java.lang.String positionID,
java.lang.String groupID,
java.lang.String handle)
Sets the containing OrgGroup for a Position (i.e.
|
java.lang.String |
updateCapability(java.lang.String capabilityID,
java.lang.String name,
java.lang.String description,
java.lang.String notes,
java.lang.String handle)
Updates a Capability record with the specified values.
|
java.lang.String |
updateNonHumanCategory(java.lang.String categoryID,
java.lang.String name,
java.lang.String description,
java.lang.String notes,
java.lang.String handle)
Updates a NonHumanCategory with the specified values.
|
java.lang.String |
updateNonHumanResource(java.lang.String resourceID,
java.lang.String name,
java.lang.String category,
java.lang.String subcategory,
java.lang.String description,
java.lang.String notes,
java.lang.String handle)
Updates a NonHumanResource with the specified values.
|
java.lang.String |
updateOrgGroup(java.lang.String groupID,
java.lang.String name,
java.lang.String groupType,
java.lang.String description,
java.lang.String notes,
java.lang.String containingGroupID,
java.lang.String handle)
Updates an OrgGroup record with the specified values.
|
java.lang.String |
updateParticipant(java.lang.String participantID,
java.lang.String userid,
java.lang.String password,
boolean encrypt,
java.lang.String lastname,
java.lang.String firstname,
boolean admin,
java.lang.String description,
java.lang.String notes,
java.lang.String handle)
Updates a Participant record with the specified values.
|
java.lang.String |
updatePosition(java.lang.String posID,
java.lang.String name,
java.lang.String positionID,
java.lang.String description,
java.lang.String notes,
java.lang.String orgGroupID,
java.lang.String containingPositionID,
java.lang.String handle)
Updates a Position record with the specified values.
|
java.lang.String |
updateRole(java.lang.String roleID,
java.lang.String name,
java.lang.String description,
java.lang.String notes,
java.lang.String containingRoleID,
java.lang.String handle)
Updates a Role record with the specified values.
|
java.lang.String |
validateUserCredentials(java.lang.String userid,
java.lang.String password,
boolean checkForAdmin,
java.lang.String handle)
Checks the user credentials passed against those stored
|
executeGet, executePost, getReply, initPostConnection, prepareParamMap, send, setReadTimeout, stripOuterElement, successfulpublic ResourceGatewayClient()
public ResourceGatewayClient(java.lang.String uri)
uri - the uri of the resourceService's gatewaypublic java.lang.String getConstraints(java.lang.String handle)
throws java.io.IOException
handle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getFilters(java.lang.String handle)
throws java.io.IOException
handle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getAllocators(java.lang.String handle)
throws java.io.IOException
handle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getAllSelectors(java.lang.String handle)
throws java.io.IOException
handle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getParticipants(java.lang.String handle)
throws java.io.IOException
handle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getNonHumanResources(java.lang.String handle)
throws java.io.IOException
handle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getRoles(java.lang.String handle)
throws java.io.IOException
handle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getCapabilities(java.lang.String handle)
throws java.io.IOException
handle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getPositions(java.lang.String handle)
throws java.io.IOException
handle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getOrgGroups(java.lang.String handle)
throws java.io.IOException
handle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getAllParticipantNames(java.lang.String handle)
throws java.io.IOException
handle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getAllRoleNames(java.lang.String handle)
throws java.io.IOException
handle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getAllNonHumanResourceNames(java.lang.String handle)
throws java.io.IOException
handle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getActiveParticipants(java.lang.String handle)
throws java.io.IOException
handle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getParticipant(java.lang.String id,
java.lang.String handle)
throws java.io.IOException
id - the id of the participant to retrievehandle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getNonHumanResource(java.lang.String id,
java.lang.String handle)
throws java.io.IOException
id - the id of the NonHumanResource to retrievehandle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getParticipantRoles(java.lang.String id,
java.lang.String handle)
throws java.io.IOException
id - the id of the participanthandle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getParticipantCapabilities(java.lang.String id,
java.lang.String handle)
throws java.io.IOException
id - the id of the participanthandle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getParticipantPositions(java.lang.String id,
java.lang.String handle)
throws java.io.IOException
id - the id of the participanthandle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getParticipantsWithRole(java.lang.String name,
java.lang.String handle)
throws java.io.IOException
name - the name of the role (not the id)handle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getParticipantsWithPosition(java.lang.String name,
java.lang.String handle)
throws java.io.IOException
name - the name of the position (not the id)handle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getParticipantsWithCapability(java.lang.String name,
java.lang.String handle)
throws java.io.IOException
name - the name of the capability (not the id)handle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getParticipantFromUserID(java.lang.String userID,
java.lang.String handle)
throws java.io.IOException
userID - the userid to match to a participanthandle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getRole(java.lang.String id,
java.lang.String handle)
throws java.io.IOException
id - the id of the role to gethandle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getRoleByName(java.lang.String name,
java.lang.String handle)
throws java.io.IOException
name - the name of the role to gethandle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getCapability(java.lang.String id,
java.lang.String handle)
throws java.io.IOException
id - the id of the Capability to gethandle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getCapabilityByName(java.lang.String name,
java.lang.String handle)
throws java.io.IOException
name - the name of the Capability to gethandle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getPosition(java.lang.String id,
java.lang.String handle)
throws java.io.IOException
id - the id of the Position to gethandle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getPositionByName(java.lang.String name,
java.lang.String handle)
throws java.io.IOException
name - the name of the Position to gethandle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getOrgGroup(java.lang.String id,
java.lang.String handle)
throws java.io.IOException
id - the id of the OrgGroup to gethandle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getOrgGroupByName(java.lang.String name,
java.lang.String handle)
throws java.io.IOException
name - the name of the OrgGroup to gethandle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getNonHumanResourceByName(java.lang.String name,
java.lang.String handle)
throws java.io.IOException
name - the name of the NonHumanResource to gethandle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getParticipantIdentifiers(int id,
java.lang.String format,
java.lang.String handle)
throws java.io.IOException
id - a valid ResourceDataSet.Identifier; one of: FullName, ReverseFullName,
LastName or Userid (0..3)format - how to format the output; valid values are "XML" or "JSON"handle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getParticipantIdentifiers(java.lang.String format,
java.lang.String handle)
throws java.io.IOException
format - how to format the output; valid values are "XML" or "JSON"handle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getParticipantIdentifiers(int id,
java.lang.String handle)
throws java.io.IOException
id - a valid ResourceDataSet.Identifier; one of: FullName, ReverseFullName,
LastName or Userid (0..3)handle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getParticipantIdentifiers(java.lang.String handle)
throws java.io.IOException
handle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getNonHumanResourceIdentifiers(java.lang.String handle)
throws java.io.IOException
handle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getNonHumanResourceIdentifiers(java.lang.String format,
java.lang.String handle)
throws java.io.IOException
format - how to format the output; valid values are "XML" or "JSON"handle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getRoleIdentifiers(java.lang.String handle)
throws java.io.IOException
handle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getRoleIdentifiers(java.lang.String format,
java.lang.String handle)
throws java.io.IOException
format - how to format the output; valid values are "XML" or "JSON"handle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getPositionIdentifiers(java.lang.String handle)
throws java.io.IOException
handle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getPositionIdentifiers(java.lang.String format,
java.lang.String handle)
throws java.io.IOException
format - how to format the output; valid values are "XML" or "JSON"handle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getCapabilityIdentifiers(java.lang.String handle)
throws java.io.IOException
handle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getCapabilityIdentifiers(java.lang.String format,
java.lang.String handle)
throws java.io.IOException
format - how to format the output; valid values are "XML" or "JSON"handle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getOrgGroupIdentifiers(java.lang.String handle)
throws java.io.IOException
handle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getOrgGroupIdentifiers(java.lang.String format,
java.lang.String handle)
throws java.io.IOException
format - how to format the output; valid values are "XML" or "JSON"handle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getUserPrivileges(java.lang.String id,
java.lang.String handle)
throws java.io.IOException
id - the id of the Participant to get the user privileges ofhandle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getNonHumanCategory(java.lang.String id,
java.lang.String handle)
throws java.io.IOException
id - a valid NonHumanCategory identifierhandle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getNonHumanCategoryByName(java.lang.String name,
java.lang.String handle)
throws java.io.IOException
name - a valid NonHumanCategory namehandle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getNonHumanCategories(java.lang.String handle)
throws java.io.IOException
handle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getNonHumanCategories(java.lang.String format,
java.lang.String handle)
throws java.io.IOException
format - how to format the output; valid values are "XML" or "JSON"handle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getNonHumanSubCategories(java.lang.String id,
java.lang.String handle)
throws java.io.IOException
id - the category id to get the sub-categories forhandle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getNonHumanSubCategories(java.lang.String id,
java.lang.String format,
java.lang.String handle)
throws java.io.IOException
id - the category id to get the sub-categories forformat - how to format the output; valid values are "XML" or "JSON" - a null
value defaults to XMLhandle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getNonHumanSubCategoriesByName(java.lang.String category,
java.lang.String handle)
throws java.io.IOException
category - the category to get the sub-categories forhandle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getNonHumanSubCategoriesByName(java.lang.String category,
java.lang.String format,
java.lang.String handle)
throws java.io.IOException
category - the category to get the sub-categories forformat - how to format the output; valid values are "XML" or "JSON" - a null
value defaults to XMLhandle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getNonHumanCategorySet(java.lang.String handle)
throws java.io.IOException
handle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String validateUserCredentials(java.lang.String userid,
java.lang.String password,
boolean checkForAdmin,
java.lang.String handle)
throws java.io.IOException
userid - the userid of the Participantpassword - the associated passwordcheckForAdmin - when true, also checks that the user has admin privilegeshandle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getCodelets(java.lang.String handle)
throws java.io.IOException
handle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getCodeletParameters(java.lang.String codeletName,
java.lang.String handle)
throws java.io.IOException
codeletName - the simple name of the codelethandle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String getReferencedParticipantIDs(java.lang.String anyID,
java.lang.String handle)
throws java.io.IOException
anyID - the id of a Participant, Role, Capability, Position or OrgGrouphandle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String isKnownParticipant(java.lang.String participantID,
java.lang.String handle)
throws java.io.IOException
participantID - the id to checkhandle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String isKnownRole(java.lang.String roleID,
java.lang.String handle)
throws java.io.IOException
roleID - the id to checkhandle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String isKnownCapability(java.lang.String capabilityID,
java.lang.String handle)
throws java.io.IOException
capabilityID - the id to checkhandle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String isKnownPosition(java.lang.String positionID,
java.lang.String handle)
throws java.io.IOException
positionID - the id to checkhandle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String isKnownOrgGroup(java.lang.String orgGroupID,
java.lang.String handle)
throws java.io.IOException
orgGroupID - the id to checkhandle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String isKnownNonHumanResource(java.lang.String id,
java.lang.String handle)
throws java.io.IOException
id - the id to checkhandle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String isKnownNonHumanCategory(java.lang.String id,
java.lang.String handle)
throws java.io.IOException
id - the id to checkhandle - a valid session handlejava.io.IOException - if the service can't be reachedpublic java.lang.String connect(java.lang.String userID,
java.lang.String password)
throws java.io.IOException
userID - the useridpassword - the corresponding passwordjava.io.IOException - if the service can't be reachedpublic java.lang.String checkConnection(java.lang.String handle)
throws java.io.IOException
handle - the session handle to checkjava.io.IOException - if the service can't be reachedpublic void disconnect(java.lang.String handle)
throws java.io.IOException
handle - the sessionHandle to disconnectjava.io.IOException - if the service can't be reachedpublic java.lang.String addParticipant(java.lang.String userid,
java.lang.String password,
boolean encrypt,
java.lang.String lastname,
java.lang.String firstname,
boolean admin,
java.lang.String description,
java.lang.String notes,
java.lang.String handle)
throws java.io.IOException
userid - - must not already exist in the service's org datapassword - encrypt - - if true, will encrypt the password before it is storedlastname - firstname - admin - - if true, will set this Participant as an administratordescription - notes - handle - a current sessionhandle with admin privilegesjava.io.IOException - if the service can't be reachedpublic java.lang.String addNonHumanResource(java.lang.String name,
java.lang.String category,
java.lang.String subcategory,
java.lang.String description,
java.lang.String notes,
java.lang.String handle)
throws java.io.IOException
name - - must not already exist in the service's org datacategory - subcategory - description - notes - handle - a current sessionhandle with admin privilegesjava.io.IOException - if the service can't be reachedpublic java.lang.String addCapability(java.lang.String name,
java.lang.String description,
java.lang.String notes,
java.lang.String handle)
throws java.io.IOException
name - - must not already exist in the service's org datadescription - notes - handle - a current sessionhandle with admin privilegesjava.io.IOException - if the service can't be reachedpublic java.lang.String addRole(java.lang.String name,
java.lang.String description,
java.lang.String notes,
java.lang.String containingRoleID,
java.lang.String handle)
throws java.io.IOException
name - - must not already exist in the service's org datadescription - notes - containingRoleID - the id of the Role this Role will 'belong to' (may be null)handle - a current sessionhandle with admin privilegesjava.io.IOException - if the service can't be reachedpublic java.lang.String addPosition(java.lang.String name,
java.lang.String positionID,
java.lang.String description,
java.lang.String notes,
java.lang.String orgGroupID,
java.lang.String containingPositionID,
java.lang.String handle)
throws java.io.IOException
name - - must not already exist in the service's org datadescription - notes - orgGroupID - the id of the OrgGroup this Position will 'belong to'
(may be null)containingPositionID - the id of the Position this Position will 'report to'
(may be null)handle - a current sessionhandle with admin privilegesjava.io.IOException - if the service can't be reachedpublic java.lang.String addOrgGroup(java.lang.String name,
java.lang.String groupType,
java.lang.String description,
java.lang.String notes,
java.lang.String containingGroupID,
java.lang.String handle)
throws java.io.IOException
name - - must not already exist in the service's org datagroupType - one of the OrgGroup.GroupType'sdescription - notes - containingGroupID - the id of the OrgGroup this OrgGroup will 'belong to'
(may be null)handle - a current sessionhandle with admin privilegesjava.io.IOException - if the service can't be reachedpublic java.lang.String addParticipantToRole(java.lang.String participantID,
java.lang.String roleID,
java.lang.String handle)
throws java.io.IOException
participantID - the (existing) id of the Participant to addroleID - the (existing) id of the Role to add the Participant tohandle - a current sessionhandle with admin privilegesjava.io.IOException - if the service can't be reachedpublic java.lang.String addParticipantToCapability(java.lang.String participantID,
java.lang.String capabilityID,
java.lang.String handle)
throws java.io.IOException
participantID - the (existing) id of the Participant to addcapabilityID - the (existing) id of the Capability to add the Participant tohandle - a current sessionhandle with admin privilegesjava.io.IOException - if the service can't be reachedpublic java.lang.String addParticipantToPosition(java.lang.String participantID,
java.lang.String positionID,
java.lang.String handle)
throws java.io.IOException
participantID - the (existing) id of the Participant to addpositionID - the (existing) id of the Position to add the Participant tohandle - a current sessionhandle with admin privilegesjava.io.IOException - if the service can't be reachedpublic java.lang.String addNonHumanCategory(java.lang.String category,
java.lang.String handle)
throws java.io.IOException
category - the category name to addhandle - a current sessionhandle with admin privilegesjava.io.IOException - if the service can't be reachedpublic java.lang.String addNonHumanSubCategoryByName(java.lang.String category,
java.lang.String subcategory,
java.lang.String handle)
throws java.io.IOException
category - the (existing) category namesubcategory - the subcategory name to addhandle - a current sessionhandle with admin privilegesjava.io.IOException - if the service can't be reachedpublic java.lang.String addNonHumanSubCategory(java.lang.String id,
java.lang.String subcategory,
java.lang.String handle)
throws java.io.IOException
id - the id of the (existing) categorysubcategory - the subcategory name to addhandle - a current sessionhandle with admin privilegesjava.io.IOException - if the service can't be reachedpublic java.lang.String updateParticipant(java.lang.String participantID,
java.lang.String userid,
java.lang.String password,
boolean encrypt,
java.lang.String lastname,
java.lang.String firstname,
boolean admin,
java.lang.String description,
java.lang.String notes,
java.lang.String handle)
throws java.io.IOException
participantID - the (existing) id of the Participantuserid - password - encrypt - - if true, will encrypt the password before it is storedlastname - firstname - admin - - if true, will set this Participant as an administratordescription - notes - handle - a current sessionhandle with admin privilegesjava.io.IOException - if the service can't be reachedpublic java.lang.String updateNonHumanResource(java.lang.String resourceID,
java.lang.String name,
java.lang.String category,
java.lang.String subcategory,
java.lang.String description,
java.lang.String notes,
java.lang.String handle)
throws java.io.IOException
resourceID - - the (existing) id of the NonHumanResourcename - category - subcategory - description - notes - handle - a current sessionhandle with admin privilegesjava.io.IOException - if the service can't be reachedpublic java.lang.String updateCapability(java.lang.String capabilityID,
java.lang.String name,
java.lang.String description,
java.lang.String notes,
java.lang.String handle)
throws java.io.IOException
capabilityID - the (existing) id of the Capabilitydescription - notes - handle - a current sessionhandle with admin privilegesjava.io.IOException - if the service can't be reachedpublic java.lang.String updateRole(java.lang.String roleID,
java.lang.String name,
java.lang.String description,
java.lang.String notes,
java.lang.String containingRoleID,
java.lang.String handle)
throws java.io.IOException
roleID - the (existing) id of the Capabilityname - description - notes - containingRoleID - the id of the Role this Role will 'belong to'handle - a current sessionhandle with admin privilegesjava.io.IOException - if the service can't be reachedpublic java.lang.String updatePosition(java.lang.String posID,
java.lang.String name,
java.lang.String positionID,
java.lang.String description,
java.lang.String notes,
java.lang.String orgGroupID,
java.lang.String containingPositionID,
java.lang.String handle)
throws java.io.IOException
posID - the (existing) id of the Positionname - description - notes - orgGroupID - the id of the OrgGroup this Position will 'belong to'containingPositionID - the id of the Position this Position will 'report to'handle - a current sessionhandle with admin privilegesjava.io.IOException - if the service can't be reachedpublic java.lang.String updateOrgGroup(java.lang.String groupID,
java.lang.String name,
java.lang.String groupType,
java.lang.String description,
java.lang.String notes,
java.lang.String containingGroupID,
java.lang.String handle)
throws java.io.IOException
groupID - the (existing) id of the OrgGroupname - groupType - one of the OrgGroup.GroupType'sdescription - notes - containingGroupID - the id of the OrgGroup this OrgGroup will 'belong to'handle - a current sessionhandle with admin privilegesjava.io.IOException - if the service can't be reachedpublic java.lang.String updateNonHumanCategory(java.lang.String categoryID,
java.lang.String name,
java.lang.String description,
java.lang.String notes,
java.lang.String handle)
throws java.io.IOException
categoryID - the (existing) id of the NonHumanCategoryname - description - notes - handle - a current sessionhandle with admin privilegesjava.io.IOException - if the service can't be reachedpublic java.lang.String removeParticipant(java.lang.String participantID,
java.lang.String handle)
throws java.io.IOException
participantID - the id of the Participant to removehandle - a current sessionhandle with admin privilegesjava.io.IOException - if the service can't be reachedpublic java.lang.String removeNonHumanResource(java.lang.String resourceID,
java.lang.String handle)
throws java.io.IOException
resourceID - the id of the Participant to removehandle - a current sessionhandle with admin privilegesjava.io.IOException - if the service can't be reachedpublic java.lang.String removeCapability(java.lang.String capabilityID,
java.lang.String handle)
throws java.io.IOException
capabilityID - the id of the Capability to removehandle - a current sessionhandle with admin privilegesjava.io.IOException - if the service can't be reachedpublic java.lang.String removeRole(java.lang.String roleID,
java.lang.String handle)
throws java.io.IOException
roleID - the id of the Role to removehandle - a current sessionhandle with admin privilegesjava.io.IOException - if the service can't be reachedpublic java.lang.String removePosition(java.lang.String positionID,
java.lang.String handle)
throws java.io.IOException
positionID - the id of the Position to removehandle - a current sessionhandle with admin privilegesjava.io.IOException - if the service can't be reachedpublic java.lang.String removeOrgGroup(java.lang.String groupID,
java.lang.String handle)
throws java.io.IOException
groupID - the id of the OrgGroup to removehandle - a current sessionhandle with admin privilegesjava.io.IOException - if the service can't be reachedpublic java.lang.String removeParticipantFromRole(java.lang.String participantID,
java.lang.String roleID,
java.lang.String handle)
throws java.io.IOException
participantID - the id of the Participant to removeroleID - the id of the Role to remove the Particpant fromhandle - a current sessionhandle with admin privilegesjava.io.IOException - if the service can't be reachedpublic java.lang.String removeParticipantFromCapability(java.lang.String participantID,
java.lang.String capabilityID,
java.lang.String handle)
throws java.io.IOException
participantID - the id of the Participant to removecapabilityID - the id of the Capability to remove the Particpant fromhandle - a current sessionhandle with admin privilegesjava.io.IOException - if the service can't be reachedpublic java.lang.String removeParticipantFromPosition(java.lang.String participantID,
java.lang.String positionID,
java.lang.String handle)
throws java.io.IOException
participantID - the id of the Participant to removepositionID - the id of the Position to remove the Particpant fromhandle - a current sessionhandle with admin privilegesjava.io.IOException - if the service can't be reachedpublic java.lang.String removeNonHumanCategory(java.lang.String id,
java.lang.String handle)
throws java.io.IOException
id - the identifier of the category to removehandle - a current sessionhandle with admin privilegesjava.io.IOException - if the service can't be reachedpublic java.lang.String removeNonHumanCategoryByName(java.lang.String category,
java.lang.String handle)
throws java.io.IOException
category - the name of the category to removehandle - a current sessionhandle with admin privilegesjava.io.IOException - if the service can't be reachedpublic java.lang.String removeNonHumanSubCategoryByName(java.lang.String category,
java.lang.String subcategory,
java.lang.String handle)
throws java.io.IOException
category - the name of the category of which the subcategory is a membersubcategory - the name of the subcategory to removehandle - a current sessionhandle with admin privilegesjava.io.IOException - if the service can't be reachedpublic java.lang.String removeNonHumanSubCategory(java.lang.String id,
java.lang.String subcategory,
java.lang.String handle)
throws java.io.IOException
id - the identifier of the category of which the subcategory is a membersubcategory - the name of the subcategory to removehandle - a current sessionhandle with admin privilegesjava.io.IOException - if the service can't be reachedpublic java.lang.String setContainingRole(java.lang.String roleID,
java.lang.String containingRoleID,
java.lang.String handle)
throws java.io.IOException
roleID - the id of the 'child' RolecontainingRoleID - the id of the containing or parent Role that encapsulates
the 'child' Rolehandle - a current sessionhandle with admin privilegesjava.io.IOException - if the service can't be reachedpublic java.lang.String setContainingOrgGroup(java.lang.String groupID,
java.lang.String containingGroupID,
java.lang.String handle)
throws java.io.IOException
groupID - the id of the 'child' OrgGroupcontainingGroupID - the id of the containing or parent OrgGroup that
encapsulates the 'child' OrgGrouphandle - a current sessionhandle with admin privilegesjava.io.IOException - if the service can't be reachedpublic java.lang.String setContainingPosition(java.lang.String positionID,
java.lang.String containingPositionID,
java.lang.String handle)
throws java.io.IOException
positionID - the id of the 'child' PositioncontainingPositionID - the id of the containing or parent Position that
encapsulates the 'child' Positionhandle - a current sessionhandle with admin privilegesjava.io.IOException - if the service can't be reachedpublic java.lang.String setPositionOrgGroup(java.lang.String positionID,
java.lang.String groupID,
java.lang.String handle)
throws java.io.IOException
positionID - the id of the PositiongroupID - the id of the containing OrgGrouphandle - a current sessionhandle with admin privilegesjava.io.IOException - if the service can't be reachedpublic java.lang.String setParticipantPrivileges(java.lang.String participantID,
boolean canChooseItemToStart,
boolean canStartConcurrent,
boolean canReorder,
boolean canViewTeamItems,
boolean canViewOrgGroupItems,
boolean canChainExecution,
boolean canManageCases,
java.lang.String handle)
throws java.io.IOException
participantID - the (existing) id of the participantcanChooseItemToStart - canStartConcurrent - canReorder - canViewTeamItems - canViewOrgGroupItems - canChainExecution - canManageCases - handle - a current sessionhandle with admin privilegesjava.io.IOException - if the service can't be reachedpublic java.lang.String setParticipantPrivileges(java.lang.String participantID,
java.lang.String bits,
java.lang.String handle)
throws java.io.IOException
participantID - the (existing) id of the participantbits - an eight character string where each character corresponds to a
privilege (see the alternate setParticipantPrivileges() method for the ordering).
For each privilege, a character value of '1' indicates that the privilege
is to be granted and a character of any other value indicates that the privilege
is to be denied. The last character overrides all other privileges, so that a
value of '1' in the last position grants all privileges, while any other value
in the last position defers to the individual settings of each privilege.handle - a current sessionhandle with admin privilegesjava.io.IOException - if the service can't be reachedpublic java.lang.String setParticipantPrivileges(java.lang.String participantID,
boolean carteblanche,
java.lang.String handle)
throws java.io.IOException
participantID - the (existing) id of the participantcarteblanche - if true, grants the participant all user privileges; if false,
denies the participant all user privilegeshandle - a current sessionhandle with admin privilegesjava.io.IOException - if the service can't be reachedpublic void refreshOrgDataSet(java.lang.String handle)
throws java.io.IOException
handle - a valid session handle with admin accessjava.io.IOException - if the service can't be reachedpublic void resetOrgDataRefreshRate(int minutes,
java.lang.String handle)
throws java.io.IOException
minutes - the number of minutes to wait between refresheshandle - a valid session handle with admin accessjava.io.IOException - if the service can't be reachedCopyright © 2004-2014 The YAWL Foundation.