public class DctmUtil
extends java.lang.Object
Constructor and Description |
---|
DctmUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
ACLIntToString(int permission)
Helper function to convert an ACL Integer to its String representation
|
static java.lang.Integer |
ACLStringToInt(java.lang.String permission)
Helper function to convert an ACL String to its int representation
|
static java.util.Set<java.lang.String> |
getAclsForCurrentUser(java.lang.String ticket,
int minPermitLevel)
Method retrieves the ACLs for the current user
The fullQueryString is created and executed and the convenience method getCurrentUserLoginName() above is called
|
static java.lang.String |
getCurrentUserLoginName(java.lang.String ticket)
Convenience method that retrieves the user's login name
|
static java.lang.String |
getIdByPathOrId(java.lang.String ticket,
java.lang.String pathOrId)
This method fetches an id value based on a provided variable that can be either a path to an object or an objectId.
|
static java.util.List<QueryResultRow> |
parseQueryResults(com.tsgrp.util.dctm.Result result)
parseQueryResults
|
static void |
queueRenditionRequest(java.lang.String ticket,
java.lang.String objectId)
Convenience method for adding a rendition to the queue.
|
static java.lang.String |
resolveDisplayName(java.lang.String ticket,
java.lang.String userLoginNameOrDisplayName)
Helper method that takes in either a Documentum user's login name or
a Documentum user's display name, and returns the Documentum user's display name.
|
public static java.util.List<QueryResultRow> parseQueryResults(com.tsgrp.util.dctm.Result result)
result
- public static java.lang.String getCurrentUserLoginName(java.lang.String ticket)
ticket
- public static void queueRenditionRequest(java.lang.String ticket, java.lang.String objectId) throws com.documentum.fc.common.DfException
ticket
- objectId
- com.documentum.fc.common.DfException
public static java.util.Set<java.lang.String> getAclsForCurrentUser(java.lang.String ticket, int minPermitLevel)
ticket
- - login ticket assigned upon loginminPermitLevel
- public static java.lang.String resolveDisplayName(java.lang.String ticket, java.lang.String userLoginNameOrDisplayName)
ticket
- userLoginNameOrDisplayName
- public static java.lang.String getIdByPathOrId(java.lang.String ticket, java.lang.String pathOrId)
ticket
- the OC ticket for validationpathOrId
- the path or id for which to find the objectIdpublic static java.lang.String ACLIntToString(int permission)
permission
- - The ACL intpublic static java.lang.Integer ACLStringToInt(java.lang.String permission)
permission
- - The ACL String