org.eaglei.repository.model.workflow
Class WorkflowState

java.lang.Object
  extended by org.eaglei.repository.model.ImmutableObjectModel
      extended by org.eaglei.repository.model.workflow.WorkflowState
All Implemented Interfaces:
java.lang.Comparable

@HasContentCache
public final class WorkflowState
extends ImmutableObjectModel
implements java.lang.Comparable

Workflow WorkflowState object model, reflects the :WorkflowState object in RDF database. This is a READ ONLY model. The objects are IMMUTABLE. Of course, this might change if we add an admin UI to add workflow states, but right now that seems unlikely.

Version:
$Id: $
Author:
Larry Stone Started April 26, 2010

Method Summary
 int compareTo(java.lang.Object o)
          
static void decache()
          Invalidate any in-memory cache of RDF data.
 boolean equals(java.lang.Object other)
          
static WorkflowState find(javax.servlet.http.HttpServletRequest request, org.openrdf.model.URI uri)
          Get the WorkflowState for given URI, lookup label.
static java.util.List<WorkflowState> findAll(javax.servlet.http.HttpServletRequest request)
          Get all known States -- we expect them to be stable, hence read-only.
 java.lang.String getComment()
          Getter for the field comment.
 java.lang.String getLabel()
          Getter for the field label.
 org.openrdf.model.URI getURI()
          getURI
 int hashCode()
          
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

find

public static WorkflowState find(javax.servlet.http.HttpServletRequest request,
                                 org.openrdf.model.URI uri)
                          throws javax.servlet.ServletException
Get the WorkflowState for given URI, lookup label.

Parameters:
request - a HttpServletRequest object.
uri - URI of the state
Returns:
a org.eaglei.repository.WorkflowState object
Throws:
javax.servlet.ServletException - if any.

findAll

public static java.util.List<WorkflowState> findAll(javax.servlet.http.HttpServletRequest request)
                                             throws javax.servlet.ServletException
Get all known States -- we expect them to be stable, hence read-only.

Parameters:
request - a HttpServletRequest object.
Returns:
all states in a Iterable object.
Throws:
javax.servlet.ServletException - if any.

decache

public static void decache()
Invalidate any in-memory cache of RDF data.


getURI

public org.openrdf.model.URI getURI()

getURI

Specified by:
getURI in class ImmutableObjectModel
Returns:
URI subject of the WorkflowState, a URI object.

getLabel

public java.lang.String getLabel()

Getter for the field label.

Specified by:
getLabel in class ImmutableObjectModel
Returns:
label of the WorkflowState, a String object.

getComment

public java.lang.String getComment()

Getter for the field comment.

Returns:
comment of the WorkflowState, a String object, MIGHT be null.

equals

public boolean equals(java.lang.Object other)

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

compareTo

public int compareTo(java.lang.Object o)

Specified by:
compareTo in interface java.lang.Comparable


Copyright © 2009-2011 Eagle-I. All Rights Reserved.