|
Oracle Fusion Middleware Management Java API Reference for Oracle Entitlements Server 11g Release 2 (11.1.2) E27155-01 ESAPI |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.jps.service.policystore.info.InfoFactory
public class InfoFactory
A factory class that provides utility methods to create info objects.
The objects are in-memory representations of PolicyStore artifacts. The objects do not represent an object in the persistent store. To identify a persisted object, query the store for the required object. Validation is not performed while creating the in-memory object to ensure if the object exists in the persistent store or not.
Constructor Summary | |
---|---|
InfoFactory() |
Method Summary | |
---|---|
static PermissionEntry |
newPermissionEntry(java.lang.String resourceTypeName, java.lang.String permClass, java.lang.String targetName, java.lang.String actions) Constructs an in-memory representation of a Permission Entry Object. |
static PrincipalEntry |
newPrincipalEntry(java.lang.String principalClass, java.lang.String name) Creates a PrincipalEntry given the principalClass, type and name. |
static ResourceActionsEntry |
newResourceActionsEntry(ResourceNameExpression rne, java.util.List<java.lang.String> actions) Construct a ResourceActionEntry with ResourceNameExpression |
static ResourceActionsEntry |
newResourceActionsEntry(java.lang.String resourceType, java.lang.String resourceName, java.util.Set<java.lang.String> actions, java.lang.String appid) Construct a ResourceActionsEntry |
static RoleCategoryEntry |
newRoleCategoryEntry(java.lang.String name, java.lang.String displayName, java.lang.String descr) Creates a RoleCategoryEntry in memory. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InfoFactory()
Method Detail |
---|
public static PrincipalEntry newPrincipalEntry(java.lang.String principalClass, java.lang.String name) throws JpsException
principalClass
- Java class that implements the Principalname
- Name of the PrincipalJpsException
- if an error is raised while trying to create the object.public static PermissionEntry newPermissionEntry(java.lang.String resourceTypeName, java.lang.String permClass, java.lang.String targetName, java.lang.String actions) throws JpsException
permClass
- the Java class implementing the permissiontargetName
- the target of the permissionactions
- a comman separated list of actionsresourceTypeName
- the name of the resource type associated with this permissionJpsException
public static ResourceActionsEntry newResourceActionsEntry(java.lang.String resourceType, java.lang.String resourceName, java.util.Set<java.lang.String> actions, java.lang.String appid) throws JpsException
resourceType
- type of the resource, cannot be null.resourceName
- name of the resource, cannot be null.actions
- set of actions (should be a subset of all actions of the resource type. can be null.appid
- name of application policy to associcate with the resource, cannot be null. The value is ignored when creating a PermissionSet and it is utilized by the PolicyStore.checkBulkAuthorization(javax.security.auth.Subject, java.util.Set)
APIJpsException
- if there is an error while creating the ResourceActionsEntry.
This ResourceActionsEntry
will not have a display name and description associated with the resource.
public static ResourceActionsEntry newResourceActionsEntry(ResourceNameExpression rne, java.util.List<java.lang.String> actions) throws JpsException
rne
- ResourceNameExpression cannot be nullactions
- list of actions can be nullJpsException
public static RoleCategoryEntry newRoleCategoryEntry(java.lang.String name, java.lang.String displayName, java.lang.String descr) throws JpsException
name
- Name of role category. Required.displayName
- Display name of category, if any.descr
- Description of category, if any.JpsException
- if name provided is null or if an error occurs while creating the entry.
|
Oracle Fusion Middleware Management Java API Reference for Oracle Entitlements Server 11g Release 2 (11.1.2) E27155-01 ESAPI |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |