|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.iai.ilcd.webgui.controller.ui.AbstractDataSetHandler<I,T,D>
T
- Type of model object that this handler providespublic abstract class AbstractDataSetHandler<I extends de.fzk.iai.ilcd.service.model.IDataSetVO,T extends DataSet,D extends DataSetDao<T,?,I>>
Handler for DataSet view
Constructor Summary | |
---|---|
AbstractDataSetHandler(D daoInstance,
java.lang.String resourceDir)
Initialize handler |
Method Summary | |
---|---|
protected void |
datasetLoaded(T dataset)
Called when a local data set was loaded successfully by postViewParamInit(ComponentSystemEvent) . |
protected D |
getDaoInstance()
Get the DAO instance of this handler |
I |
getDataSet()
Get the data set |
java.lang.String |
getDataSetIdString()
Get the data set id as string |
java.lang.String |
getDataSetUuidString()
Get the data set uuid as string |
java.lang.String |
getDataSetVersionString()
Get the data set version as string |
java.lang.String |
getForeignHTMLResourceURL()
Get the foreign resource URL for HTML view of data set |
java.lang.String |
getForeignXMLResourceURL()
Get the foreign resource URL for XML of data set |
java.lang.String |
getLocalHTMLResourceURL()
Get the local resource URL for HTML view of data set |
java.lang.String |
getLocalXMLResourceURL()
Get the local resource URL for XML of data set |
java.util.List<T> |
getOtherVersions()
Get the other versions for this data set |
java.lang.String |
getSourceNodeIdString()
Get the source node id as string |
boolean |
isForeignDataSet()
Determine if the data set is a foreign data set |
boolean |
isOtherVersionPresent()
Determine if at least one other version is present |
protected boolean |
isStringNullOrEmpty(java.lang.String s)
Determine if string is null or empty . |
void |
postViewParamInit(javax.faces.event.ComponentSystemEvent event)
Method to be called after view parameters have been initialized. |
void |
setConf(ConfigurationBean conf)
Setter for managed property for configuration |
void |
setDataSet(I dataSet)
Set the data set |
void |
setDataSetIdString(java.lang.String dataSetIdString)
Set the data set id as string |
void |
setDataSetUuidString(java.lang.String dataSetUuidString)
Set the data set uuid as string |
void |
setDataSetVersionString(java.lang.String dataSetVersionString)
Set the data set version as string |
void |
setSourceNodeIdString(java.lang.String sourceNodeIdString)
Set the source node id as string |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractDataSetHandler(D daoInstance, java.lang.String resourceDir)
daoInstance
- matching DAOresourceDir
- the directory for the RESTful service (e.g. processes
)Method Detail |
---|
protected void datasetLoaded(T dataset)
postViewParamInit(ComponentSystemEvent)
.
Override this method when this information is required in sub-classes.
dataset
- loaded data setpublic final void postViewParamInit(javax.faces.event.ComponentSystemEvent event) throws javax.faces.event.AbortProcessingException
database ID
specified: local data set loaded by database ID (all other
parameter are being ignored!)UUID
specified: local data set loaded by UUID, most recent versionUUID
and version
specified: local
data set loaded by UUID and given versionUUID
and source node
specified: remote
data set loaded by UUID, most recent versionUUID
and version
and source node
specified: remote data set loaded by UUID and given
version (once ServiceAPI supports this)
event
- event
javax.faces.event.AbortProcessingException
- in case of errorspublic boolean isForeignDataSet()
true
is data set is a foreign data set, else false
public java.lang.String getLocalXMLResourceURL()
public java.lang.String getLocalHTMLResourceURL()
public java.lang.String getForeignXMLResourceURL()
null
if this is notpublic java.lang.String getForeignHTMLResourceURL()
public void setConf(ConfigurationBean conf)
conf
- configuration bean to setpublic void setDataSet(I dataSet)
dataSet
- data set to setpublic I getDataSet()
public java.lang.String getDataSetIdString()
public boolean isOtherVersionPresent()
true
if at least one other version is present, else false
public void setDataSetIdString(java.lang.String dataSetIdString)
dataSetIdString
- id to setpublic java.lang.String getDataSetUuidString()
public void setDataSetUuidString(java.lang.String dataSetUuidString)
dataSetUuidString
- uuid to setpublic java.lang.String getDataSetVersionString()
public void setDataSetVersionString(java.lang.String dataSetVersionString)
dataSetVersionString
- version to setpublic java.lang.String getSourceNodeIdString()
public void setSourceNodeIdString(java.lang.String sourceNodeIdString)
sourceNodeIdString
- id to setpublic java.util.List<T> getOtherVersions()
protected final D getDaoInstance()
protected final boolean isStringNullOrEmpty(java.lang.String s)
null
or empty
. Please note that if string is not
null
, it is trimmed
before empty check.
s
- string to test
true
if null
or empty, else false
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |