|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| Method Summary | |
void |
assignGroups(long policyKey,
long[] groupKeys)
This method assigns objects to be denied to the given access policy. |
void |
assignObjects(long policyKey,
long[] objectKeys,
java.util.Map attributeList)
This method assigns objects to be provisioned or denied to the given access policy. |
long |
createAccessPolicy(java.util.Map attributeList,
long[] provObjKeys,
boolean[] revokeObjectIfNotApply,
long[] denyObjKeys,
long[] groupKeys)
This method creates an access policy with the given information and the given assigned objects and user groups. |
long |
createAccessPolicy(java.util.Map attributeList,
long[] provObjKeys,
boolean[] revokeObjectIfNotApply,
long[] denyObjKeys,
long[] groupKeys,
com.thortech.xl.vo.AccessPolicyResourceData[] resourceData)
This method creates an access policy with the given information and the given assigned objects and user groups. |
Thor.API.tcResultSet |
evaluatePolicyEffect(long userKey,
long groupKey)
Given a specific user, this method will answer the hypothetical question regarding which resources would get provisioned to that user if the user were made a member of the specified group. |
Thor.API.tcResultSet |
findAccessPolicies(java.util.Map attributeList)
This method returns a resultset containing the access policy that matches the given attributes. |
Thor.API.tcResultSet |
getAssignableGroups()
Returns a list of groups (in the form of a tcResultSet) that can be assigned to any policy. |
Thor.API.tcResultSet |
getAssignableObjects()
Returns a list of objects (in the form of a tcResultSet) that can be provisioned or denied by any policy. |
Thor.API.tcResultSet |
getAssignedGroups(long policyKey)
Returns a list of groups (in the form of a tcResultSet) that are assigned to the policy. |
Thor.API.tcResultSet |
getAssignedObjects(long policyKey)
Returns a list of objects (in the form of a tcResultSet) that are assigned for provisioning to the policy. |
Thor.API.tcResultSet |
getDataSpecifiedFor(long policyKey)
Gets the Objects and corresponding Forms for which data has been specified in the Access Policy. |
com.thortech.xl.vo.AccessPolicyResourceData |
getDataSpecifiedForObject(long policyKey,
long objectKey,
long formKey)
Returns the data specified for a particular form (including child tables) in an Access Policy. |
com.thortech.xl.vo.AccessPolicyResourceData[] |
getDataSpecifiedForObjects(long policyKey)
Returns the data defined for all forms (including child tables) for all the resources in the Access Policy. |
int |
getLowestPriority()
Returns the lowest priority number of all the policies in the system. |
Thor.API.tcResultSet |
getUnassignedGroups(long policyKey)
Returns a list of groups (in the form of a tcResultSet) that can be assigned to the policy. |
Thor.API.tcResultSet |
getUnassignedObjects(long policyKey)
Returns a list of objects (in the form of a tcResultSet) that can be provisioned or denied by the policy. |
void |
removeDataSpecifiedForObject(long policyKey,
long objectKey,
long formKey)
Removes the policy data specified for a particular form (including child tables) in an Access Policy. |
void |
setDataSpecifiedForObject(long policyKey,
long objectKey,
long formKey,
com.thortech.xl.vo.AccessPolicyResourceData resourceData)
Sets the data defined for a form (including adding/deleting child table records) in an Access Policy. |
void |
setDataSpecifiedForObjects(long policyKey,
com.thortech.xl.vo.AccessPolicyResourceData[] resourceData)
Sets the data for forms (including child tables) of resources in the Access Policy. |
void |
unAssignGroups(long policyKey,
long[] groupKeys)
This method unassign the given groups from the access policy. |
void |
unAssignObjects(long policyKey,
long[] objectKeys)
This method unassign the given objects that can be provisioned or denied by the access policy. |
void |
updateAccessPolicy(Thor.API.tcResultSet accessPolicyResultSet,
java.util.Map attributeList)
This method updates the attributes of an access policy |
| Method Detail |
public Thor.API.tcResultSet getUnassignedObjects(long policyKey)
throws Thor.API.Exceptions.tcPolicyNotFoundException,
Thor.API.Exceptions.tcAPIException,
tcAPIException
policyKey - the policy key for the object to be assigned.
tcPolicyNotFoundException - if the policy is not found in the database.
tcAPIException - if there is a problem retrieving the information
public Thor.API.tcResultSet getAssignableObjects()
throws Thor.API.Exceptions.tcAPIException,
tcAPIException
tcAPIException - if there is a problem retrieving the information
public Thor.API.tcResultSet getAssignedObjects(long policyKey)
throws Thor.API.Exceptions.tcPolicyNotFoundException,
Thor.API.Exceptions.tcAPIException,
tcAPIException
policyKey - the policy key.
tcPolicyNotFoundException - if the policy is not found in the database.
tcAPIException - if there is a problem retrieving the information
public Thor.API.tcResultSet getUnassignedGroups(long policyKey)
throws Thor.API.Exceptions.tcAPIException,
Thor.API.Exceptions.tcPolicyNotFoundException,
tcAPIException
policyKey - the policy key for the groups to be assigned.
tcAPIException - if there is a problem retrieving the information
tcPolicyNotFoundException - raise if the policy is not a valid policy key
public Thor.API.tcResultSet getAssignableGroups()
throws Thor.API.Exceptions.tcAPIException,
tcAPIException
tcAPIException - if there is a problem retrieving the information
public Thor.API.tcResultSet getAssignedGroups(long policyKey)
throws Thor.API.Exceptions.tcAPIException,
Thor.API.Exceptions.tcPolicyNotFoundException,
tcAPIException
policyKey - the policy key for the groups to be assigned.
tcAPIException - if there is a problem retrieving the information
tcPolicyNotFoundException - raised if the policy is not found
public long createAccessPolicy(java.util.Map attributeList,
long[] provObjKeys,
boolean[] revokeObjectIfNotApply,
long[] denyObjKeys,
long[] groupKeys)
throws Thor.API.Exceptions.tcObjectNotFoundException,
Thor.API.Exceptions.tcGroupNotFoundException,
Thor.API.Exceptions.tcInvalidAttributeException,
Thor.API.Exceptions.tcAPIException,
tcAPIException
attributeList - the access policy information to create the policy: provObjKeys - array of object keys to be assigned to be provisioningrevokeObjectIfNotApply - same size array as provObjKeys and should contain a boolean value that signifies if the provObjeKey in the same index as provObjKeys needs to be revoke when the object doesn't apply any longer.denyObjKeys - array of object keys to be assigned to be deniedgroupKeys - array of group keys to be assigned
tcObjectNotFoundException - if any object key is not valid.
tcGroupNotFoundException - if any group key is not valid.
tcInvalidAttributeException - raise if one of the attributes is not valid
tcAPIException - if there is any problem creating the access policy.
public long createAccessPolicy(java.util.Map attributeList,
long[] provObjKeys,
boolean[] revokeObjectIfNotApply,
long[] denyObjKeys,
long[] groupKeys,
com.thortech.xl.vo.AccessPolicyResourceData[] resourceData)
throws Thor.API.Exceptions.tcObjectNotFoundException,
Thor.API.Exceptions.tcGroupNotFoundException,
Thor.API.Exceptions.tcInvalidAttributeException,
Thor.API.Exceptions.tcObjectNotAssignedException,
Thor.API.Exceptions.tcAPIException,
tcAPIException
attributeList - the access policy information to create the policy: provObjKeys - array of object keys to be assigned to be provisioningrevokeObjectIfNotApply - same size array as provObjKeys and should contain a boolean value that signifies if the provObjeKey in the same index as provObjKeys needs to be revoke when the object doesn't apply any longer.denyObjKeys - array of object keys to be assigned to be deniedgroupKeys - array of group keys to be assignedresourceData - data for the default data for resources
tcObjectNotFoundException - if any object key is not valid.
tcGroupNotFoundException - if any group key is not valid.
tcInvalidAttributeException - raise if one of the attributes is not valid
tcAPIException - if there is any problem creating the access policy.
tcObjectNotAssignedException - if the object is not yet assigned to the access policy.
public void updateAccessPolicy(Thor.API.tcResultSet accessPolicyResultSet,
java.util.Map attributeList)
throws Thor.API.Exceptions.tcPolicyNotFoundException,
Thor.API.Exceptions.tcInvalidAttributeException,
Thor.API.Exceptions.tcAPIException,
tcAPIException
accessPolicyResultSet - A result set containing at the minimum the access policy key and the rowver of the policy record to update.attributeList - A map of name-value pairs, each entry holding an attribute-value pair to set/modify for this access policy. The Attribute names are the String column codes (from the Xellerate metadata). The Attribute Values are the String attributes of the columns to set: tcPolicyNotFoundException - if the policy is not in the database
tcInvalidAttributeException - raise if one of the attributes is not a valid attribute
tcAPIException - if there is an error retrieving information
public void assignObjects(long policyKey,
long[] objectKeys,
java.util.Map attributeList)
throws Thor.API.Exceptions.tcPolicyNotFoundException,
Thor.API.Exceptions.tcBulkException,
Thor.API.Exceptions.tcInvalidAttributeException,
Thor.API.Exceptions.tcAPIException,
tcAPIException
policyKey - the policy to assign the given objectsobjectKeys - the object keys to assign.attributeList - one of the following attributes for objects to assigned: tcPolicyNotFoundException - raised if the policy key is not valid
tcBulkException - raise if one or more objects did not get assigned.
tcInvalidAttributeException - raise if one of the attributes is not a valid attribute
tcAPIException - raised for any problem that might be encountered
public void assignGroups(long policyKey,
long[] groupKeys)
throws Thor.API.Exceptions.tcPolicyNotFoundException,
Thor.API.Exceptions.tcBulkException,
Thor.API.Exceptions.tcAPIException,
tcAPIException
policyKey - the policy to assign the given objectsgroupKeys - the object keys to assign.
tcPolicyNotFoundException - raised if the policy key is not valid
tcBulkException - raise if one or more groups did not get assigned.
tcAPIException - raised for any problem that might be encountered
public void unAssignObjects(long policyKey,
long[] objectKeys)
throws Thor.API.Exceptions.tcPolicyNotFoundException,
Thor.API.Exceptions.tcAPIException,
Thor.API.Exceptions.tcBulkException,
tcAPIException
policyKey - the access policy to unassign the object.objectKeys - the objects to unassigned.
tcPolicyNotFoundException - raised if the policy is not found.
tcAPIException - raised if an error is encountered.
tcBulkException - raise if one or more objects did not get assigned.
public void unAssignGroups(long policyKey,
long[] groupKeys)
throws Thor.API.Exceptions.tcPolicyNotFoundException,
Thor.API.Exceptions.tcAPIException,
Thor.API.Exceptions.tcBulkException,
tcAPIException
policyKey - the access policy to unassign the object.groupKeys - the objects to unassigned.
tcPolicyNotFoundException - raised if the policy is not found.
tcAPIException - raised if an error is encountered.
tcBulkException - raise if one or more groups did not get assigned.
public Thor.API.tcResultSet findAccessPolicies(java.util.Map attributeList)
throws Thor.API.Exceptions.tcAPIException,
tcAPIException
attributeList - any attribute used to find the access policy: tcAPIException - raised if an error is encountered.
public com.thortech.xl.vo.AccessPolicyResourceData getDataSpecifiedForObject(long policyKey,
long objectKey,
long formKey)
throws Thor.API.Exceptions.tcPolicyNotFoundException,
Thor.API.Exceptions.tcAPIException,
Thor.API.Exceptions.tcObjectNotAssignedException,
tcAPIException
policyKey - policy KeyobjectKey - object keyformKey - user defined form for which the access policy data is retrieved
tcPolicyNotFoundException - If the specified policy does not exist
tcAPIException - If an error occurs while retrieving the data
tcObjectNotAssignedException - If the specified object is not assigned to the given policy
public void setDataSpecifiedForObject(long policyKey,
long objectKey,
long formKey,
com.thortech.xl.vo.AccessPolicyResourceData resourceData)
throws Thor.API.Exceptions.tcPolicyNotFoundException,
Thor.API.Exceptions.tcObjectNotAssignedException,
Thor.API.Exceptions.tcAPIException,
tcAPIException
policyKey - policy keyobjectKey - object keyformKey - user defined form on which the specified data will be setresourceData - data that will be be set on the form
tcPolicyNotFoundException - If the specified policy does not exist
tcObjectNotAssignedException - If the specified object is not assigned to the given policy
tcAPIException - If an error occurs while setting the data
public Thor.API.tcResultSet getDataSpecifiedFor(long policyKey)
throws Thor.API.Exceptions.tcPolicyNotFoundException,
Thor.API.Exceptions.tcAPIException,
tcAPIException
policyKey - policy key
tcPolicyNotFoundException - If the specified policy does not exist
tcAPIException - If an error occurs while retieving the data
public Thor.API.tcResultSet evaluatePolicyEffect(long userKey,
long groupKey)
throws Thor.API.Exceptions.tcUserNotFoundException,
Thor.API.Exceptions.tcAPIException,
Thor.API.Exceptions.tcAlreadyMemberException,
tcAPIException
userKey - user KeygroupKey - group key
tcUserNotFoundException - If the specified user does not exist
tcAPIException - If any error occurs
tcAlreadyMemberException - If the user already a member of the specified group
public int getLowestPriority()
throws Thor.API.Exceptions.tcAPIException,
tcAPIException
tcAPIException - If an error occurs while retrieving the data or if no policies are defined in the system
public com.thortech.xl.vo.AccessPolicyResourceData[] getDataSpecifiedForObjects(long policyKey)
throws Thor.API.Exceptions.tcPolicyNotFoundException,
Thor.API.Exceptions.tcAPIException,
tcAPIException
policyKey - policy Key
tcPolicyNotFoundException - If the specified policy does not exist
tcAPIException - If an error occurs while retrieving the data
public void setDataSpecifiedForObjects(long policyKey,
com.thortech.xl.vo.AccessPolicyResourceData[] resourceData)
throws Thor.API.Exceptions.tcPolicyNotFoundException,
Thor.API.Exceptions.tcObjectNotAssignedException,
Thor.API.Exceptions.tcAPIException,
tcAPIException
policyKey - policy KeyresourceData - Array containing the data that needs to be set on the forms
tcPolicyNotFoundException - If the specified policy does not exist
tcObjectNotAssignedException - If one or many of the objects is not assigned to the given policy
tcAPIException - If an error occurs while setting the data
public void removeDataSpecifiedForObject(long policyKey,
long objectKey,
long formKey)
throws Thor.API.Exceptions.tcPolicyNotFoundException,
Thor.API.Exceptions.tcAPIException,
Thor.API.Exceptions.tcObjectNotAssignedException,
tcAPIException
policyKey - policy KeyobjectKey - object keyformKey - user defined form for which the access policy data is removed
tcPolicyNotFoundException - If the specified policy does not exist
tcAPIException - If an error occurs while removing the data
tcObjectNotAssignedException - If the specified object is not assigned to the given policy
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||