Class D2SDKUtils

java.lang.Object
com.emc.documentum.d2fs.util.D2SDKUtils

public class D2SDKUtils extends Object
Utility class with commonly used methods.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    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.
    getD2fsRestContext(com.emc.documentum.rest.dfc.RepositorySession repositorySession)
    Gets D2fsRestContext object
    static 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
    Checks if the passed string contains valid set of chars allowed for DCTM object id.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public static Locale getLocale()
      Gets the client locale information.
      Returns:
    • isValidObjectId

      public static boolean isValidObjectId(String objectId)
      Checks if the passed string contains valid set of chars allowed for DCTM object id.
      Parameters:
      objectId -
      Returns: