|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| Method Summary | |
void |
addAdministrator(long plOrganizationKey,
long plGroupKey,
boolean pbWrite,
boolean pbDelete)
Adds a group to the list of groups that have authorization access over the specified object. |
void |
addObjectAllowed(long plOrganizationKey,
long plObjectKey,
boolean pbSelfServiceable)
Deprecated. |
void |
addObjectAllowed(long plOrgKey,
long plObjectKey,
java.util.Map phAttributeList)
Assigns an object to be allowed for an organization. |
boolean |
canResourceBeProvisioned(long orgKey,
long objectKey)
Determines if a resource can be provisioned to an organization or not. |
long |
createOrganization(java.util.Map phMapping)
Creates an organization in Xellerate with the specified attributes. |
void |
deleteOrganization(long plOrgKey)
Deletes a specified organization |
void |
deleteOrganizations(long[] palOrgKeys)
Deletes a list of organizations |
void |
disableOrganization(long plOrgKey)
Disables an enabled organization in Xellerate |
void |
disableOrganizations(long[] palOrgKeys)
Disables a list of enabled organizations in Xellerate |
void |
enableOrganization(long plOrgKey)
Enables a disabled organization in Xellerate |
void |
enableOrganizations(long[] palOrgKeys)
Enables a list of disabled organizations in Xellerate |
Thor.API.tcResultSet |
findOrganizations(java.util.Map phAttributeList)
Returns a list of organizations (in the form of a tcResultSet) that matches the provided attribute list. |
Thor.API.tcResultSet |
findOrganizationsFiltered(java.util.Map phAttributeList,
java.lang.String[] pasFieldList)
Returns a list of organizations (in the form of a list of tcDataRecord) that matches the provided attribute list. |
Thor.API.tcResultSet |
getAdministrators(long plOrganizationKey)
Returns a list of groups that are administrative groups of the specified organization |
Thor.API.tcResultSet |
getEncodedValue(java.lang.String strDecodeVal,
java.lang.String strFieldName)
This object returns a resultset of the object available for the given encoded value. |
Thor.API.tcResultSet |
getListOfUsers(long plOrganizationKey)
Returns a list of users (in the form of a tcResultSet) that are in the specified organization |
long |
getNumberOfSubOrgs(long plOrgKey)
Returns the number of sub-organization of a specified Organization |
long |
getNumberOfUsers(long plOrgKey)
Returns the number of users associated to a specified organization |
Thor.API.tcResultSet |
getObjects(long orgKey)
Gets a list of all the objects that have been provisioned for the given organization. |
Thor.API.tcResultSet |
getObjectsAllowed(long orgKey)
Returns the list of allowed objects for a given organization |
Thor.API.tcResultSet |
getSubOrganizations(long plOrganizationKey)
Returns a list of organizations (in the form of a tcResultSet) that are child organizations of the specified organization |
Thor.API.tcResultSet |
getUnassignedAdministrators(long plOrgKey)
Returns a list groups of that are not assigned as administartive groups for an organization. |
Thor.API.tcResultSet |
getUnassignedResources(long plOrgKey)
Returns a list resource objects that are not assigned for the given organization. |
Thor.API.tcResultSet |
getUnassignedSubOrganizations(long plOrgKey)
Returns a list organizations that are not assigned as suborganizations for the given organization. |
Thor.API.tcResultSet |
getUnassignedUsers(long plOrgKey)
Returns a list users that are not assigned for the given organization. |
void |
moveOrganizations(long[] palOrgKeys,
long plTargetOrgKey)
Makes a list of organizations as sub-organization of a target organization |
void |
moveUsers(long[] palUserKeys,
long plTargetOrgKey)
moves the given users to a specified organization |
long |
provisionObject(long plOrgKey,
long plObjectKey)
Provision an object for an organization directly without going through a request. |
com.thortech.xl.vo.ResourceData |
provisionResource(long plOrgKey,
long plObjectKey)
Provision an object for an organization directly without going through a request. |
void |
removeAdministrator(long plOrgKey,
long plGroupKey)
Removes a given administrator from the specified organization |
void |
removeObjectAllowed(long plOrgKey,
long plObjectKey)
Removes the Object allowed to the given organization |
void |
updateAdministrator(long plOrgKey,
long plGroupKey,
boolean pbWrite,
boolean pbDelete)
Updates a group that has administrative access over a specified organization. |
void |
updateObjectAllowed(long plOrgKey,
long plObjectKey,
java.util.Map phAttributeList)
Updates the Object allowed servicesable information for the given organization |
void |
updateOrganization(long orgKey,
java.util.Map attributes)
Updates organization information based on the attribute that are passed to this method |
| Method Detail |
public Thor.API.tcResultSet findOrganizations(java.util.Map phAttributeList)
throws Thor.API.Exceptions.tcAPIException,
tcAPIException
phAttributeList - The Key of the organization whose users are to be retrieved
tcAPIException
public Thor.API.tcResultSet findOrganizationsFiltered(java.util.Map phAttributeList,
java.lang.String[] pasFieldList)
throws Thor.API.Exceptions.tcAPIException,
tcAPIException
phAttributeList - An array of tcMapping objects, each object holding the attribute-value pairs to match the group against. The Attribute names are the String column codes (from the Xellerate metadata). The Attribute Values are the String attributes to base the search on. The values could include wild cards (%).pasFieldList - The list of fields (specified as column codes from the Xellerate metadata) that should be in the returned result set.
tcAPIException
public Thor.API.tcResultSet getAdministrators(long plOrganizationKey)
throws Thor.API.Exceptions.tcAPIException,
Thor.API.Exceptions.tcOrganizationNotFoundException,
tcAPIException
plOrganizationKey - The Key of the organization whose administrative groups are to be retrieved
tcAPIException
tcOrganizationNotFoundException
public Thor.API.tcResultSet getListOfUsers(long plOrganizationKey)
throws Thor.API.Exceptions.tcAPIException,
Thor.API.Exceptions.tcOrganizationNotFoundException,
tcAPIException
plOrganizationKey - The Key of the organization whose users are to be retrieved
tcAPIException
tcOrganizationNotFoundException
public Thor.API.tcResultSet getSubOrganizations(long plOrganizationKey)
throws Thor.API.Exceptions.tcAPIException,
Thor.API.Exceptions.tcOrganizationNotFoundException,
tcAPIException
plOrganizationKey - The Key of the organization whose sub-organizations are to be retrieved
tcAPIException
tcOrganizationNotFoundException
public long createOrganization(java.util.Map phMapping)
throws Thor.API.Exceptions.tcDuplicateOrganizationException,
Thor.API.Exceptions.tcAttributeMissingException,
Thor.API.Exceptions.tcInvalidAttributeException,
Thor.API.Exceptions.tcInvalidNameException,
Thor.API.Exceptions.tcAPIException,
tcAPIException
phMapping - A map of name-value pairs, each entry representing an attribute to be set for the organization.
tcDuplicateOrganizationException
tcAttributeMissingException
tcInvalidAttributeException
tcAPIException
Thor.API.Exceptions.tcInvalidNameException
public void addAdministrator(long plOrganizationKey,
long plGroupKey,
boolean pbWrite,
boolean pbDelete)
throws Thor.API.Exceptions.tcAPIException,
Thor.API.Exceptions.tcOrganizationNotFoundException,
Thor.API.Exceptions.tcGroupNotFoundException,
tcAPIException
plOrganizationKey - The Key of the organization to which an administrator group is to be assignedplGroupKey - String holding the Group Key (corresponds to value in the UGP_KEY column)pbWrite - Whether the group has Write permissionspbDelete - Whether the group has Delete permissions
tcAPIException
tcOrganizationNotFoundException
tcGroupNotFoundException
public void addObjectAllowed(long plOrganizationKey,
long plObjectKey,
boolean pbSelfServiceable)
throws Thor.API.Exceptions.tcOrganizationNotFoundException,
Thor.API.Exceptions.tcObjectNotFoundException,
Thor.API.Exceptions.tcAPIException,
tcAPIException
plOrganizationKey - The key of the organization to which the object is to be assignedplObjectKey - The key of the object to be assignedpbSelfServiceable - Specifies whether or not the object is self serviceable
tcOrganizationNotFoundException
tcObjectNotFoundException
tcAPIException
public void addObjectAllowed(long plOrgKey,
long plObjectKey,
java.util.Map phAttributeList)
throws Thor.API.Exceptions.tcAPIException,
Thor.API.Exceptions.tcOrganizationNotFoundException,
Thor.API.Exceptions.tcObjectNotFoundException,
Thor.API.Exceptions.tcInvalidAttributeException,
tcAPIException
plOrgKey - the organization keyplObjectKey - the object keyphAttributeList - Map containing the serviceable flag for the object allowed
tcAPIException
tcOrganizationNotFoundException
tcObjectNotFoundException
tcInvalidAttributeException
public void updateOrganization(long orgKey,
java.util.Map attributes)
throws Thor.API.Exceptions.tcAPIException,
Thor.API.Exceptions.tcOrganizationNotFoundException,
tcAPIException
orgKey - the organization keyattributes - a map of updated attributes
tcAPIException
tcOrganizationNotFoundException
public void enableOrganization(long plOrgKey)
throws Thor.API.Exceptions.tcInvalidOperationException,
Thor.API.Exceptions.tcOrganizationNotFoundException,
Thor.API.Exceptions.tcAPIException,
tcAPIException
plOrgKey - the organization key
tcInvalidOperationException
tcOrganizationNotFoundException
tcAPIException
public void enableOrganizations(long[] palOrgKeys)
throws Thor.API.Exceptions.tcInvalidOperationException,
Thor.API.Exceptions.tcOrganizationNotFoundException,
Thor.API.Exceptions.tcAPIException,
Thor.API.Exceptions.tcBulkException,
tcAPIException
palOrgKeys - the organization keys to be disbaled
tcInvalidOperationException
tcOrganizationNotFoundException
tcAPIException
tcBulkException
public void disableOrganization(long plOrgKey)
throws Thor.API.Exceptions.tcInvalidOperationException,
Thor.API.Exceptions.tcOrganizationNotFoundException,
Thor.API.Exceptions.tcAPIException,
tcAPIException
plOrgKey - the organization key
tcInvalidOperationException
tcOrganizationNotFoundException
tcAPIException
public void disableOrganizations(long[] palOrgKeys)
throws Thor.API.Exceptions.tcInvalidOperationException,
Thor.API.Exceptions.tcOrganizationNotFoundException,
Thor.API.Exceptions.tcAPIException,
Thor.API.Exceptions.tcBulkException,
tcAPIException
palOrgKeys - the organization keys to be disabled
tcInvalidOperationException
tcOrganizationNotFoundException
tcAPIException
tcBulkException
public void deleteOrganization(long plOrgKey)
throws Thor.API.Exceptions.tcInvalidOperationException,
Thor.API.Exceptions.tcOrganizationNotFoundException,
Thor.API.Exceptions.tcAPIException,
tcAPIException
plOrgKey - the organization to delete
tcInvalidOperationException
tcOrganizationNotFoundException
tcAPIException
public void deleteOrganizations(long[] palOrgKeys)
throws Thor.API.Exceptions.tcInvalidOperationException,
Thor.API.Exceptions.tcOrganizationNotFoundException,
Thor.API.Exceptions.tcAPIException,
Thor.API.Exceptions.tcBulkException,
tcAPIException
palOrgKeys - the organization keys to delete
tcInvalidOperationException
tcOrganizationNotFoundException
tcAPIException
tcBulkException
public long getNumberOfUsers(long plOrgKey)
throws Thor.API.Exceptions.tcOrganizationNotFoundException,
Thor.API.Exceptions.tcAPIException,
tcAPIException
plOrgKey - the organization key
tcOrganizationNotFoundException
tcAPIException
public long getNumberOfSubOrgs(long plOrgKey)
throws Thor.API.Exceptions.tcOrganizationNotFoundException,
Thor.API.Exceptions.tcAPIException,
tcAPIException
plOrgKey - the organization
tcOrganizationNotFoundException
tcAPIException
public void removeObjectAllowed(long plOrgKey,
long plObjectKey)
throws Thor.API.Exceptions.tcAPIException,
Thor.API.Exceptions.tcOrganizationNotFoundException,
Thor.API.Exceptions.tcObjectNotFoundException,
tcAPIException
plOrgKey - The Organization KeyplObjectKey - The object to be removed form allowed list
tcAPIException
tcOrganizationNotFoundException
tcObjectNotFoundException
public void updateObjectAllowed(long plOrgKey,
long plObjectKey,
java.util.Map phAttributeList)
throws Thor.API.Exceptions.tcAPIException,
Thor.API.Exceptions.tcOrganizationNotFoundException,
Thor.API.Exceptions.tcObjectNotFoundException,
Thor.API.Exceptions.tcInvalidAttributeException,
tcAPIException
plOrgKey - the organization keyplObjectKey - the object keyphAttributeList - Map containing the serviceable flag for the object allowed
tcAPIException
tcOrganizationNotFoundException
tcObjectNotFoundException
tcInvalidAttributeException
public Thor.API.tcResultSet getObjectsAllowed(long orgKey)
throws Thor.API.Exceptions.tcAPIException,
Thor.API.Exceptions.tcOrganizationNotFoundException,
tcAPIException
orgKey - the organization key
tcAPIException
tcOrganizationNotFoundException
public void removeAdministrator(long plOrgKey,
long plGroupKey)
throws Thor.API.Exceptions.tcAPIException,
Thor.API.Exceptions.tcOrganizationNotFoundException,
Thor.API.Exceptions.tcGroupNotFoundException,
tcAPIException
plOrgKey - the organization keyplGroupKey - the group key of the administrator to remove
tcAPIException
tcOrganizationNotFoundException
tcGroupNotFoundException
public void updateAdministrator(long plOrgKey,
long plGroupKey,
boolean pbWrite,
boolean pbDelete)
throws Thor.API.Exceptions.tcOrganizationNotFoundException,
Thor.API.Exceptions.tcGroupNotFoundException,
Thor.API.Exceptions.tcAPIException,
tcAPIException
plOrgKey - The Key of the organizationplGroupKey - String holding the Group KeypbWrite - Whether the group has Write permissionspbDelete - Whether the group has Delete permissions
tcOrganizationNotFoundException
tcGroupNotFoundException
tcAPIException
public void moveUsers(long[] palUserKeys,
long plTargetOrgKey)
throws Thor.API.Exceptions.tcAPIException,
Thor.API.Exceptions.tcUserNotFoundException,
Thor.API.Exceptions.tcOrganizationNotFoundException,
Thor.API.Exceptions.tcBulkException,
tcAPIException
palUserKeys - the user keysplTargetOrgKey - the target organization key
tcAPIException - thrown if an error occurs while getting the users or organization information
tcUserNotFoundException - thrown if one or many of the users do not exist in the databse
tcOrganizationNotFoundException - thrown if the specified organization does not exist in the databse
tcBulkException - thrown if an error occurs during the bulk move operation
public void moveOrganizations(long[] palOrgKeys,
long plTargetOrgKey)
throws Thor.API.Exceptions.tcAPIException,
Thor.API.Exceptions.tcOrganizationNotFoundException,
Thor.API.Exceptions.tcBulkException,
tcAPIException
palOrgKeys - the sub-oragnization keysplTargetOrgKey - the target organization key
tcAPIException - thrown if an error occurs while getting organization information
tcOrganizationNotFoundException - thrown if the specified organizations do not exist in the databse
tcBulkException - thrown if an error occurs during the bulk move operation
public Thor.API.tcResultSet getUnassignedAdministrators(long plOrgKey)
throws Thor.API.Exceptions.tcAPIException,
Thor.API.Exceptions.tcOrganizationNotFoundException,
tcAPIException
plOrgKey - The organization key return a tcResultSet of the unassigned administrators. The result set contains column names: tcAPIException - Thrown if an error occurrs while retrieving the data about unassigned groups from the database
tcOrganizationNotFoundException - If the specified orgnization does not exist in the databse
public Thor.API.tcResultSet getUnassignedResources(long plOrgKey)
throws Thor.API.Exceptions.tcAPIException,
Thor.API.Exceptions.tcOrganizationNotFoundException,
tcAPIException
plOrgKey - The Organization key
tcAPIException
tcOrganizationNotFoundException
public Thor.API.tcResultSet getUnassignedSubOrganizations(long plOrgKey)
throws Thor.API.Exceptions.tcAPIException,
Thor.API.Exceptions.tcOrganizationNotFoundException,
tcAPIException
plOrgKey - The Organization key
tcAPIException
tcOrganizationNotFoundException
public Thor.API.tcResultSet getUnassignedUsers(long plOrgKey)
throws Thor.API.Exceptions.tcAPIException,
Thor.API.Exceptions.tcOrganizationNotFoundException,
tcAPIException
plOrgKey - The Organization key
tcAPIException
tcOrganizationNotFoundException
public Thor.API.tcResultSet getObjects(long orgKey)
throws Thor.API.Exceptions.tcAPIException,
Thor.API.Exceptions.tcOrganizationNotFoundException,
tcAPIException
orgKey - Value holding the Organization Key
tcResultSet, each row holding information about an object that has been provisioned for the organization.
tcAPIException
tcOrganizationNotFoundException
public long provisionObject(long plOrgKey,
long plObjectKey)
throws Thor.API.Exceptions.tcAPIException,
Thor.API.Exceptions.tcObjectNotFoundException,
Thor.API.Exceptions.tcProvisioningNotAllowedException,
Thor.API.Exceptions.tcOrganizationNotFoundException,
tcAPIException
plOrgKey - The key of the organization to which the resource to be provisioned.plObjectKey - The key of the object to provision.
tcAPIException
tcObjectNotFoundException
tcProvisioningNotAllowedException
tcOrganizationNotFoundException
public com.thortech.xl.vo.ResourceData provisionResource(long plOrgKey,
long plObjectKey)
throws Thor.API.Exceptions.tcAPIException,
Thor.API.Exceptions.tcObjectNotFoundException,
Thor.API.Exceptions.tcProvisioningNotAllowedException,
Thor.API.Exceptions.tcOrganizationNotFoundException,
tcAPIException
plOrgKey - The key of the organization to which the resource to be provisioned.plObjectKey - The key of the object to provision.
tcAPIException
tcObjectNotFoundException
tcProvisioningNotAllowedException
tcOrganizationNotFoundException
public boolean canResourceBeProvisioned(long orgKey,
long objectKey)
throws Thor.API.Exceptions.tcAPIException,
Thor.API.Exceptions.tcOrganizationNotFoundException,
Thor.API.Exceptions.tcObjectNotFoundException,
tcAPIException
orgKey - The key of the organization to which the resource is to be provisioned.objectKey - This is the resource object key
tcResultSet each row holding information about a group the user is not a member of.
tcAPIException
tcUserNotFoundException
Thor.API.Exceptions.tcOrganizationNotFoundException
Thor.API.Exceptions.tcObjectNotFoundException
public Thor.API.tcResultSet getEncodedValue(java.lang.String strDecodeVal,
java.lang.String strFieldName)
throws Thor.API.Exceptions.tcAPIException,
tcAPIException
tcUserNotFoundException
tcAPIException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||