Class GetDocumentInfo

java.lang.Object
com.lexmark.saperion.remote.common.operations.AbstractOperation<T,SaBasicException,LegacyConnection>
com.saperion.operations.LegacyOperation<SaDocInfo>
com.saperion.operations.document.GetDocumentInfo
All Implemented Interfaces:
com.lexmark.saperion.remote.common.operations.Operation<SaDocInfo,SaBasicException,LegacyConnection>, Serializable

public class GetDocumentInfo extends LegacyOperation<SaDocInfo>
Gets information about the document. See SaDocInfo for details.
See Also:
  • Constructor Details

    • GetDocumentInfo

      public GetDocumentInfo(String hDoc, boolean currentRevision, boolean resolveLinks, boolean forceSize)
      Creates a new GetDocumentInfo operation.
      Parameters:
      hDoc - hDoc of document to get information for
      currentRevision - whether to resolve the current revision or not
      resolveLinks - whether to resolve links or not
      forceSize - if true, the sizes of all elements will be determined. This is not a fast operation.
  • Method Details

    • invoke

      public SaDocInfo invoke() throws SaBasicException
      Throws:
      SaBasicException
    • getHDoc

      public String getHDoc()
      Returns:
      hDoc of document to get information for
    • isCurrentRevision

      public boolean isCurrentRevision()
      Returns:
      whether to resolve current revision or not
    • isResolveLinks

      public boolean isResolveLinks()
      Returns:
      whether to resolve links or not
    • isForceSize

      public boolean isForceSize()
      Returns:
      whether size determination is forced or not
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class com.lexmark.saperion.remote.common.operations.AbstractOperation<SaDocInfo,SaBasicException,LegacyConnection>