|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Function: The part of the PolicyService which runs locally on the host where the other components of the system run.
| Method Summary | |
UserProfileObject |
activateRoleForUser(java.lang.String urd,
java.lang.String role,
UserProfileObject upo)
Activate the given role for the User |
UserProfileObject |
assignRoleForUser(java.lang.String urd,
java.lang.String role,
java.lang.String pmcName,
UserProfileObject upo)
Assign the selected role for the User UPO |
UserProfileObject |
assignUserToDomain(java.lang.String urd,
java.lang.String pmcName,
java.lang.String domain,
UserProfileObject upo)
Assign the given user to a domain - copy the selected PMC to the selected domain 1. |
void |
connectToPolicyService()
Connect to default Policy Service |
void |
connectToPolicyService(java.lang.String polServiceObjectName)
Connect to given Policy Service |
void |
copyCompPolTypeEntries(java.lang.String typeName,
java.lang.String typePath,
java.lang.String name,
java.lang.String domain)
Copy the sub-entries (sub-policies) of the given composite policy type to the composite policy entry (which is an instantiation of the composite policy type) |
void |
createCompPolEntry(java.lang.String domain,
java.lang.String name,
int type,
boolean isType,
CompositePolicyEntry compPolEntry)
Create an Entry in the Directory for a Composite Policy |
UserProfileObject |
createNewUser(java.lang.String urd,
java.lang.String userId,
java.lang.String userName)
Create New User 1. |
UserProfileObject |
createPMCForUser(java.lang.String urd,
java.lang.String pmcName,
UserProfileObject upo)
Create a New (Default) PMC for the given user 1. |
UserProfileObject |
deactivateRoleForUser(java.lang.String urd,
java.lang.String role,
UserProfileObject upo)
Deactivate the given role for the User |
UserProfileObject |
deletePMCForUser(java.lang.String urd,
java.lang.String selectedPmc,
UserProfileObject upo)
Delete the given PMC from the URD of the user Get all the Domains to which the PMC is assigned from the UPO, and unbind them too |
CompositePolicyEntry |
getCompPolEntry(java.lang.String policyName,
java.lang.String domain)
|
ControlObject |
getControlObject(java.lang.String policyDn)
Return the ControlObject for the given Policy Object name. |
PolicyEntry |
getPolicyEntry(java.lang.String policyDN)
|
PolicyEntry |
getPolicyEntry(java.lang.String policyName,
java.lang.String domain)
|
UserProfileObject |
removeRoleFromUser(java.lang.String urd,
java.lang.String role,
UserProfileObject upo)
Remove the selected role from the User UPO |
UserProfileObject |
removeUserFromDomain(java.lang.String urd,
java.lang.String domain,
UserProfileObject upo)
Remove the given user from a domain 1. |
java.lang.String |
retrievePolicy(java.lang.String policyName,
java.lang.String domain)
Retrieves the policy object given the name and the domain path of the policy. |
BasicPolControlObject |
startPolicy(java.lang.String policyName,
java.lang.String domain)
Start a Policy Instance. |
RoleControlObject |
startRole(java.lang.String roleName,
java.lang.String domain)
Start a Role Instance. |
void |
stopPolicy(java.lang.String polDomainName)
Stop a Policy - Delete the ControlObject that represents it. |
void |
storePolicy(PolicyEntry policyEntry,
java.lang.String name,
java.lang.String domain)
Store the PolicyEntry object in the directory. |
| Method Detail |
public void storePolicy(PolicyEntry policyEntry,
java.lang.String name,
java.lang.String domain)
throws java.lang.Exception
public java.lang.String retrievePolicy(java.lang.String policyName,
java.lang.String domain)
throws java.lang.Exception
public PolicyEntry getPolicyEntry(java.lang.String policyName,
java.lang.String domain)
throws java.lang.Exception
policyName - The name of the policy to look fordomain - The domain where the policy is stored
public PolicyEntry getPolicyEntry(java.lang.String policyDN)
throws java.lang.Exception
policyDN - The distinguished name (ldap name) of the policy
object to retrieve
public BasicPolControlObject startPolicy(java.lang.String policyName,
java.lang.String domain)
throws java.lang.Exception
public RoleControlObject startRole(java.lang.String roleName,
java.lang.String domain)
throws java.lang.Exception
roleName - The name of the roledomain - The domain path of the role
public void stopPolicy(java.lang.String polDomainName)
throws java.lang.Exception
public ControlObject getControlObject(java.lang.String policyDn)
throws java.lang.Exception
policyDn - The Distinguished Name of the policy we are
interested in
public void createCompPolEntry(java.lang.String domain,
java.lang.String name,
int type,
boolean isType,
CompositePolicyEntry compPolEntry)
throws java.lang.Exception
domain - The domain in which to create the entryname - The name of the entry to createtype - The type of the entry to create
(from ponderCompiler.codeGen.interfaces.CompositePolicyI)isType - If true it means the policy is a type. False means it
is notcompPolEntry - The composite policy entry to store
public CompositePolicyEntry getCompPolEntry(java.lang.String policyName,
java.lang.String domain)
throws java.lang.Exception
policyName - The name of the composite policy to look fordomain - The domain where the policy is stored
public void copyCompPolTypeEntries(java.lang.String typeName,
java.lang.String typePath,
java.lang.String name,
java.lang.String domain)
typeName - The name of the type composite policy entrytypePath - The domain path of the type composite policy entryname - The name of the inst composite policy entrydomain - The domain path of the inst composite policy entry
public UserProfileObject createNewUser(java.lang.String urd,
java.lang.String userId,
java.lang.String userName)
throws java.lang.Exception
urd - The URD to createuserId - The id of the useruserName - The name of the new user
public UserProfileObject assignUserToDomain(java.lang.String urd,
java.lang.String pmcName,
java.lang.String domain,
UserProfileObject upo)
throws java.lang.Exception
urd - The User Representation DomainpmcName - The PMC in the URD to assign to the domaindomain - The domain to assign the user toupo - The User Profile Object to which to assign the role
If null, then it is retrieved from the directory
public UserProfileObject removeUserFromDomain(java.lang.String urd,
java.lang.String domain,
UserProfileObject upo)
throws java.lang.Exception
urd - The User Representation Domaindomain - The domain to assign the user toupo - The User Profile Object to which to assign the role
If null, then it is retrieved from the directory
public UserProfileObject createPMCForUser(java.lang.String urd,
java.lang.String pmcName,
UserProfileObject upo)
throws java.lang.Exception
urd - The User Representation Domaindomain - The domain to assign the user toupo - The User Profile Object to which to assign the role
If null, then it is retrieved from the directory
public UserProfileObject deletePMCForUser(java.lang.String urd,
java.lang.String selectedPmc,
UserProfileObject upo)
throws java.lang.Exception
urd - The User Representation DomainselectedPMC - The PMC to deleteupo - The User Profile Object to which to assign the role
If null, then it is retrieved from the directory
public UserProfileObject assignRoleForUser(java.lang.String urd,
java.lang.String role,
java.lang.String pmcName,
UserProfileObject upo)
throws javax.naming.NamingException
urd - The full path for the URD of the userrole - The name of the role (full domain path) to assignpmcName - The name of the PMC to associate with the roleupo - The User Profile Object from which to remove the role
If null, then it is retrieved from the directory
public UserProfileObject removeRoleFromUser(java.lang.String urd,
java.lang.String role,
UserProfileObject upo)
throws javax.naming.NamingException,
java.lang.Exception
urd - The full path for the URD of the userrole - The name of the role (full domain path) to removeupo - The User Profile Object from which to remove the role
If null, then it is retrieved from the directory
public UserProfileObject activateRoleForUser(java.lang.String urd,
java.lang.String role,
UserProfileObject upo)
throws javax.naming.NamingException,
java.lang.Exception
urd - The full path for the URD of the userrole - The name of the role (full domain path) to activateupo - The User Profile Object for which to activate the role
If null, then it is retrieved from the directory
public UserProfileObject deactivateRoleForUser(java.lang.String urd,
java.lang.String role,
UserProfileObject upo)
throws javax.naming.NamingException,
java.lang.Exception
urd - The full path for the URD of the userrole - The name of the role (full domain path) to deactivateupo - The User Profile Object for which to deactivate the role
If null, then it is retrieved from the directory
public void connectToPolicyService(java.lang.String polServiceObjectName)
throws java.lang.Exception
polServiceObjectName - The remote object name for the Policy
Server
public void connectToPolicyService()
throws java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||