|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.iai.ilcd.services.AbstractDataSetResource<T>
public abstract class AbstractDataSetResource<T extends DataSet>
REST web service for data sets
Field Summary | |
---|---|
static java.lang.String |
FORMAT_HTML
URL parameter value for HTML format type |
static java.lang.String |
FORMAT_XML
URL parameter value for XML format type |
static java.lang.String |
PARAM_FORMAT
URL parameter key for format type |
static java.lang.String |
PARAM_VIEW
URL parameter key for view type |
static java.lang.String |
VIEW_FULL
URL parameter value for full view type |
static java.lang.String |
VIEW_METADATA
URL parameter value for meta data view type |
static java.lang.String |
VIEW_OVERVIEW
URL parameter value for overview view type |
Constructor Summary | |
---|---|
AbstractDataSetResource(DataSetType modelType,
de.fzk.iai.ilcd.api.dataset.ILCDTypes apiType)
Create an abstract data set resource |
Method Summary | |
---|---|
javax.ws.rs.core.Response |
getDataSet(java.lang.String uuid)
Get a data set by UUID string |
javax.ws.rs.core.StreamingOutput |
getDataSets(boolean search,
int startIndex,
int pageSize)
Retrieves representation of an instance of de.iai.ilcd.services.ContactResource |
protected abstract java.lang.String |
getDataSetTypeName()
Get the name of the data set type for the creation of error/info messages |
protected abstract DataSetDao<T,?> |
getFreshDaoInstance()
Create a fresh data access object to work with |
protected abstract java.lang.String |
getHTMLFullViewTemplatePath()
Get the path to the template for the HTML full view page This is typically something like /html/$datasettype$.vm |
protected abstract java.lang.String |
getHTMLOverviewTemplatePath()
Get the path to the template for the HTML overview page This is typically something like /html/$datasettype$_overview.vm |
protected abstract java.lang.String |
getXMLListTemplatePath()
Deprecated. |
protected abstract java.lang.String |
getXMLTemplatePath()
Deprecated. |
javax.ws.rs.core.Response |
importByFileUpload(java.io.InputStream fileInputStream)
POST method for importing new process data set sent by form |
javax.ws.rs.core.Response |
importByXml(java.io.InputStream fileInputStream)
POST method for importing new process data set sent directly |
void |
putXml(java.lang.String content)
PUT method for updating or creating an instance of ContactResource |
protected abstract boolean |
userRequiresFullViewRights()
Flag to set, if full view rights shall be checked in user bean |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PARAM_VIEW
public static final java.lang.String PARAM_FORMAT
public static final java.lang.String FORMAT_HTML
public static final java.lang.String FORMAT_XML
public static final java.lang.String VIEW_OVERVIEW
public static final java.lang.String VIEW_FULL
public static final java.lang.String VIEW_METADATA
Constructor Detail |
---|
public AbstractDataSetResource(DataSetType modelType, de.fzk.iai.ilcd.api.dataset.ILCDTypes apiType)
dao
- the data access object to work withMethod Detail |
---|
protected abstract DataSetDao<T,?> getFreshDaoInstance()
@Deprecated protected abstract java.lang.String getXMLListTemplatePath()
/xml/$datasettype$s.vm
@Deprecated protected abstract java.lang.String getXMLTemplatePath()
/xml/$datasettype$.vm
protected abstract java.lang.String getHTMLFullViewTemplatePath()
/html/$datasettype$.vm
protected abstract java.lang.String getHTMLOverviewTemplatePath()
/html/$datasettype$_overview.vm
protected abstract java.lang.String getDataSetTypeName()
protected abstract boolean userRequiresFullViewRights()
true
if full view rights shall be checked, else false
public javax.ws.rs.core.StreamingOutput getDataSets(boolean search, int startIndex, int pageSize)
public javax.ws.rs.core.Response getDataSet(java.lang.String uuid)
uuid
- UUID string
public void putXml(java.lang.String content)
content
- representation for the resourcepublic javax.ws.rs.core.Response importByFileUpload(java.io.InputStream fileInputStream)
fileInputStream
- XML data to import (from form)
public javax.ws.rs.core.Response importByXml(java.io.InputStream fileInputStream)
fileInputStream
- XML data to import
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |