public class SharedAccessPolicyMO
extends java.lang.Object
implements java.io.Serializable
SharedAccessPolicy,
SAEntitlement,
SAMembership,
Serialized Form| Constructor and Description |
|---|
SharedAccessPolicyMO(PlatformContext platform,
javax.security.auth.Subject subject,
DistinguishedName name)
This API constructs the the managed object with a platform context, a subject,
and the distinguished name of the object to manage.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEntitlement(SAEntitlement entitlement)
Add a new entitlement to the policy.
|
void |
addMembership(SAMembership membership)
Add a new membership to the policy.
|
SharedAccessPolicy |
getData()
This API returns a current snapshot of the shared access policy.
|
DistinguishedName |
getDistinguishedName()
Returns the distinguished name of the managed object
|
java.util.Collection<SAEntitlement> |
getEntitlements()
This method returns a list of entitlement objects that contains the entitlement information
associated with the policy.
|
java.util.Collection<SAMembership> |
getMemberships()
This method returns a list of membership objects that contain the membership information
associated with the policy.
|
void |
remove()
This method removes the shared access policy object.
|
void |
removeEntitlement(SAEntitlement entitlement)
Remove an entitlement from the policy.
|
void |
removeMembership(SAMembership membership)
Remove a membership from the policy.
|
void |
setEntitlements(java.util.Collection<SAEntitlement> entitlements)
Set the entitlements to the policy.
|
void |
setMemberships(java.util.Collection<SAMembership> memberships)
Set the memberships to the policy.
|
void |
update(SharedAccessPolicy policy)
Updates the policy with the given SharedAccessPolicy value object.
|
void |
update(SharedAccessPolicy policy,
java.util.Collection<SAMembership> memberships,
java.util.Collection<SAEntitlement> entitlements)
Updates the policy with the given SharedAccessPolicy value object, the memberships, and the entitlements.
|
public SharedAccessPolicyMO(PlatformContext platform, javax.security.auth.Subject subject, DistinguishedName name)
platform - specifies the PlatformContext that holds platform connection information.subject - specifies the Subject that represents the authenticated caller.name - specifies the DistinguishedName of the shared access policy.public DistinguishedName getDistinguishedName()
public SharedAccessPolicy getData() throws java.rmi.RemoteException, ApplicationException
java.rmi.RemoteException - This exception is thrown if the API cannot communicate with platform.ApplicationException - This exception is thrown if the API cannot retrieve data.public java.util.Collection<SAEntitlement> getEntitlements() throws java.rmi.RemoteException, AuthorizationException, ApplicationException
java.rmi.RemoteException - This exception is thrown if the method is unable to communicate with platform.AuthorizationException - This exception is thrown if client is not authorized to search the shared access policy or view the entitlement information.ApplicationException - This exception is thrown if the method is unable to retrieve data.SAEntitlementpublic java.util.Collection<SAMembership> getMemberships() throws java.rmi.RemoteException, AuthorizationException, ApplicationException
java.rmi.RemoteException - This exception is thrown if the method is unable to communicate with platform.AuthorizationException - This exception is thrown if client is not authorized to search the shared access policy or view the membership information.ApplicationException - This exception is thrown if the method is unable to retrieve data.SAMembershippublic void addEntitlement(SAEntitlement entitlement) throws java.rmi.RemoteException, AuthorizationException, ApplicationException
entitlement - SAEntitlement value object.java.rmi.RemoteException - This exception is thrown if the method is unable to communicate with platform.AuthorizationException - This exception is thrown if client is not authorized to modify the shared access policy.ApplicationException - This exception is thrown if the request fails to complete.public void addMembership(SAMembership membership) throws java.rmi.RemoteException, AuthorizationException, ApplicationException
membership - SAMembership value object.java.rmi.RemoteException - This exception is thrown if the method is unable to communicate with platform.AuthorizationException - This exception is thrown if client is not authorized to modify the shared access policy.ApplicationException - This exception is thrown if the request fails to complete.public void removeEntitlement(SAEntitlement entitlement) throws java.rmi.RemoteException, AuthorizationException, ApplicationException
entitlement - SAEntitlement value object.java.rmi.RemoteException - This exception is thrown if the method is unable to communicate with platform.AuthorizationException - This exception is thrown if client is not authorized to modify the shared access policy.ApplicationException - This exception is thrown if the request fails to complete.java.lang.IllegalArgumentException - This exception is thrown if the entitlement parameter is null or its id equals SAEntitlement.ID_NOT_ASSIGNED.public void removeMembership(SAMembership membership) throws java.rmi.RemoteException, AuthorizationException, ApplicationException
membership - SAMembership value object.java.rmi.RemoteException - This exception is thrown if the method is unable to communicate with platform.AuthorizationException - This exception is thrown if client is not authorized to modify the shared access policy.ApplicationException - This exception is thrown if the request fails to complete.java.lang.IllegalArgumentException - This exception is thrown if the membership parameter is null or the membership id equals SAMembership.ID_NOT_ASSIGNED.public void setEntitlements(java.util.Collection<SAEntitlement> entitlements) throws java.rmi.RemoteException, AuthorizationException, ApplicationException
entitlements - Collection of SAEntitlement value objects.java.rmi.RemoteException - This exception is thrown if the method is unable to communicate with platform.AuthorizationException - This exception is thrown if client is not authorized to modify the shared access policy.ApplicationException - This exception is thrown if the request fails to complete.public void setMemberships(java.util.Collection<SAMembership> memberships) throws java.rmi.RemoteException, AuthorizationException, ApplicationException
memberships - Collection of SAMembership value objects.java.rmi.RemoteException - This exception is thrown if the method is unable to communicate with platform.AuthorizationException - This exception is thrown if client is not authorized to modify the shared access policy.ApplicationException - This exception is thrown if the request fails to complete.public void update(SharedAccessPolicy policy) throws java.rmi.RemoteException, AuthorizationException, SchemaViolationException, ApplicationException
policy - SharedAccessPolicy value object defining the attributes the shared access policy will
have.java.rmi.RemoteException - This exception is thrown if the method is unable to communicate with platform.AuthorizationException - This exception is thrown if client is not authorized to modify the shared access policy.SchemaViolationException - This exception is thrown if any of the attributes in the value object
violates the managed object's schema. This may be caused
by an invalid attribute or if a required attribute is
missing entirely.ApplicationException - This exception is thrown if the request fails to complete. This might be caused by
the container being removed by another client
previous to this call.java.lang.IllegalArgumentException - This exception is thrown if policy parameter or policy DN is null.public void update(SharedAccessPolicy policy, java.util.Collection<SAMembership> memberships, java.util.Collection<SAEntitlement> entitlements) throws java.rmi.RemoteException, AuthorizationException, SchemaViolationException, ApplicationException
policy - SharedAccessPolicy value object defining the attributes the shared access policy will
have.memberships - Collection of SAMembership value objects. If null value is passed in, the policy memberships is not changed.entitlements - Collection of SAEntitlement value objects. If null value is passed in, the policy entitlements is not changed.java.rmi.RemoteException - This exception is thrown if the method is unable to communicate with platform.AuthorizationException - This exception is thrown if client is not authorized to modify the shared access policy.SchemaViolationException - This exception is thrown if any of the attributes in the value object
violates the managed object's schema. This may be caused
by an invalid attribute or if a required attribute is
missing entirely.ApplicationException - This exception is thrown if the request fails to complete. This might be caused by
the container being removed by another client
previous to this call.java.lang.IllegalArgumentException - This exception is thrown if policy parameter or policy DN is null.public void remove()
throws java.rmi.RemoteException,
AuthorizationException,
ApplicationException
java.rmi.RemoteException - This exception is thrown, if the client is unable to communicate with the platform.AuthorizationException - This exception is thrown, if the client is unauthorized to remove the policy.ApplicationException - This exception is thrown, if the client is unable to submit the request.
This error might be caused, if another client removes the policy before
this call.IBM Security Identity Manager 6.0.0
© Copyright International Business Machines Corporation 2007, 2012. All rights reserved. US Government Users Restricited Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.