Package com.saperion.operations.document
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>,java.io.Serializable
public class GetDocumentInfo extends LegacyOperation<SaDocInfo>
Gets information about the document. SeeSaDocInfofor details.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GetDocumentInfo(java.lang.String hDoc, boolean currentRevision, boolean resolveLinks, boolean forceSize)Creates a new GetDocumentInfo operation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetHDoc()inthashCode()SaDocInfoinvoke()booleanisCurrentRevision()booleanisForceSize()booleanisResolveLinks()java.lang.StringtoString()-
Methods inherited from class com.saperion.operations.LegacyOperation
beforeInvoke, beforeInvoke, getClientToken, mapEcmException, mapException
-
Methods inherited from class com.lexmark.saperion.remote.common.operations.AbstractOperation
afterInvoke, getResult, toArrayList, toCaseInsensitiveMap, toHashMap
-
-
-
-
Constructor Detail
-
GetDocumentInfo
public GetDocumentInfo(java.lang.String hDoc, boolean currentRevision, boolean resolveLinks, boolean forceSize)Creates a new GetDocumentInfo operation.- Parameters:
hDoc- hDoc of document to get information forcurrentRevision- whether to resolve the current revision or notresolveLinks- whether to resolve links or notforceSize- if true, the sizes of all elements will be determined. This is not a fast operation.
-
-
Method Detail
-
invoke
public SaDocInfo invoke() throws SaBasicException
- Throws:
SaBasicException
-
getHDoc
public java.lang.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(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classcom.lexmark.saperion.remote.common.operations.AbstractOperation<SaDocInfo,SaBasicException,LegacyConnection>
-
-