Package com.emc.documentum.d2fs.util
Class D2SDKUtils
java.lang.Object
com.emc.documentum.d2fs.util.D2SDKUtils
Utility class with commonly used methods.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.emc.documentum.rest.dfc.IDfCloseableSession
getClosableSession
(com.emc.documentum.rest.dfc.RepositorySession repositorySession, boolean usePrivate) Gets dfc closable session.static D2fsRestContext
getD2fsRestContext
(com.emc.documentum.rest.dfc.RepositorySession repositorySession) Gets D2fsRestContext objectstatic Locale
Gets the client locale information.static com.documentum.fc.client.IDfSession
getSession
(com.emc.documentum.rest.dfc.RepositorySession repositorySession, boolean usePrivate) Gets dfc session.static boolean
isValidObjectId
(String objectId) Checks if the passed string contains valid set of chars allowed for DCTM object id.
-
Constructor Details
-
D2SDKUtils
public D2SDKUtils()
-
-
Method Details
-
getD2fsRestContext
public static D2fsRestContext getD2fsRestContext(com.emc.documentum.rest.dfc.RepositorySession repositorySession) throws com.documentum.fc.common.DfException Gets D2fsRestContext object- Parameters:
repositorySession
-- Returns:
- Throws:
com.documentum.fc.common.DfException
-
getSession
public static com.documentum.fc.client.IDfSession getSession(com.emc.documentum.rest.dfc.RepositorySession repositorySession, boolean usePrivate) throws com.documentum.fc.common.DfException Gets dfc session. Use this api to get dfc session instead of getting it directly from dfc session manager.- Parameters:
repositorySession
-usePrivate
- 'true' value would get new session whereas 'false' would get shared session.- Returns:
- Throws:
com.documentum.fc.common.DfException
-
getClosableSession
public static com.emc.documentum.rest.dfc.IDfCloseableSession getClosableSession(com.emc.documentum.rest.dfc.RepositorySession repositorySession, boolean usePrivate) throws com.documentum.fc.common.DfException Gets dfc closable session. Use this api to get dfc session instead of getting it directly from dfc session manager.- Parameters:
repositorySession
-usePrivate
- 'true' value would get new session whereas 'false' would get shared session.- Returns:
- Throws:
com.documentum.fc.common.DfException
-
getLocale
Gets the client locale information.- Returns:
-
isValidObjectId
Checks if the passed string contains valid set of chars allowed for DCTM object id.- Parameters:
objectId
-- Returns:
-