Package com.axemble.vdoc.sdk.impl
Class ProcessViewController
java.lang.Object
com.axemble.vdoc.sdk.impl.AbstractElement
com.axemble.vdoc.sdk.impl.ProcessViewController
- All Implemented Interfaces:
IController
,IViewController
,Serializable
Process View Controller
- Author:
- vlygeros
- See Also:
-
Field Summary
Fields inherited from class com.axemble.vdoc.sdk.impl.AbstractElement
module
-
Constructor Summary
ConstructorDescriptionProcessViewController
(IModule module) ConstructorProcessViewController
(IModule module, IContext context, IProject project, com.axemble.vdp.views.query.Definition definition) Uses a view definition to builds the constraints.ProcessViewController
(IModule module, IContext context, IProject project, InputStream inputStream) Uses an java.io.InputStream to build the constraints.ProcessViewController
(IModule module, IContext context, Class natureClass) ConstructorProcessViewController
(IModule module, IProject project, com.axemble.vdp.views.query.Definition definition) Deprecated.use ProcessViewController( IModule module, IContext context, IProject project, Definition definition ) instead.ProcessViewController
(IModule module, IProject project, InputStream inputStream) Deprecated.use ProcessViewController( IModule module, IProject project, InputStream inputStream ) instead.ProcessViewController
(IModule module, Class natureClass) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addEqualsConstraint
(String name, Object value) Add equal constraintvoid
addGreaterConstraint
(String name, Object value) Add greater than constraintvoid
addGreaterOrEqualConstraint
(String name, Object value) Add greater than or equal constraintvoid
addInConstraint
(String name, Object value) Add in constraintvoid
addIsEmptyConstraint
(String name, Object value) Add is empty constraintvoid
addIsNotEmptyConstraint
(String name, Object value) Add is not emptyvoid
addLessConstraint
(String name, Object value) Add less than constraintvoid
addLessOrEqualsConstraint
(String name, Object value) Add less than or equal constraintvoid
addLikeConstraint
(String name, Object value) Add like constraintvoid
addNotEqualsConstraint
(String name, Object value) Add not equal constraintvoid
addNotInConstraint
(String name, Object value) Add not in constraintvoid
addNotLikeConstraint
(String name, Object value) Add not like constraintprotected Object
convertParameter
(Object parameter) evaluate()
Evaluate the request on the server scopeEvaluate the request on the catalog scopeEvaluate the request on the library scopeevaluate
(IResourceDefinition resourceDefinition) Evaluate the request on the resource definition scopeEvaluate the request on the task scopeEvaluate the request on the workflow scopeevaluate
(IWorkflowContainer workflowContainer) Evaluate the request on the workflow container scopeint
Evaluate the request on the server scopeint
evaluateSize
(ICatalog catalog) Evaluate the request on the catalog scopeint
evaluateSize
(ILibrary library) Evaluate the request on the library scopeint
evaluateSize
(IResourceDefinition resourceDefinition) Evaluate the request on the resource definition scopeint
evaluateSize
(ITask task) Evaluate the request on the task scopeint
evaluateSize
(IWorkflow workflow) Evaluate the request on the workflow scopeint
evaluateSize
(IWorkflowContainer workflowContainer) Evaluate the request on the workflow container scopeprotected Collection
<?> initializeExtensionClasses
(String extensionClassNames) void
setAllowSystemCatalogs
(boolean allowSystemCatalogs) Specifies if the system catalogs should be part of the result.void
setCount
(int count) Sets the number of elements per pagevoid
setOrberBy
(String orberBy, Class orderByType, boolean ascendant) void
setOrderBy
(String orderBy, Class orderByType, boolean ascendant) Sets order by and sort type propertiesvoid
setSecurityApplied
(boolean securityApplied) Specifies if the security should be applied.void
setSpecialConstraint
(String type) AddSpecialConstraint
to request generator.void
setStart
(int start) Sets the start pagevoid
setStatus
(int status) Sets the required statusMethods inherited from class com.axemble.vdoc.sdk.impl.AbstractElement
getModule
-
Constructor Details
-
ProcessViewController
Constructor- Parameters:
module
- the module
-
ProcessViewController
Deprecated. -
ProcessViewController
Constructor- Parameters:
module
- the modulecontext
- the current context (default is sysadmin)natureClass
- the nature class (default is IWorkflowInstance)
-
ProcessViewController
Deprecated.use ProcessViewController( IModule module, IProject project, InputStream inputStream ) instead.Uses an java.io.InputStream to build the constraints.- Parameters:
module
- The current module.project
- The current projectinputStream
- The java.io.InputStream XML entry.
-
ProcessViewController
@Deprecated public ProcessViewController(IModule module, IProject project, com.axemble.vdp.views.query.Definition definition) Deprecated.use ProcessViewController( IModule module, IContext context, IProject project, Definition definition ) instead.Uses a internal definition to build the contraints.- Parameters:
module
- The current module.project
- The current projectdefinition
- The internal view definition.
-
ProcessViewController
public ProcessViewController(IModule module, IContext context, IProject project, com.axemble.vdp.views.query.Definition definition) Uses a view definition to builds the constraints.- Parameters:
module
- The current module.context
- The current context.project
- The current projectdefinition
- The native definition.
-
ProcessViewController
public ProcessViewController(IModule module, IContext context, IProject project, InputStream inputStream) Uses an java.io.InputStream to build the constraints.- Parameters:
module
- The current module.context
- The current context.project
- The current projectinputStream
- The java.io.InputStream XML entry.
-
-
Method Details
-
initializeExtensionClasses
-
setAllowSystemCatalogs
public void setAllowSystemCatalogs(boolean allowSystemCatalogs) Description copied from interface:IViewController
Specifies if the system catalogs should be part of the result.- Specified by:
setAllowSystemCatalogs
in interfaceIViewController
- Parameters:
allowSystemCatalogs
- the allowSystemCatalogs to set
-
setSecurityApplied
public void setSecurityApplied(boolean securityApplied) Description copied from interface:IViewController
Specifies if the security should be applied.- Specified by:
setSecurityApplied
in interfaceIViewController
- Parameters:
securityApplied
- the securityApplied to set
-
addEqualsConstraint
Description copied from interface:IViewController
Add equal constraint- Specified by:
addEqualsConstraint
in interfaceIViewController
- Parameters:
name
- the namevalue
- the value
-
addNotEqualsConstraint
Description copied from interface:IViewController
Add not equal constraint- Specified by:
addNotEqualsConstraint
in interfaceIViewController
- Parameters:
name
- the namevalue
- the value
-
addGreaterConstraint
Description copied from interface:IViewController
Add greater than constraint- Specified by:
addGreaterConstraint
in interfaceIViewController
- Parameters:
name
- the namevalue
- the value
-
addGreaterOrEqualConstraint
Description copied from interface:IViewController
Add greater than or equal constraint- Specified by:
addGreaterOrEqualConstraint
in interfaceIViewController
- Parameters:
name
- the namevalue
- the value
-
addLessConstraint
Description copied from interface:IViewController
Add less than constraint- Specified by:
addLessConstraint
in interfaceIViewController
- Parameters:
name
- the namevalue
- the value
-
addLessOrEqualsConstraint
Description copied from interface:IViewController
Add less than or equal constraint- Specified by:
addLessOrEqualsConstraint
in interfaceIViewController
- Parameters:
name
- the namevalue
- the value
-
addLikeConstraint
Description copied from interface:IViewController
Add like constraint- Specified by:
addLikeConstraint
in interfaceIViewController
- Parameters:
name
- the namevalue
- the value
-
addNotLikeConstraint
Description copied from interface:IViewController
Add not like constraint- Specified by:
addNotLikeConstraint
in interfaceIViewController
- Parameters:
name
- the namevalue
- the value
-
addInConstraint
Description copied from interface:IViewController
Add in constraint- Specified by:
addInConstraint
in interfaceIViewController
- Parameters:
name
- the namevalue
- the value
-
addNotInConstraint
Description copied from interface:IViewController
Add not in constraint- Specified by:
addNotInConstraint
in interfaceIViewController
- Parameters:
name
- the namevalue
- the value
-
addIsEmptyConstraint
Description copied from interface:IViewController
Add is empty constraint- Specified by:
addIsEmptyConstraint
in interfaceIViewController
- Parameters:
name
- the namevalue
- the value
-
addIsNotEmptyConstraint
Description copied from interface:IViewController
Add is not empty- Specified by:
addIsNotEmptyConstraint
in interfaceIViewController
- Parameters:
name
- the namevalue
- the value
-
convertParameter
-
evaluate
Description copied from interface:IViewController
Evaluate the request on the server scope- Specified by:
evaluate
in interfaceIViewController
- Returns:
- The returned value is a collection of IWorkflowInstance, ITaskInstance or IResource instances
-
evaluate
Description copied from interface:IViewController
Evaluate the request on the catalog scope- Specified by:
evaluate
in interfaceIViewController
- Parameters:
catalog
- TheICatalog
object.- Returns:
- The returned value is a collection of IWorkflowInstance, ITaskInstance or IResource instances
-
evaluate
Description copied from interface:IViewController
Evaluate the request on the workflow container scope- Specified by:
evaluate
in interfaceIViewController
- Parameters:
workflowContainer
- TheIWorkflowContainer
object.- Returns:
- The returned value is a collection of IWorkflowInstance, ITaskInstance or IResource instances
-
evaluate
Description copied from interface:IViewController
Evaluate the request on the workflow scope- Specified by:
evaluate
in interfaceIViewController
- Parameters:
workflow
- TheIWorkflow
object.- Returns:
- The returned value is a collection of IWorkflowInstance, ITaskInstance or IResource instances
-
evaluate
Description copied from interface:IViewController
Evaluate the request on the task scope- Specified by:
evaluate
in interfaceIViewController
- Parameters:
task
- TheITask
object.- Returns:
- The returned value is a collection of IWorkflowInstance, ITaskInstance or IResource instances
-
evaluate
Description copied from interface:IViewController
Evaluate the request on the resource definition scope- Specified by:
evaluate
in interfaceIViewController
- Parameters:
resourceDefinition
- TheIResourceDefinition
object.- Returns:
- The returned value is a collection of IWorkflowInstance, ITaskInstance or IResource instances
-
evaluate
Description copied from interface:IViewController
Evaluate the request on the library scope- Specified by:
evaluate
in interfaceIViewController
- Parameters:
library
- TheILibrary
object.- Returns:
- The returned value is a collection of IFile instances
- See Also:
-
evaluateSize
public int evaluateSize()Description copied from interface:IViewController
Evaluate the request on the server scope- Specified by:
evaluateSize
in interfaceIViewController
- Returns:
- The number of elements
-
evaluateSize
Description copied from interface:IViewController
Evaluate the request on the catalog scope- Specified by:
evaluateSize
in interfaceIViewController
- Parameters:
catalog
- TheICatalog
object.- Returns:
- The number of elements
-
evaluateSize
Description copied from interface:IViewController
Evaluate the request on the workflow container scope- Specified by:
evaluateSize
in interfaceIViewController
- Parameters:
workflowContainer
- TheIWorkflowContainer
object.- Returns:
- The number of elements
-
evaluateSize
Description copied from interface:IViewController
Evaluate the request on the workflow scope- Specified by:
evaluateSize
in interfaceIViewController
- Parameters:
workflow
- TheIWorkflow
object.- Returns:
- The number of elements
-
evaluateSize
Description copied from interface:IViewController
Evaluate the request on the task scope- Specified by:
evaluateSize
in interfaceIViewController
- Parameters:
task
- TheITask
object.- Returns:
- The number of elements
-
evaluateSize
Description copied from interface:IViewController
Evaluate the request on the resource definition scope- Specified by:
evaluateSize
in interfaceIViewController
- Parameters:
resourceDefinition
- TheIResourceDefinition
object.- Returns:
- The number of elements
-
evaluateSize
Description copied from interface:IViewController
Evaluate the request on the library scope- Specified by:
evaluateSize
in interfaceIViewController
- Parameters:
library
- TheILibrary
object.- Returns:
- The returned value is a collection of IFile instances
- See Also:
-
setCount
public void setCount(int count) Description copied from interface:IViewController
Sets the number of elements per page- Specified by:
setCount
in interfaceIViewController
- Parameters:
count
- the number of elements
-
setOrderBy
Description copied from interface:IViewController
Sets order by and sort type properties- Specified by:
setOrderBy
in interfaceIViewController
- Parameters:
orderBy
- the order nameorderByType
- the order typeascendant
- the order direction (true for ascendant, false for descendant)
-
setOrberBy
- Specified by:
setOrberBy
in interfaceIViewController
-
setStart
public void setStart(int start) Description copied from interface:IViewController
Sets the start page- Specified by:
setStart
in interfaceIViewController
- Parameters:
start
- the start index
-
setStatus
public void setStatus(int status) Description copied from interface:IViewController
Sets the required status- Specified by:
setStatus
in interfaceIViewController
- Parameters:
status
- The status could be one of the following values:IWorkflowInstance.IStatus
.STARTEDIWorkflowInstance.IStatus
.ABORTEDIWorkflowInstance.IStatus
.TERMINATEDIWorkflowInstance.IStatus
.PAUSED
-
setSpecialConstraint
AddSpecialConstraint
to request generator.- Parameters:
type
- can beSpecialConstraint.TYPE_DRAFT
orSpecialConstraint.TYPE_IINTERVENED
-