public class UMSObject extends Object
// Previous access class with authenticated context // UMSObject.getObject( Context ctx, String guid ); UMSObject.removeObject( Context ctx, String guid ); UMSObject.logout( Context ctx ); // New API with the use of Principal interface that represents an // authenticated principal UMSObject.getObject( java.security.Principal principal, String guid ); UMSObject.removeObject(java.security.Principal principal, String guid);
Modifier and Type | Field and Description |
---|---|
static String |
ENTITY |
static String |
UMS |
static String |
UTIL |
Constructor and Description |
---|
UMSObject() |
Modifier and Type | Method and Description |
---|---|
static PersistentObject |
getObject(Principal principal,
Guid guid) |
static PersistentObject |
getObject(Principal principal,
Guid guid,
String[] attrNames) |
static PersistentObject |
getObject(SSOToken token,
Guid guid)
Returns the persistent object of correct subclass, for the given id.
|
static PersistentObject |
getObject(SSOToken token,
Guid guid,
String[] attrNames)
Returns the persistent object of correct subclass, for the given ID.
|
static PersistentObject |
getObjectHandle(SSOToken token,
Guid guid)
Return a PersistentObject given an authenticated token and guid.
|
static void |
removeObject(SSOToken token,
Guid guid)
Removes an object identified by the given ID.
|
public static final String UMS
public static final String ENTITY
public static final String UTIL
public static PersistentObject getObject(SSOToken token, Guid guid) throws UMSException
token
- Authenticated principal's single sign on token.guid
- GUID identification of the object to get.UMSException
- if there is an error while instantiating
the right type of object. In addition, it propagates any
exception from the datalayer.public static PersistentObject getObject(SSOToken token, Guid guid, String[] attrNames) throws UMSException
token
- Authenticated principal's single sign on token.guid
- GUID identification of the object to getattrNames
- attribute names to read.UMSException
- if there is an error while instantiating
the right type of object. In addition, it propagates any
exception from the datalayer.public static void removeObject(SSOToken token, Guid guid) throws EntryNotFoundException, UMSException
token
- Authenticated principal's single sign on token.guid
- GUID identification of the object to be removed.EntryNotFoundException
- if the entry is not found.UMSException
- if there is an error while removing the object from
persistence storepublic static PersistentObject getObject(Principal principal, Guid guid) throws UMSException
UMSException
public static PersistentObject getObject(Principal principal, Guid guid, String[] attrNames) throws UMSException
UMSException
public static PersistentObject getObjectHandle(SSOToken token, Guid guid) throws UMSException
token
- Valid and authenticated tokenguid
- Globally unique identifier for the entityUMSException
- for failure to create the objectCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.