|
FileNet Content Services Java Connector v3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An object implementing the WriteableSecurityObject
interface is
an object for which security information (permissions) can be changed and
persisted to the object store. (This implies the ability to
change and persist properties via the WriteableMetadataObject
interface.)
Field Summary |
Method Summary | |
void |
setPermissions(Permissions aclCollection)
Sets permissions for the object implementing this WriteableSecurityObject
interface and persists them to the Content Services object store (library).
|
void |
setPermissions(Permissions perms,
java.lang.String collectionType)
Not Implemented in CS Java Connector v3.0. |
Methods inherited from interface com.filenet.wcm.api.WriteableMetadataObject |
setProperties |
Methods inherited from interface com.filenet.wcm.api.ReadableMetadataObject |
getProperties, getProperties, getPropertiesXML, getPropertyBinaryValue, getPropertyBooleanValue, getPropertyDateValue, getPropertyDoubleValue, getPropertyIntValue, getPropertyStringValue, getPropertyValue, getPropertyValuesValue, refresh, refresh |
Methods inherited from interface com.filenet.wcm.api.BaseObject |
equals, exportObject, getClassId, getId, getName, getObjectStoreId, getObjectType, getSession, hashCode, thisBaseObject |
Methods inherited from interface com.filenet.wcm.api.ReadableSecurityObject |
getPermissions, getPermissions |
Method Detail |
public void setPermissions(Permissions aclCollection)
WriteableSecurityObject
interface and persists them to the Content Services object store (library).
The user must have
Permission.idmAccessOwner
access on this object
to set its permissions.
Because setPermissions
completely replaces the collection,
note that you must set the
entire Permissions
collection, including those
Permission
elements whose values remain unchanged.
Your collection should contain at least one
element. Passing in an empty collection removes all access to the object;
no error is thrown. To set default permissions for the object, pass in Java
null
for the aclCollection
parameter.
After a successful call to setPermissions
, the following
properties are considered stale and are removed from cache for this
WriteableSecurityObject
object:
A subsequent request for any of these properties causes the CS Java Connector to retrieve fresh data from the Content Services server.
aclCollection
- A Permissions
collection containing
the Permission
objects to persist to the Content Services
object store. To set default permissions, pass in Java null
.public void setPermissions(Permissions perms, java.lang.String collectionType)
Not Implemented in CS Java Connector v3.0.
Sets permissions of the specified type for the object implementing thisWriteableSecurityObject
interface and persists
them to the Content Services object store. The user must have
Permission.LEVEL_FULL_CONTROL
access on this object
to set its permissions.
Specify the type of permissions (basic object or audit) to set
in the collectionType
parameter.
Because setPermissions
completely replaces the existing
permissions for the object, you must set each element in the
Permissions
collection, including those
elements whose values remain unchanged.
Your collection should contain at least one
element. Passing in an empty collection removes all access to the object;
no error is thrown.
When changing security on a folder, note that the change can affect the security on objects contained within the folder.
perms
- A Permissions
collection containing the
Permission
objects to persist to the Content
Services object store. If null
, throws IllegalArgumentException
.
collectionType
- A String
that is the name of a property whose value is a
collection of Content Services Permission
objects.
Use Property.PERMISSIONS
or
Property.AUDIT_PERMISSIONS
for basic
object or audit permissions, respectively.
|
FileNet Content Services Java Connector v3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |