Class CmsCmisCallContext

  • All Implemented Interfaces:
    org.apache.chemistry.opencmis.commons.server.CallContext

    public class CmsCmisCallContext
    extends java.lang.Object
    implements org.apache.chemistry.opencmis.commons.server.CallContext
    Call context implementation which delegates most methods to a wrapped call context, but also provides additional functionality.

    • Field Summary

      • Fields inherited from interface org.apache.chemistry.opencmis.commons.server.CallContext

        BINDING_ATOMPUB, BINDING_BROWSER, BINDING_LOCAL, BINDING_WEBSERVICES, CMIS_VERSION, ENCRYPT_TEMP_FILE, HTTP_SERVLET_REQUEST, HTTP_SERVLET_RESPONSE, LENGTH, LOCALE, LOCALE_ISO3166_COUNTRY, LOCALE_ISO639_LANGUAGE, MAX_CONTENT_SIZE, MEMORY_THRESHOLD, OFFSET, PASSWORD, REPOSITORY_ID, SERVLET_CONTEXT, STREAM_FACTORY, TEMP_DIR, USERNAME
    • Constructor Summary

      Constructors 
      Constructor Description
      CmsCmisCallContext​(org.apache.chemistry.opencmis.commons.server.CallContext originalContext, org.apache.chemistry.opencmis.commons.server.ObjectInfoHandler objectInfo)
      Creates a new instance.
    • Constructor Detail

      • CmsCmisCallContext

        public CmsCmisCallContext​(org.apache.chemistry.opencmis.commons.server.CallContext originalContext,
                                  org.apache.chemistry.opencmis.commons.server.ObjectInfoHandler objectInfo)
        Creates a new instance.

        Parameters:
        originalContext - the context to wrap
        objectInfo - the object info handler to use
    • Method Detail

      • encryptTempFiles

        public boolean encryptTempFiles()
        Specified by:
        encryptTempFiles in interface org.apache.chemistry.opencmis.commons.server.CallContext
      • get

        public java.lang.Object get​(java.lang.String attr)
        Specified by:
        get in interface org.apache.chemistry.opencmis.commons.server.CallContext
        See Also:
        CallContext.get(java.lang.String)
      • getBinding

        public java.lang.String getBinding()
        Specified by:
        getBinding in interface org.apache.chemistry.opencmis.commons.server.CallContext
        See Also:
        CallContext.getBinding()
      • getCmisVersion

        public org.apache.chemistry.opencmis.commons.enums.CmisVersion getCmisVersion()
        Specified by:
        getCmisVersion in interface org.apache.chemistry.opencmis.commons.server.CallContext
      • getLength

        public java.math.BigInteger getLength()
        Specified by:
        getLength in interface org.apache.chemistry.opencmis.commons.server.CallContext
        See Also:
        CallContext.getLength()
      • getLocale

        public java.lang.String getLocale()
        Specified by:
        getLocale in interface org.apache.chemistry.opencmis.commons.server.CallContext
        See Also:
        CallContext.getLocale()
      • getMaxContentSize

        public long getMaxContentSize()
        Specified by:
        getMaxContentSize in interface org.apache.chemistry.opencmis.commons.server.CallContext
      • getMemoryThreshold

        public int getMemoryThreshold()
        Specified by:
        getMemoryThreshold in interface org.apache.chemistry.opencmis.commons.server.CallContext
        See Also:
        CallContext.getMemoryThreshold()
      • getObjectInfoHandler

        public org.apache.chemistry.opencmis.commons.server.ObjectInfoHandler getObjectInfoHandler()
        The object info handler to use.

        Returns:
        the object info handler
      • getOffset

        public java.math.BigInteger getOffset()
        Specified by:
        getOffset in interface org.apache.chemistry.opencmis.commons.server.CallContext
        See Also:
        CallContext.getOffset()
      • getPassword

        public java.lang.String getPassword()
        Specified by:
        getPassword in interface org.apache.chemistry.opencmis.commons.server.CallContext
        See Also:
        CallContext.getPassword()
      • getRepositoryId

        public java.lang.String getRepositoryId()
        Specified by:
        getRepositoryId in interface org.apache.chemistry.opencmis.commons.server.CallContext
        See Also:
        CallContext.getRepositoryId()
      • getTempDirectory

        public java.io.File getTempDirectory()
        Specified by:
        getTempDirectory in interface org.apache.chemistry.opencmis.commons.server.CallContext
        See Also:
        CallContext.getTempDirectory()
      • getUsername

        public java.lang.String getUsername()
        Specified by:
        getUsername in interface org.apache.chemistry.opencmis.commons.server.CallContext
        See Also:
        CallContext.getUsername()
      • isObjectInfoRequired

        public boolean isObjectInfoRequired()
        Specified by:
        isObjectInfoRequired in interface org.apache.chemistry.opencmis.commons.server.CallContext
        See Also:
        CallContext.isObjectInfoRequired()