|
Oracle® Information Rights Management Server Java API Reference 11g Release 1 (11.1.1) E12907-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.irm.engine.rights.context.DocumentRoleFactory
public final class DocumentRoleFactory
Document Role factory. This class provides methods for creating new instances of DocumentRole
objects.
Method Summary | |
---|---|
static DocumentRole |
createDocumentRole(UUID uuid, Collection<Label> labels, LicenseCriteria.Storage storage, Collection<Feature> features, Collection<TimeSpan> timeSpans, TimePeriod refreshPeriod, ItemConstraints.Type itemConstraints, DocumentRole.ExportConstraints exportConstraints, Domain domain) Create a role. |
static DocumentRole |
createDocumentRole(UUID uuid, Domain domain) Recreate an existing role. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static DocumentRole createDocumentRole(UUID uuid, Domain domain) throws UnknownDocumentRoleException
uuid
- the document role UUID.domain
- the domain that owns this role.UnknownDocumentRoleException
- the role does not exist. When a role is created, the implementation may immediately check whether the role exists or delay this until the other properties on the role are accessed. An assumption should not be made that this constructor will throw this exception if the role does not exist.public static DocumentRole createDocumentRole(UUID uuid, Collection<Label> labels, LicenseCriteria.Storage storage, Collection<Feature> features, Collection<TimeSpan> timeSpans, TimePeriod refreshPeriod, ItemConstraints.Type itemConstraints, DocumentRole.ExportConstraints exportConstraints, Domain domain)
uuid
- the document role UUID.labels
- the role's labels. This parameter is optional, it is valid to pass null or an empty collection.storage
- storage specifier.features
- the valid features. This parameter is optional, it is valid to pass null or an empty collection.timeSpans
- time constraints. This parameter is optional, it is valid to pass null or an empty collection.refreshPeriod
- the refresh period. This parameter is optional, it is valid to pass null.itemConstraints
- item constraints.exportConstraints
- item constraints.domain
- the domain that owns this role. This parameter is optional, it is valid to pass null.saveNewRole
, saveChangesToRole
|
Oracle® Information Rights Management Server Java API Reference 11g Release 1 (11.1.1) E12907-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |