eu.xenit.apix.workflow.search.WorkflowSearchQuery Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apix-interface Show documentation
Show all versions of apix-interface Show documentation
Xenit API-X Java interface
package eu.xenit.apix.workflow.search;
public class WorkflowSearchQuery extends SearchQuery {
public QueryScope scope;
public WorkflowSearchQuery() {
}
public WorkflowSearchQuery(WorkflowSearchQuery source) {
super(source);
this.scope = source.scope;
}
@Override
public void restrictResultsToUser(String currentUserName) {
switch (scope) {
case WorkflowsIveStarted:
this.filters.add(new PropertyFilter(currentUserName, "{http://www.alfresco.org/model/bpm/1.0}initiator",
PropertyFilter.TYPE));
return;
case AllWorkflows:
default:
this.filters.add(new PropertyFilter(currentUserName, "{http://www.alfresco.org/model/bpm/1.0}involved",
PropertyFilter.TYPE));
return;
}
}
public enum QueryScope {
WorkflowsIveStarted,
AllWorkflows,
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy