|
Oracle Content Database Web Services Java API Reference for Oracle WebCenter Suite 10g (10.1.3.2) B32189-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface class SecurityManager
The security management interface.
Method Summary | |
---|---|
Item |
addGrants(long id, NamedValue[] def, AttributeRequest[] attributes) Adds the specified grants to the SecurityConfiguration of the target item. |
boolean |
checkPermission(long target, long userOrGroup, long permission) Determines whether the given DirectoryObject has the given permission on the given target object. |
Item |
createRole(long target, NamedValue[] def, AttributeRequest[] attributes) Creates a new Role for use in the target domain. |
void |
deleteRole(long id, NamedValue[] def) Deletes a Role. |
Item |
findRoleByKey(java.lang.String name, AttributeRequest[] attributes) Fetches a single OOTB role by its registered role key. |
Item[] |
getComputedGranteeList(long target, long role, AttributeRequest[] attributes) Returns the set of users that are granted the specified role on the specified SecurityConfiguration. |
Item |
getRole(long id, AttributeRequest[] attributes) Fetches a single role |
Item |
getRoleByName(java.lang.String name, AttributeRequest[] attributes) Fetches a single role by its commonname. |
boolean |
hasOnlyExplicitGrantedAccess(long target, long user) Returns true if the specified user has a grant on the specified public object that names the user as the grantee, and the permissions granted by this grant represent all the permissions of that user on the public object. |
boolean |
hasPropagatingGrants(long target, long user) Returns true if the specified user has any grants on the specified SecurityConfiguration that propagated from a parent. |
Item[] |
listRoles(long id, NamedValue[] options, AttributeRequest[] attributes) Returns the available security roles in the domain that apply to the given target object. |
Item[] |
listRolesByItemType(java.lang.String itemType, NamedValue[] options, AttributeRequest[] attributes) Returns the available security roles in the domain that apply to the given target object class. |
void |
removeSecurityConfiguration(long id) Removes the SecurityConfiguration from the target item. |
Item |
setSecurityConfiguration(long id, NamedValue[] def, AttributeRequest[] attributes) Updates the SecurityConfiguration of the target item. |
Item |
updateRole(long id, NamedValue[] def, AttributeRequest[] attributes) Updates a Role. |
Method Detail |
---|
Item getRole(long id, AttributeRequest[] attributes) throws FdkException
SecurityManager
id
- Id of the role.attributes
- Additional attributes to be fetched.FdkException
- if the operation fails.Item getRoleByName(java.lang.String name, AttributeRequest[] attributes) throws FdkException
SecurityManager
name
- Common name of the role.attributes
- Additional attributes to be fetched.FdkException
- if the operation fails.Item findRoleByKey(java.lang.String name, AttributeRequest[] attributes) throws FdkException
SecurityManager
key
- Registered role key of the role, which must match one of the ECM_ROLEKEY-prefixed strings in FdkConstants.attributes
- Additional attributes to be fetched.FdkException
- if the operation fails.Item[] listRoles(long id, NamedValue[] options, AttributeRequest[] attributes) throws FdkException
SecurityManager
id
- the id of the target objectoptions
- Options on the retrieved list. Valid options are:
attributes
- attributes to retrieve.FdkException
- if the operation fails.Item[] listRolesByItemType(java.lang.String itemType, NamedValue[] options, AttributeRequest[] attributes) throws FdkException
SecurityManager
itemType
- ItemTypes string representing these supported types:
options
- Options on the retrieved list. Valid options are:
attributes
- attributes to retrieve.FdkException
- if the operation fails.Item createRole(long target, NamedValue[] def, AttributeRequest[] attributes) throws FdkException
SecurityManager
target
- The ID of the target domain.def
- Attributes for the new role.
attributes
- requested attributes for each item, or null.FdkException
- if the operation fails.void deleteRole(long id, NamedValue[] def) throws FdkException
SecurityManager
target
- The ID of the target role.def
- Optional attributes.FdkException
- if the operation fails.Item updateRole(long id, NamedValue[] def, AttributeRequest[] attributes) throws FdkException
SecurityManager
target
- The ID of the target role.def
- New attributes for the role.
attributes
- the requested attributes for the itemFdkException
- if the operation fails.Item setSecurityConfiguration(long id, NamedValue[] def, AttributeRequest[] attributes) throws FdkException
SecurityManager
Note: to execute this operation asynchronously, specify the optional RUN_ASYNC
option with a value of Boolean.TRUE
.
id
- The ID of the target objectdef
- Attributes for the securityconfiguration.
attributes
- requested attributes for each item, or null.FdkException
- if the operation fails.Item addGrants(long id, NamedValue[] def, AttributeRequest[] attributes) throws FdkException
SecurityManager
Note: to execute this operation asynchronously, specify the optional RUN_ASYNC
option with a value of Boolean.TRUE
.
id
- The ID of the target objectdef
- Attributes for the securityconfiguration.
attributes
- requested attributes for each item, or null.FdkException
- if the operation fails.void removeSecurityConfiguration(long id) throws FdkException
SecurityManager
id
- The ID of the target itemFdkException
- if the operation fails.boolean checkPermission(long target, long userOrGroup, long permission) throws FdkException
SecurityManager
target
- The ID of the target PublicObject.userOrGroup
- The ID of the DirectoryObject.permission
- The long (bit value) representing the permission bit.FdkException
- if the operation fails.Item[] getComputedGranteeList(long target, long role, AttributeRequest[] attributes) throws FdkException
SecurityManager
target
- The ID of the target security configuration.role
- The ID of the role.attributes
- Attributes on the users to retrieve.FdkException
- if the operation fails.boolean hasPropagatingGrants(long target, long user) throws FdkException
SecurityManager
target
- The ID of the target SecurityConfiguration.user
- The ID of the desired user.FdkException
- if the operation fails.boolean hasOnlyExplicitGrantedAccess(long target, long user) throws FdkException
SecurityManager
target
- The ID of the target SecurityConfiguration.user
- The ID of the desired user.FdkException
- if the operation fails.
|
Oracle Content Database Web Services Java API Reference for Oracle WebCenter Suite 10g (10.1.3.2) B32189-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |