|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.sun.identity.policy.ResourceManager
The class ResourceManager manages resources for
a specific organization.
| Method Summary | |
boolean |
canCreateNewResource(java.lang.String ServiceType)
Determines that with the given organization (or, sub-organization, or container) name, if a new resource can be created or not. |
java.util.Set |
getManagedResourceNames()
Returns a set of all managed resource names for all the service types |
java.util.Set |
getManagedResourceNames(java.lang.String serviceType)
Returns a set of all managed resource names for the given service type. |
java.util.Set |
getPolicyNames(java.lang.String serviceType,
java.lang.String resource,
boolean includePoliciesForSuperResources)
Returns a set of names of all the policies for the given resource of the given service. |
java.util.Set |
getValidServiceNames()
Returns a set of valid service names that are applicable for the organization. |
java.lang.String[] |
splitResourceName(java.lang.String serviceTypeName,
java.lang.String resourceName)
Returns the resource prefix (super-resource) and the rest of the resource name (sub-resource) |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public java.util.Set getManagedResourceNames()
throws PolicyException
PolicyException - if unable to get the policy services,
and will contain the exception thrown by SMS.
public java.util.Set getManagedResourceNames(java.lang.String serviceType)
throws PolicyException
serviceType - the service type for which the resource
names should be returned.PolicyException - if unable to get the policy services,
and will contain the exception thrown by SMS.
public boolean canCreateNewResource(java.lang.String ServiceType)
throws PolicyException
ServiceType - the service typePolicyException - problem with directory server service,
will contain the exception thrown by SMS
public java.util.Set getValidServiceNames()
throws SSOException,
PolicyException
SSOException - if the caller's single sign on token has expiredPolicyException - if not able to get list of services
defined for the organization
public java.util.Set getPolicyNames(java.lang.String serviceType,
java.lang.String resource,
boolean includePoliciesForSuperResources)
throws InvalidFormatException,
NoPermissionException,
PolicyException,
SSOException
serviceType - the service type which the resource is associated
withresource - the resource for which policies should be returnedincludePoliciesForSuperResources - indicating whether the
policies for all the super-resources in addition to the ultimate
(sub)resource should be returnedInvalidFormatException - the retrieved resources
from the data store have been corrupted or do not have a
valid format.NoPermissionException - the user does not have sufficient
privileges.PolicyException - if unable to get the policy services,
and will contain the exception thrown by SMS.SSOException - single-sign-on token invalid or expired
public java.lang.String[] splitResourceName(java.lang.String serviceTypeName,
java.lang.String resourceName)
throws NameNotFoundException,
SSOException,
PolicyException
serviceTypeName - the service type which the resource is
associated withresourceName - the resource name to be splitPolicyException - if unable to get the policy services,
and will contain the exception thrown by SMS.NameNotFoundException - service for the given
serviceTypeName does not existSSOException - single-sign-on token invalid or expired
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||