|
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.core.account.AccountFactory
public final class AccountFactory
Account factory. This class provides methods for creating new instances of Account
objects.
Method Summary | |
---|---|
static Account |
createAccount(String uuid) Create an account from an UUID. |
static Account |
createAccount(String uuid, String name, Account.Type type) Create an account by specifying all the user or group details. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Account createAccount(String uuid) throws UnknownAccountException
Account
that represents the user or group. The properties of the account (such as Name
) will then be retrievable.
uuid
- the account UUID.UnknownAccountException
- the account does not exist. When an account is created, the implementation may immediately check whether the account exists or delay this until the other properties on the account are accessed. An assumption should not be made that this constructor will throw this exception if the account does not exist.public static Account createAccount(String uuid, String name, Account.Type type)
Account
that represents the user or group. The properties of the account (such as Name
) are set from the provided parameters. There is no attempt made to see if this account exists in the external user store so the values provided must correspond to the details in the external user store.uuid
- the account UUID.name
- the account name.type
- the account type.
|
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 |