|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<View>
org.eaglei.repository.View
public enum View
Views are named datasets to be used in SPARQL queries, which are constructed dynamically according to the current user's access permissions. The View class is two things: 1. An enumerated type that defines the set of implemented views. 2. A set of static utility methods to manipulate datasets. The implemented views are: public - all graphs visible to the anonymous role metadata - all accessible metadata graphs ontology - all accessible ontology graphs metadata+ontology - all accessible md AND ontology graphs user - every NG user can see user-resource - every NG user can see related to ei instance resources all - every named graph whether permitted or not null - query entire Sesame repo without regard to named graphs (superuser)
| Enum Constant Summary | |
|---|---|
ALL
|
|
METADATA
|
|
METADATA_ONTOLOGY
|
|
NULL
|
|
ONTOLOGY
|
|
PUBLIC
|
|
PUBLISHED
|
|
PUBLISHED_RESOURCES
|
|
USER
|
|
USER_RESOURCES
|
|
| Method Summary | |
|---|---|
static void |
addGraphs(javax.servlet.http.HttpServletRequest request,
org.openrdf.query.impl.DatasetImpl ds,
View vw)
Add the named graphs composing a view to the specified dataset. |
static void |
addWorkspaceGraphs(javax.servlet.http.HttpServletRequest request,
org.openrdf.query.impl.DatasetImpl ds,
org.openrdf.model.URI graphName)
Construct a "workspace" view based on a single named graph of type Workspace or Published which is expected to contain resource instances. |
static java.util.Map<java.lang.String,org.openrdf.model.URI> |
getAllWorkspaceGraphs(javax.servlet.http.HttpServletRequest request)
Returns map loaded with name and graph-URI of all named graphs of type workspace or pubilshed. |
java.lang.String |
getLabel()
Getter for the field label. |
java.lang.String |
getTitle()
getTitle |
static View |
parseView(java.lang.String v)
parseView - find View matching name. |
static View |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static View[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final View ALL
public static final View METADATA
public static final View METADATA_ONTOLOGY
public static final View ONTOLOGY
public static final View PUBLIC
public static final View PUBLISHED
public static final View PUBLISHED_RESOURCES
public static final View USER
public static final View USER_RESOURCES
public static final View NULL
| Method Detail |
|---|
public static View[] values()
for (View c : View.values()) System.out.println(c);
public static View valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic java.lang.String getLabel()
Getter for the field label.
String object.public java.lang.String getTitle()
getTitle
String object.public static View parseView(java.lang.String v)
parseView - find View matching name. Implemented with dumb linear search, but good enough for now.
v - the view name to match.
View object or null if none found.
public static void addGraphs(javax.servlet.http.HttpServletRequest request,
org.openrdf.query.impl.DatasetImpl ds,
View vw)
request - a HttpServletRequest object.ds - dataset to modify a DatasetImpl object.vw - the View whose graphs to add.
public static void addWorkspaceGraphs(javax.servlet.http.HttpServletRequest request,
org.openrdf.query.impl.DatasetImpl ds,
org.openrdf.model.URI graphName)
request - a HttpServletRequest object.ds - dataset to modify a DatasetImpl object.graphName - names the workspace graph, a URI object.public static java.util.Map<java.lang.String,org.openrdf.model.URI> getAllWorkspaceGraphs(javax.servlet.http.HttpServletRequest request)
request - a HttpServletRequest object.
Map object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||