Package com.sun.identity.entitlement
Interface EntitlementConfiguration
-
- All Known Implementing Classes:
EntitlementService
public interface EntitlementConfigurationEntitlement Configuration
-
-
Field Summary
Fields Modifier and Type Field Description static StringINDEX_CACHE_SIZEstatic StringPOLICY_CACHE_SIZEstatic StringPOLICY_EVAL_THREAD_SIZEstatic StringPOLICY_SEARCH_THREAD_SIZE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddSubjectAttributeNames(String application, Set<String> names)Adds subject attribute names.ApplicationgetApplication(String name)Returns the application with the specified name.Set<Application>getApplications()Returns a set of registered applications.Set<ApplicationType>getApplicationTypes()Returns a set of registered application type.Set<String>getConfiguration(String attributeName)Returns set of attribute values of a given attribute name,intgetPolicyWindowSize()Informs us of the size of the policy window set in the configurable options.Set<String>getSubjectAttributeNames(String application)Returns subject attribute names.Map<String,Set<String>>getSubjectAttributesCollectorConfiguration(String name)Returns subject attributes collector configuration.booleanhasEntitlementDITs()Returnstrueif OpenAM policy data is migrated to a form that entitlements service can operates on them.booleanisMonitoringRunning()For letting us know whether or not the Agent monitoring is enabled in core.booleannetworkMonitorEnabled()Returnstrueif the network monitoring for entitlements is enabledvoidreindexApplications()Reindex Applications.voidremoveApplication(String name)Removes application.voidremoveApplicationType(String name)Removes application type.Set<Application>searchApplications(Subject subject, org.forgerock.util.query.QueryFilter<String> queryFilter)Returns a set of applications for the given search criteria.voidsetNetworkMonitorEnabled(boolean enabled)Allows the network monitoring to be enabled/disabledvoidsetSubjectAttributesCollectorConfiguration(String name, Map<String,Set<String>> attrMap)Sets subject attributes collector configuration.voidstoreApplication(Application application)Stores the application to data store.voidstoreApplicationType(ApplicationType applicationType)Stores the application type to data store.booleanxacmlPrivilegeEnabled()Returnstrueif the system stores privileges in XACML format and supports exporting privileges in XACML format
-
-
-
Field Detail
-
POLICY_EVAL_THREAD_SIZE
static final String POLICY_EVAL_THREAD_SIZE
- See Also:
- Constant Field Values
-
POLICY_SEARCH_THREAD_SIZE
static final String POLICY_SEARCH_THREAD_SIZE
- See Also:
- Constant Field Values
-
POLICY_CACHE_SIZE
static final String POLICY_CACHE_SIZE
- See Also:
- Constant Field Values
-
INDEX_CACHE_SIZE
static final String INDEX_CACHE_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getApplication
Application getApplication(String name)
Returns the application with the specified name.- Returns:
- The application or null if the application could not be found.
-
getApplications
Set<Application> getApplications()
Returns a set of registered applications.- Returns:
- a set of registered applications.
-
removeApplication
void removeApplication(String name) throws EntitlementException
Removes application.- Parameters:
name- name of application to be removed.- Throws:
EntitlementException- if application cannot be removed.
-
storeApplication
void storeApplication(Application application) throws EntitlementException
Stores the application to data store.- Parameters:
application- Application object.- Throws:
EntitlementException- if application cannot be stored.
-
getApplicationTypes
Set<ApplicationType> getApplicationTypes()
Returns a set of registered application type.- Returns:
- A set of registered application type.
-
removeApplicationType
void removeApplicationType(String name) throws EntitlementException
Removes application type.- Parameters:
name- name of application type to be removed.- Throws:
EntitlementException- if application type cannot be removed.
-
storeApplicationType
void storeApplicationType(ApplicationType applicationType) throws EntitlementException
Stores the application type to data store.- Parameters:
applicationType- Application type object.- Throws:
EntitlementException- if application type cannot be stored.
-
getConfiguration
Set<String> getConfiguration(String attributeName)
Returns set of attribute values of a given attribute name,- Parameters:
attributeName- attribute name.- Returns:
- set of attribute values of a given attribute name,
-
getSubjectAttributeNames
Set<String> getSubjectAttributeNames(String application) throws EntitlementException
Returns subject attribute names.- Parameters:
application- Application name.- Returns:
- subject attribute names.
- Throws:
EntitlementException- if subject attribute names cannot be returned.
-
addSubjectAttributeNames
void addSubjectAttributeNames(String application, Set<String> names) throws EntitlementException
Adds subject attribute names.- Parameters:
application- Application name.names- Set of subject attribute names.- Throws:
EntitlementException- if subject attribute names cannot be added.
-
getSubjectAttributesCollectorConfiguration
Map<String,Set<String>> getSubjectAttributesCollectorConfiguration(String name) throws EntitlementException
Returns subject attributes collector configuration.- Parameters:
name- subject attributes collector name- Returns:
- subject attributes collector configuration.
- Throws:
EntitlementException- if subject attributes collector configuration cannot be returned.
-
setSubjectAttributesCollectorConfiguration
void setSubjectAttributesCollectorConfiguration(String name, Map<String,Set<String>> attrMap) throws EntitlementException
Sets subject attributes collector configuration.- Parameters:
name- subject attributes collector nameattrMap- subject attributes collector configuration map.- Throws:
EntitlementException- if subject attributes collector configuration cannot be set.
-
hasEntitlementDITs
boolean hasEntitlementDITs()
Returnstrueif OpenAM policy data is migrated to a form that entitlements service can operates on them.- Returns:
trueif OpenAM policy data is migrated to a form that entitlements service can operates on them.
-
networkMonitorEnabled
boolean networkMonitorEnabled()
Returnstrueif the network monitoring for entitlements is enabled- Returns:
trueif the network monitoring for entitlements is enabled.
-
setNetworkMonitorEnabled
void setNetworkMonitorEnabled(boolean enabled)
Allows the network monitoring to be enabled/disabled- Parameters:
enabled- Is the network monitoring enabled
-
xacmlPrivilegeEnabled
boolean xacmlPrivilegeEnabled()
Returnstrueif the system stores privileges in XACML format and supports exporting privileges in XACML format- Returns:
trueif the system stores privileges in XACML format and supports exporting privileges in XACML format
-
searchApplications
Set<Application> searchApplications(Subject subject, org.forgerock.util.query.QueryFilter<String> queryFilter) throws EntitlementException
Returns a set of applications for the given search criteria.- Parameters:
subject- Admin SubjectqueryFilter- Query filter.- Returns:
- a set of applications for the given search criteria.
- Throws:
EntitlementException- if search failed.
-
reindexApplications
void reindexApplications()
Reindex Applications.
-
isMonitoringRunning
boolean isMonitoringRunning()
For letting us know whether or not the Agent monitoring is enabled in core.- Returns:
- true if monitoring is enabled, false otherwise
-
getPolicyWindowSize
int getPolicyWindowSize()
Informs us of the size of the policy window set in the configurable options.- Returns:
- the value of the window size as configured.
-
-