public class ResourceManager extends Object
ResourceManager
manages an index to the
resources managed by policies in a specific organization/realm.Modifier and Type | Method and Description |
---|---|
boolean |
canCreateNewResource(String ServiceType)
Determines that with the given organization (or, sub-organization,
or container) name, if a new resource can be created or not.
|
Set |
getManagedResourceNames()
Returns a set of all managed resource names for all the
service types
|
Set |
getManagedResourceNames(String serviceType)
Returns a set of all managed resource names for the given
service type.
|
Set |
getPolicyNames(String serviceType,
String resource,
boolean includePoliciesForSuperResources)
Returns a set of names of all the policies for the given resource
of the given service.
|
Set |
getValidServiceNames()
Returns a set of valid service names that are applicable for
the organization.
|
String[] |
splitResourceName(String serviceTypeName,
String resourceName)
Returns the resource prefix (super-resource) and the rest of the
resource name (sub-resource)
|
public Set getManagedResourceNames() throws PolicyException
PolicyException
- if unable to get the policy services,
and will contain the exception thrown by SMS.public Set getManagedResourceNames(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(String ServiceType) throws PolicyException
ServiceType
- the service typetrue
if new resources can be created,
else false
PolicyException
- problem with configuration storepublic 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 organizationpublic Set getPolicyNames(String serviceType, 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 expiredpublic String[] splitResourceName(String serviceTypeName, 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 expiredCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.