Package com.axemble.vdoc.sdk.impl
Class ProcessGenericViewTransformer
java.lang.Object
com.axemble.vdoc.sdk.impl.AbstractElement
com.axemble.vdoc.sdk.impl.base.BaseViewTransformer
com.axemble.vdoc.sdk.impl.base.BaseResourceViewTransformer
com.axemble.vdoc.sdk.impl.ProcessGenericViewTransformer
- All Implemented Interfaces:
IGenericViewTransformer,Serializable
public class ProcessGenericViewTransformer
extends com.axemble.vdoc.sdk.impl.base.BaseResourceViewTransformer
implements IGenericViewTransformer
- Author:
- vlygeros
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.axemble.vdoc.sdk.impl.base.BaseViewTransformer
com.axemble.vdoc.sdk.impl.base.BaseViewTransformer.ViewDesc -
Field Summary
Fields inherited from class com.axemble.vdoc.sdk.impl.base.BaseResourceViewTransformer
includeLabelsFields inherited from class com.axemble.vdoc.sdk.impl.base.BaseViewTransformer
columns, context, count, prefix, start, viewIdFields inherited from class com.axemble.vdoc.sdk.impl.AbstractElement
module -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.axemble.vdoc.sdk.impl.base.BaseViewTransformer.ViewDescprotected voidbuildXMLBody(Element parent) voidsetIncludeLabels(boolean includeLabels) Allows to include or not the labels.voidsetOffset(int offset) Sets the first element to return.voidsetSecurityApplied(boolean securityApplied) Specifies if the security should be applied.voidsetStart(int start) Sets the start page position.voidviewToXML(IContext context, Element viewDefinition, OutputStream outputStream) Allows to evaluate a view and transforms the result to an XML stream.Methods inherited from class com.axemble.vdoc.sdk.impl.base.BaseResourceViewTransformer
buildDocuments, buildResourceXMLBody, buildResourceXMLHeader, buildTasks, searchDocumentsMethods inherited from class com.axemble.vdoc.sdk.impl.base.BaseViewTransformer
buildXMLHeader, notNull, setCountMethods inherited from class com.axemble.vdoc.sdk.impl.AbstractElement
getModuleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.axemble.vdoc.sdk.interfaces.IGenericViewTransformer
setCount
-
Constructor Details
-
ProcessGenericViewTransformer
- Parameters:
module-
-
-
Method Details
-
setSecurityApplied
public void setSecurityApplied(boolean securityApplied) Description copied from interface:IGenericViewTransformerSpecifies if the security should be applied.- Specified by:
setSecurityAppliedin interfaceIGenericViewTransformer- Parameters:
securityApplied- true if the security should be applied, false otherwise.
-
viewToXML
public void viewToXML(IContext context, Element viewDefinition, OutputStream outputStream) throws IOException Description copied from interface:IGenericViewTransformerAllows to evaluate a view and transforms the result to an XML stream.- Specified by:
viewToXMLin interfaceIGenericViewTransformer- Parameters:
context- The execution context.viewDefinition- The view definition.outputStream- TheOutputStreamobject.- Throws:
IOException- Thedefault exception.invalid reference
java.io.Exception
-
buildViewName
protected com.axemble.vdoc.sdk.impl.base.BaseViewTransformer.ViewDesc buildViewName()- Specified by:
buildViewNamein classcom.axemble.vdoc.sdk.impl.base.BaseViewTransformer
-
buildXMLBody
- Specified by:
buildXMLBodyin classcom.axemble.vdoc.sdk.impl.base.BaseViewTransformer
-
setIncludeLabels
public void setIncludeLabels(boolean includeLabels) Description copied from interface:IGenericViewTransformerAllows to include or not the labels. By default, the value is set to true.- Specified by:
setIncludeLabelsin interfaceIGenericViewTransformer- Parameters:
includeLabels- Set to false to avoid labels inclusion.
-
setOffset
public void setOffset(int offset) Description copied from interface:IGenericViewTransformerSets the first element to return.- Specified by:
setOffsetin interfaceIGenericViewTransformer- Parameters:
offset- The first element to set (0 is the first element).
-
setStart
public void setStart(int start) Description copied from interface:IGenericViewTransformerSets the start page position.- Specified by:
setStartin interfaceIGenericViewTransformer- Overrides:
setStartin classcom.axemble.vdoc.sdk.impl.base.BaseViewTransformer- Parameters:
start- The start page to set (1 is the first page).
-