|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openrdf.query.TupleQueryResultHandlerBase
org.eaglei.repository.FakeFlow
public class FakeFlow
Object Model for "fake workflow", RDF annotations on a resource instance that takes the place of a full workflow implementation for "cycle 1". A FakeFlow instance is associated with a resource instance. All of the statements implementing workflow are in the Metadata graph.
| Method Summary | |
|---|---|
void |
claim(javax.servlet.http.HttpServletRequest request,
org.openrdf.model.URI newOwner)
Lets user assert a claim on this workflow state. |
void |
clear(javax.servlet.http.HttpServletRequest request)
Remove this workflow state from its resource instance. |
static FakeFlow |
create(javax.servlet.http.HttpServletRequest request,
org.openrdf.model.URI resource)
Create fake workflow state for given resource. |
static FakeFlow |
find(javax.servlet.http.HttpServletRequest request,
org.openrdf.model.URI resource)
Get current workflow on a resource if any, or null if not found. |
org.openrdf.model.URI |
getOwner()
Getter for the field owner. |
java.lang.String |
getOwnerLabel()
Getter for the field ownerLabel. |
org.openrdf.model.URI |
getResource()
Getter for the field resource. |
org.openrdf.model.URI |
getState()
Getter for the field state. |
java.lang.String |
getStateLabel()
Getter for the field stateLabel. |
void |
handleSolution(org.openrdf.query.BindingSet bs)
Query handler to pick up what SHOULD be the single result.. |
static boolean |
isWorkflowPredicate(org.openrdf.model.URI uri)
Predicate that is true if this is a predicate managed by fake workflow |
static boolean |
isWorkflowState(javax.servlet.http.HttpServletRequest request,
org.openrdf.model.URI uri)
Predicate that is true if uri is one of the workflow states. |
static boolean |
isWorkflowState(org.openrdf.repository.RepositoryConnection rc,
org.openrdf.model.URI uri)
Predicate that is true if uri is one of the workflow states. |
void |
promote(javax.servlet.http.HttpServletRequest request,
org.openrdf.model.URI newState)
Advance workflow state to the given new state. |
| Methods inherited from class org.openrdf.query.TupleQueryResultHandlerBase |
|---|
endQueryResult, startQueryResult |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean isWorkflowState(javax.servlet.http.HttpServletRequest request,
org.openrdf.model.URI uri)
request - a HttpServletRequest object.uri - a URI object.
public static boolean isWorkflowState(org.openrdf.repository.RepositoryConnection rc,
org.openrdf.model.URI uri)
rc - a RepositoryConnection object.uri - a URI object.
public static boolean isWorkflowPredicate(org.openrdf.model.URI uri)
uri - a URI object.
public static FakeFlow find(javax.servlet.http.HttpServletRequest request,
org.openrdf.model.URI resource)
request - a HttpServletRequest object.resource - the subject URI of the eagle-i resource instance.
FakeFlow object, or null if none found.
public void handleSolution(org.openrdf.query.BindingSet bs)
throws org.openrdf.query.TupleQueryResultHandlerException
handleSolution in interface org.openrdf.query.TupleQueryResultHandlerhandleSolution in class org.openrdf.query.TupleQueryResultHandlerBaseorg.openrdf.query.TupleQueryResultHandlerException
public static FakeFlow create(javax.servlet.http.HttpServletRequest request,
org.openrdf.model.URI resource)
request - a HttpServletRequest object.resource - the subject URI of the eagle-i resource instance.
FakeFlow object, NEVER null.public void clear(javax.servlet.http.HttpServletRequest request)
request - a HttpServletRequest object.
public void promote(javax.servlet.http.HttpServletRequest request,
org.openrdf.model.URI newState)
request - a HttpServletRequest object.newState - URI of new workflow state
public void claim(javax.servlet.http.HttpServletRequest request,
org.openrdf.model.URI newOwner)
request - a HttpServletRequest object.newOwner - new owner as a :Person URI object.public org.openrdf.model.URI getResource()
Getter for the field resource.
URI object.public org.openrdf.model.URI getState()
Getter for the field state.
URI object.public org.openrdf.model.URI getOwner()
Getter for the field owner.
URI object.public java.lang.String getStateLabel()
Getter for the field stateLabel.
String object.public java.lang.String getOwnerLabel()
Getter for the field ownerLabel.
String object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||