Package com.emc.documentum.d2fs.util
Class D2SDKUtils
- java.lang.Object
-
- com.emc.documentum.d2fs.util.D2SDKUtils
-
public class D2SDKUtils extends java.lang.Object
Utility class with commonly used methods.
-
-
Constructor Summary
Constructors Constructor Description D2SDKUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 java.util.Locale
getLocale()
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(java.lang.String objectId)
Checks if the passed string contains valid set of chars allowed for DCTM object id.
-
-
-
Method Detail
-
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
public static java.util.Locale getLocale()
Gets the client locale information.- Returns:
-
isValidObjectId
public static boolean isValidObjectId(java.lang.String objectId)
Checks if the passed string contains valid set of chars allowed for DCTM object id.- Parameters:
objectId
-- Returns:
-
-