|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.endeca.portal.metadata.AbstractMetadataManager<MDEXStateMetadataObject> com.endeca.portal.metadata.datasource.MDEXStateMetadataManager
public class MDEXStateMetadataManager
This class manages the persistence management of the MDEXState objects.
Field Summary | |
---|---|
static java.lang.String |
MDEX_STATE_TYPE
|
Method Summary | ||
---|---|---|
boolean |
addOrUpdateMDEXState(java.lang.String id,
java.lang.String mdexStateInitialConfig)
This method stores an MDEXState's initial configuration string in the database. |
|
boolean |
deleteMDEXState(java.lang.String id)
This method removes an MDEXState from the database based on its data source id. |
|
java.util.List<MDEXStateMetadataObject> |
getAllDatasources()
This method returns all the MDEXStateMetadataObject directly from the database in a List. |
|
static MDEXStateMetadataManager |
getInstance()
Return an instance of the MDEXStateMetadataManager. |
|
MDEXStateMetadataObject |
getMDEXStateMetadataObject(java.lang.String key)
This method returns the MDEXStateMetadataObject based on the passed data source Id from the database. |
|
boolean |
hasDataSources()
This method will return true if there are 1 or more data sources persisted, and false if no data sources exist. |
|
boolean |
hasProperties()
Return true to indicate that this MetadataManager class works with MetadataObjects that have associated MetadataProperties. |
|
MDEXStateMetadataObject |
objectFromMetadataRecord(com.endeca.portal.liferay.ext.metadata.model.MetadataRecord record)
Given a base Liferay record, return a Metadata Object; subclasses must implement this method. |
|
MDEXStateMetadataObject |
persist(MDEXStateMetadataObject incoming)
Persists a Metadata Object to the database |
|
|
propertyFromMetadataPropertyRecord(com.endeca.portal.liferay.ext.metadata.model.MetadataPropertyRecord record)
Given a base Liferay record, return a Metadata Property; subclasses must implement this method. |
Methods inherited from class com.endeca.portal.metadata.AbstractMetadataManager |
---|
getMetadataPropertyRecords, getObject, getObjectById, getObjects, getProperties, getProperty, handleObjectPropertyPersistence, objectsFromMetadataRecords, persist, persistProperties, persistProperty, propertiesFromMetadataPropertyRecords, removeObjectById, removePropertyById, setupPropertyQuery |
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 MDEX_STATE_TYPE
Method Detail |
---|
public static MDEXStateMetadataManager getInstance()
public boolean addOrUpdateMDEXState(java.lang.String id, java.lang.String mdexStateInitialConfig)
id
- mdexStateInitialConfig
-
public boolean deleteMDEXState(java.lang.String id) throws MetadataException
id
-
MetadataException
public java.util.List<MDEXStateMetadataObject> getAllDatasources()
public boolean hasDataSources()
public MDEXStateMetadataObject getMDEXStateMetadataObject(java.lang.String key)
key
-
public MDEXStateMetadataObject persist(MDEXStateMetadataObject incoming) throws MetadataException
AbstractMetadataManager
persist
in class AbstractMetadataManager<MDEXStateMetadataObject>
incoming
- the Metadata Object representing the record to be persisted
MetadataException
- if there was an error persisting the datapublic MDEXStateMetadataObject objectFromMetadataRecord(com.endeca.portal.liferay.ext.metadata.model.MetadataRecord record)
AbstractMetadataManager
objectFromMetadataRecord
in interface MetadataManager<MDEXStateMetadataObject>
objectFromMetadataRecord
in class AbstractMetadataManager<MDEXStateMetadataObject>
record
- the base Liferay record
MetadataManager.objectFromMetadataRecord(MetadataRecord)
public <S extends MetadataProperty> S propertyFromMetadataPropertyRecord(com.endeca.portal.liferay.ext.metadata.model.MetadataPropertyRecord record)
AbstractMetadataManager
propertyFromMetadataPropertyRecord
in interface MetadataManager<MDEXStateMetadataObject>
propertyFromMetadataPropertyRecord
in class AbstractMetadataManager<MDEXStateMetadataObject>
S
- an instance of a Metadata Property extensionrecord
- the base Liferay record
MetadataManager.propertyFromMetadataPropertyRecord(MetadataPropertyRecord)
public boolean hasProperties()
AbstractMetadataManager
hasProperties
in class AbstractMetadataManager<MDEXStateMetadataObject>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |