public class CSPIndexDefinitionProvider extends CSPBaseProvider implements IContentProvider, Serializable
fRetrievalModule, fSession
fExpireWithPageFlow
DATA_BINDING_CLIENTS, EMPTY_RESOURCES, OUTCOME_ERROR, OUTCOME_OK, resourcesProviders
Constructor and Description |
---|
CSPIndexDefinitionProvider() |
Modifier and Type | Method and Description |
---|---|
CSPIndex |
getDefinition(String indexId)
Returns the index definition for a index id
|
List<CSPIndex> |
getIndexes(String contentId)
Returns indexes for a content id
|
List<CSPIndex> |
getIndexesForContentDefinition(String contentDefinitionId)
Returns all indexes for a content definition
|
List<CSPIndex> |
getIndexesForContentDefinitions(List<String> contentDefinitions)
Returns indexes for specified content definitions and excludes the duplicates
Example:
Content definition id - ID1
Indexes for ID1 - index1, index2, indexID1
Content definition id - ID2
Indexes for ID2 - index1, indexID2
This method should return - index1, index2, indexID1, indexID2
|
Object[] |
getPropertyKeys()
Returns list of properties supported by this content provider.
|
Class<CSPContentDefinition> |
getType(Object contentDefinitionId)
Returns java type of the given property
|
Object |
getValue(Object contentDefinitionId)
Returns value of the given property
|
boolean |
hasProperty(Object contentDefinitionId)
Checks if the given property is supported by this content provider
|
checkState, getSession, release, setSession
getExpireWithPageFlow, setExpireWithPageFlow, valueBound, valueUnbound
createMethodBinding, createMethodExpression, createValueBinding, createValueExpression, createValueExpression, error, error, error, error, error, getBean, getFacesContext, getLocale, getResourceInputStream, getResources, getResourcesProvider, getRootCause, getStackTrace, getTreeAttribute, isUserInRole, log, log, log, putTreeAttribute, resetDataBindingClients, resolveDataBinding, resolveDataBinding, resolveExpression, setValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toString
public CSPIndex getDefinition(String indexId) throws Exception
indexId
- whose definition should be returnedException
public List<CSPIndex> getIndexes(String contentId) throws Exception
contentId
- whose indexes to be returnedException
public List<CSPIndex> getIndexesForContentDefinition(String contentDefinitionId) throws Exception
contentDefinitionId
- whose indexes to be retrievedException
public List<CSPIndex> getIndexesForContentDefinitions(List<String> contentDefinitions) throws Exception
contentDefinitions
- whose indexes should be returnedException
public Object[] getPropertyKeys()
IContentProvider
Object[0]
,
never null.getPropertyKeys
in interface IContentProvider
String
or Integer
public Class<CSPContentDefinition> getType(Object contentDefinitionId) throws PropertyNotFoundException
IContentProvider
getType
in interface IContentProvider
contentDefinitionId
- the property key of type String
or Integer
Class
PropertyNotFoundException
- if property is not supportedpublic Object getValue(Object contentDefinitionId)
IContentProvider
getValue
in interface IContentProvider
contentDefinitionId
- - the id of the Content Definition that keep information about selected node.CSPContentDefinition
public boolean hasProperty(Object contentDefinitionId)
IContentProvider
hasProperty
in interface IContentProvider
contentDefinitionId
- property key of type String
or Integer
true
if property is supported