|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
@TransientState public interface QueryService
to set SessionProperties.DS_NAME_READ_ONLY
used in DataValueBean
| Method Summary | |
|---|---|
java.util.List<Department> |
findAllDepartments(DepartmentInfo parent,
OrganizationInfo organization)
Retrieves all the departments satisfying the search criteria. |
Department |
findDepartment(DepartmentInfo parent,
java.lang.String id,
OrganizationInfo info)
Searches for a department having the specified id in the scope defined by the parent department. |
ActivityInstance |
findFirstActivityInstance(ActivityInstanceQuery query)
Retrieves the first ActivityInstance satisfying the criteria specified in the provided query. |
Document |
findFirstDocument(DocumentQuery query)
Retrieves the first document satisfying the criteria specified in the provided query. |
LogEntry |
findFirstLogEntry(LogEntryQuery query)
Retrieves the first LogEntry satisfying the criteria specified in the provided query. |
ProcessInstance |
findFirstProcessInstance(ProcessInstanceQuery query)
Retrieves the first ProcessInstance satisfying the criteria specified in the provided query. |
User |
findFirstUser(UserQuery query)
Retrieves the first User satisfying the criteria specified in the provided query. |
UserGroup |
findFirstUserGroup(UserGroupQuery query)
Retrieves the first UserGroup satisfying the criteria specified in the provided query. |
DeployedModel |
getActiveModel()
Deprecated. This method returns the active model with the highest priority. Use getModels(DeployedModelQuery.findActive()) to retrieve all active models. |
DeployedModelDescription |
getActiveModelDescription()
Deprecated. This method returns the description of the active model with the highest priority. Use getModels(DeployedModelQuery.findActive()) to retrieve all active models. |
long |
getActivityInstancesCount(ActivityInstanceQuery query)
Counts the number of activity instances satisfying the criteria specified in the provided query. |
ActivityInstances |
getAllActivityInstances(ActivityInstanceQuery query)
Retrieves all activity instances satisfying the criteria specified in the provided query. |
java.util.List<DeployedModelDescription> |
getAllAliveModelDescriptions()
Deprecated. Use getModels(DeployedModelQuery.findInState(DeployedModelQuery.ALIVE)). |
org.eclipse.stardust.engine.api.runtime.DataQueryResult |
getAllData(DataQuery query)
Retrieves all data satisfying the criteria specified in the provided query. |
Documents |
getAllDocuments(DocumentQuery query)
Retrieves all documents satisfying the criteria specified in the provided query. |
LogEntries |
getAllLogEntries(LogEntryQuery query)
Retrieves all log entries satisfying the criteria specified in the provided query. |
java.util.List<DeployedModelDescription> |
getAllModelDescriptions()
Deprecated. Use getModels(DeployedModelQuery.findAll()). |
java.util.List<Participant> |
getAllParticipants()
Retrieves all the participants from the active model. |
java.util.List<Participant> |
getAllParticipants(long modelOID)
Retrieves all participants defined in the specified model. |
java.util.List<Preferences> |
getAllPreferences(PreferenceQuery preferenceQuery)
Retrieves preferences satisfying the criteria specified in the provided query. |
java.util.List<ProcessDefinition> |
getAllProcessDefinitions()
Retrieves all process definitions for the active model. |
java.util.List<ProcessDefinition> |
getAllProcessDefinitions(long modelOID)
Retrieves all the process definitions contained in the specified model. |
ProcessInstances |
getAllProcessInstances(ProcessInstanceQuery query)
Retrieves all process instances satisfying the criteria specified in the provided query. |
UserGroups |
getAllUserGroups(UserGroupQuery query)
Retrieves all user groups satisfying the criteria specified in the provided query. |
Users |
getAllUsers(UserQuery query)
Retrieves all users satisfying the criteria specified in the provided query. |
java.util.List<ActivityInstance> |
getAuditTrail(long processInstanceOID)
Returns all performed activity instances for the specified process instance. |
long |
getLogEntriesCount(LogEntryQuery query)
Counts the number of log entries satisfying the criteria specified in the provided query. |
DeployedModel |
getModel(long modelOID)
Retrieves the specified model. |
DeployedModel |
getModel(long modelOID,
boolean computeAliveness)
Retrieves the specified model. |
java.lang.String |
getModelAsXML(long modelOID)
Retrieves the XML representation of the specified model. |
DeployedModelDescription |
getModelDescription(long modelOID)
Retrieves the description of the specified model. |
Models |
getModels(DeployedModelQuery query)
Retrieves the model descriptions satisfying the criteria specified in the provided query. |
Participant |
getParticipant(long modelOID,
java.lang.String id)
Retrieves a participant from a specified model. |
Participant |
getParticipant(java.lang.String id)
Retrieves a specific participant from the active model. |
java.util.List<Permission> |
getPermissions()
Retrieves all permissions the current user has on this service. |
Preferences |
getPreferences(PreferenceScope scope,
java.lang.String moduleId,
java.lang.String preferencesId)
Retrieves preferences from the given scope. |
ProcessDefinition |
getProcessDefinition(long modelOID,
java.lang.String id)
Retrieves a process definition from the specified model. |
ProcessDefinition |
getProcessDefinition(java.lang.String id)
Retrieves the specified process definition from the active model. |
org.eclipse.stardust.engine.api.runtime.ProcessDefinitions |
getProcessDefinitions(ProcessDefinitionQuery query)
|
long |
getProcessInstancesCount(ProcessInstanceQuery query)
Counts the number of process instances satisfying the criteria specified in the provided query. |
RuntimeEnvironmentInfo |
getRuntimeEnvironmentInfo()
Retrieves the information about the deployed runtime environment (e.g. |
byte[] |
getSchemaDefinition(long modelOID,
java.lang.String typeDeclarationId)
Retrieves XSD schema of the specified type declaration serialized into a byte[]. |
long |
getUserGroupsCount(UserGroupQuery query)
Counts the number of user groups satisfying the criteria specified in the provided query. |
long |
getUsersCount(UserQuery query)
Counts the number of users satisfying the criteria specified in the provided query. |
boolean |
wasRedeployed(long modelOid,
int revision)
Determines if the model was redeployed, i.e. |
| Method Detail |
|---|
@ExecutionPermission(id=readUserData,
defaults=ALL)
long getUsersCount(UserQuery query)
query - the user query.
@ExecutionPermission(id=readUserData,
defaults=ALL)
long getUserGroupsCount(UserGroupQuery query)
query - the user group query.
@ExecutionPermission(id=readProcessInstanceData,
scope=processDefinition,
defer=true,
defaults=ALL)
long getProcessInstancesCount(ProcessInstanceQuery query)
throws IllegalOperationException
query - the process instance query.
IllegalOperationException - if no attributeName
(XPath) is specified in a DataFilter for queries on a structured data
IllegalOperationException - if attributeName
(XPath) is specified in a DataFilter for queries on a non-structured data
IllegalOperationException - if attributeName
(XPath) specified in a DataFilter contains an invalid XPath
IllegalOperationException - if PerformingOnBehalfOfFilter is used
but activity instance history is disabled.
@ExecutionPermission(id=readActivityInstanceData,
scope=activity,
defer=true,
defaults=ALL,
fixed=OWNER)
long getActivityInstancesCount(ActivityInstanceQuery query)
throws IllegalOperationException
query - the activity instance query.
IllegalOperationException - if no attributeName
(XPath) is specified in a DataFilter for queries on a structured data
IllegalOperationException - if attributeName
(XPath) is specified in a DataFilter for queries on a non-structured data
IllegalOperationException - if attributeName
(XPath) specified in a DataFilter contains an invalid XPath
IllegalOperationException - if PerformingOnBehalfOfFilter is used
but activity instance history is disabled.@ExecutionPermission(id=readAuditTrailStatistics) long getLogEntriesCount(LogEntryQuery query)
query - the log entry query.
@ExecutionPermission(id=readUserData,
defaults=ALL)
Users getAllUsers(UserQuery query)
query - the user query.
@ExecutionPermission(id=readUserData,
defaults=ALL)
UserGroups getAllUserGroups(UserGroupQuery query)
query - the user group query.
UserGroup objects.
@ExecutionPermission(id=readProcessInstanceData,
scope=processDefinition,
defer=true,
defaults=ALL)
ProcessInstances getAllProcessInstances(ProcessInstanceQuery query)
throws IllegalOperationException
query - the process instance query.
IllegalOperationException - if no attributeName
(XPath) is specified in a DataFilter for queries on a structured data
IllegalOperationException - if attributeName
(XPath) is specified in a DataFilter for queries on a non-structured data
IllegalOperationException - if attributeName
(XPath) specified in a DataFilter contains an invalid XPath
IllegalOperationException - if PerformingOnBehalfOfFilter is used
but activity instance history is disabled.
@ExecutionPermission(id=readActivityInstanceData,
scope=activity,
defer=true,
defaults=ALL,
fixed=OWNER)
ActivityInstances getAllActivityInstances(ActivityInstanceQuery query)
throws IllegalOperationException
query - the activity instance query.
IllegalOperationException - if no attributeName
(XPath) is specified in a DataFilter for queries on a structured data
IllegalOperationException - if attributeName
(XPath) is specified in a DataFilter for queries on a non-structured data
IllegalOperationException - if attributeName
(XPath) specified in a DataFilter contains an invalid XPath
IllegalOperationException - if PerformingOnBehalfOfFilter is used
but activity instance history is disabled.
@ExecutionPermission(id=readAuditTrailStatistics)
LogEntries getAllLogEntries(LogEntryQuery query)
throws org.eclipse.stardust.common.error.AccessForbiddenException
query - the log entry query.
org.eclipse.stardust.common.error.AccessForbiddenException
@ExecutionPermission(id=readUserData,
defaults=ALL)
User findFirstUser(UserQuery query)
throws org.eclipse.stardust.common.error.ObjectNotFoundException
query - the user query.
org.eclipse.stardust.common.error.ObjectNotFoundException - if no matching user is found.
@ExecutionPermission(id=readUserData,
defaults=ALL)
UserGroup findFirstUserGroup(UserGroupQuery query)
throws org.eclipse.stardust.common.error.ObjectNotFoundException
query - the user group query.
org.eclipse.stardust.common.error.ObjectNotFoundException - if no matching user group is found.
@ExecutionPermission(id=readProcessInstanceData,
scope=processDefinition,
defer=true,
defaults=ALL)
ProcessInstance findFirstProcessInstance(ProcessInstanceQuery query)
throws org.eclipse.stardust.common.error.ObjectNotFoundException,
IllegalOperationException
query - the process instance query.
org.eclipse.stardust.common.error.ObjectNotFoundException - if no matching process instance is found.
IllegalOperationException - if no attributeName
(XPath) is specified in a DataFilter for queries on a structured data
IllegalOperationException - if attributeName
(XPath) is specified in a DataFilter for queries on a non-structured data
IllegalOperationException - if attributeName
(XPath) specified in a DataFilter contains an invalid XPath
IllegalOperationException - if PerformingOnBehalfOfFilter is used
but activity instance history is disabled.
@ExecutionPermission(id=readActivityInstanceData,
scope=activity,
defer=true,
defaults=ALL,
fixed=OWNER)
ActivityInstance findFirstActivityInstance(ActivityInstanceQuery query)
throws org.eclipse.stardust.common.error.ObjectNotFoundException,
IllegalOperationException
query - the activity instance query.
org.eclipse.stardust.common.error.ObjectNotFoundException - if no matching activity instance is found.
IllegalOperationException - if no attributeName
(XPath) is specified in a DataFilter for queries on a structured data
IllegalOperationException - if attributeName
(XPath) is specified in a DataFilter for queries on a non-structured data
IllegalOperationException - if attributeName
(XPath) specified in a DataFilter contains an invalid XPath
IllegalOperationException - if PerformingOnBehalfOfFilter is used
but activity instance history is disabled.
@ExecutionPermission(id=readAuditTrailStatistics)
LogEntry findFirstLogEntry(LogEntryQuery query)
throws org.eclipse.stardust.common.error.ObjectNotFoundException
query - the log entry query.
org.eclipse.stardust.common.error.ObjectNotFoundException - if no matching log entry is found.
@ExecutionPermission(id=readActivityInstanceData,
scope=activity,
defer=true,
defaults=ALL,
fixed=OWNER)
java.util.List<ActivityInstance> getAuditTrail(long processInstanceOID)
throws org.eclipse.stardust.common.error.ObjectNotFoundException
processInstanceOID - the OID of the process instance from where we retrieve the audit trail.
ActivityInstance objects.
org.eclipse.stardust.common.error.ObjectNotFoundException - if there is no process instance with the specified OID.
@ExecutionPermission(id=readModelData,
defaults=ALL)
java.util.List<DeployedModelDescription> getAllModelDescriptions()
getModels(DeployedModelQuery.findAll()).
DeployedModelDescription objects.
@ExecutionPermission(id=readModelData,
defaults=ALL)
java.util.List<DeployedModelDescription> getAllAliveModelDescriptions()
getModels(DeployedModelQuery.findInState(DeployedModelQuery.ALIVE)).
DeployedModelDescription objects.
@ExecutionPermission(id=readModelData,
defaults=ALL)
DeployedModelDescription getActiveModelDescription()
throws org.eclipse.stardust.common.error.ObjectNotFoundException
getModels(DeployedModelQuery.findActive()) to retrieve all active models.
org.eclipse.stardust.common.error.ObjectNotFoundException - if there is no active model.
@ExecutionPermission(id=readModelData,
defaults=ALL)
Models getModels(DeployedModelQuery query)
query - the deployed model query.
@ExecutionPermission(id=readModelData,
defaults=ALL)
DeployedModelDescription getModelDescription(long modelOID)
throws org.eclipse.stardust.common.error.ObjectNotFoundException
modelOID - the oid of the model to retrieve.
org.eclipse.stardust.common.error.ObjectNotFoundException - if there is no model with the specified OID.
@ExecutionPermission(id=readModelData,
defaults=ALL)
boolean wasRedeployed(long modelOid,
int revision)
modelOid - The OID of the model to be checked..revision - The currently retrieved revision of the model.
true if a more recent revision of the model is available,
false if not.
@ExecutionPermission(id=readModelData,
defaults=ALL)
DeployedModel getModel(long modelOID)
throws org.eclipse.stardust.common.error.ObjectNotFoundException
modelOID - the oid of the model to retrieve.
org.eclipse.stardust.common.error.ObjectNotFoundException - if there is no model with the specified OID.
@ExecutionPermission(id=readModelData,
defaults=ALL)
DeployedModel getModel(long modelOID,
boolean computeAliveness)
throws org.eclipse.stardust.common.error.ObjectNotFoundException
modelOID - the oid of the model to retrieve.computeAliveness - whether the aliveness of the model should be computed or not
org.eclipse.stardust.common.error.ObjectNotFoundException - if there is no model with the specified OID.
@ExecutionPermission(id=readModelData,
defaults=ALL)
DeployedModel getActiveModel()
throws org.eclipse.stardust.common.error.ObjectNotFoundException
getModels(DeployedModelQuery.findActive()) to retrieve all active models.
org.eclipse.stardust.common.error.ObjectNotFoundException - if there is no active model.
@ExecutionPermission(id=readModelData,
defaults=ALL)
java.lang.String getModelAsXML(long modelOID)
throws org.eclipse.stardust.common.error.ObjectNotFoundException
modelOID - the oid of the model to retrieve.
org.eclipse.stardust.common.error.ObjectNotFoundException - if there is no model with the specified OID.
@ExecutionPermission(id=readModelData,
defaults=ALL)
java.util.List<ProcessDefinition> getAllProcessDefinitions(long modelOID)
throws org.eclipse.stardust.common.error.ObjectNotFoundException
modelOID - the oid of the model.
ProcessDefinition objects.
org.eclipse.stardust.common.error.ObjectNotFoundException - if there is no model with the specified OID.
@ExecutionPermission(id=readModelData,
defaults=ALL)
ProcessDefinition getProcessDefinition(long modelOID,
java.lang.String id)
throws org.eclipse.stardust.common.error.ObjectNotFoundException
modelOID - the oid of the model.id - the id of the process definition.
org.eclipse.stardust.common.error.ObjectNotFoundException - if there is no model with the specified OID or there is no process
definition with the specified id in the model.
@ExecutionPermission(id=readModelData,
defaults=ALL)
java.util.List<ProcessDefinition> getAllProcessDefinitions()
throws org.eclipse.stardust.common.error.ObjectNotFoundException
ProcessDefinition objects.
org.eclipse.stardust.common.error.ObjectNotFoundException - if there is no active model.
@ExecutionPermission(id=readModelData,
defaults=ALL)
ProcessDefinition getProcessDefinition(java.lang.String id)
throws org.eclipse.stardust.common.error.ObjectNotFoundException
id - the id of the process definition.
org.eclipse.stardust.common.error.ObjectNotFoundException - if there is no active model or if the active model
does not contain the requested process definition.
@ExecutionPermission(id=readModelData,
defaults=ALL)
org.eclipse.stardust.engine.api.runtime.ProcessDefinitions getProcessDefinitions(ProcessDefinitionQuery query)
@ExecutionPermission(id=readModelData,
defaults=ALL)
org.eclipse.stardust.engine.api.runtime.DataQueryResult getAllData(DataQuery query)
query - The DataQuery.
@ExecutionPermission(id=readModelData,
defaults=ALL)
java.util.List<Participant> getAllParticipants(long modelOID)
throws org.eclipse.stardust.common.error.ObjectNotFoundException
modelOID - the oid of the model.
Participant objects.
org.eclipse.stardust.common.error.ObjectNotFoundException - if there is no model with the specified oid.
@ExecutionPermission(id=readModelData,
defaults=ALL)
Participant getParticipant(long modelOID,
java.lang.String id)
throws org.eclipse.stardust.common.error.ObjectNotFoundException
modelOID - the oid of the model.id - the id of the participant.
org.eclipse.stardust.common.error.ObjectNotFoundException - if there is no model with the specified oid, or the model does not
contains the requested participant.
@ExecutionPermission(id=readModelData,
defaults=ALL)
java.util.List<Participant> getAllParticipants()
throws org.eclipse.stardust.common.error.ObjectNotFoundException
Participant objects.
org.eclipse.stardust.common.error.ObjectNotFoundException - if there is no active model.
@ExecutionPermission(id=readModelData,
defaults=ALL)
Participant getParticipant(java.lang.String id)
throws org.eclipse.stardust.common.error.ObjectNotFoundException
id - the id of the participant.
org.eclipse.stardust.common.error.ObjectNotFoundException - if there is no active model, or if the active model does not contain
the requested participant.java.util.List<Permission> getPermissions()
@ExecutionPermission(id=readModelData,
defaults=ALL)
byte[] getSchemaDefinition(long modelOID,
java.lang.String typeDeclarationId)
throws org.eclipse.stardust.common.error.ObjectNotFoundException
modelOID - the oid of the model.typeDeclarationId - the id of the type declaration.
org.eclipse.stardust.common.error.ObjectNotFoundException - if there is no active model, or if the active model does not contain the
requested type declaration.
@ExecutionPermission(id=readDepartments,
defaults=ALL)
java.util.List<Department> findAllDepartments(DepartmentInfo parent,
OrganizationInfo organization)
throws org.eclipse.stardust.common.error.ObjectNotFoundException
parent - the parent department.organization - the organization to which the retrieved departments are assigned.
org.eclipse.stardust.common.error.ObjectNotFoundException - if either the parent or the organization could not be resolved.
@ExecutionPermission(id=readDepartments,
defaults=ALL)
Department findDepartment(DepartmentInfo parent,
java.lang.String id,
OrganizationInfo info)
throws org.eclipse.stardust.common.error.ObjectNotFoundException
parent - the search scope. It can be null, in which case the search scope is the
top level.id - the id of the department. Must not be null or empty.organization - the organization to which the retrieved departments are assigned.
org.eclipse.stardust.common.error.ObjectNotFoundException - if the parent could not be resolved or if the specified id is null or
empty or if there is no department with the specified id in the parent
scope.
Document findFirstDocument(DocumentQuery query)
throws org.eclipse.stardust.common.error.ObjectNotFoundException
query - the document query.
org.eclipse.stardust.common.error.ObjectNotFoundException - if no matching document is found.Documents getAllDocuments(DocumentQuery query)
query - the document query.
Preferences getPreferences(PreferenceScope scope,
java.lang.String moduleId,
java.lang.String preferencesId)
scope - the scope from which the preferences are to be retrieved from.moduleId - the moduleId of the preferences.preferencesId - the id of the preferences.
PublicException - if scope is null.java.util.List<Preferences> getAllPreferences(PreferenceQuery preferenceQuery)
preferenceQuery - the preference query.
PublicException - if querying is not supported for the specified PreferenceScope.
java.lang.UnsupportedOperationException - if the PreferenceQuery contains unsupported terms or operations.
org.eclipse.stardust.common.error.InvalidArgumentException - if preferencesQuery is null.RuntimeEnvironmentInfo getRuntimeEnvironmentInfo()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||