org.gcube.application.framework.contentmanagement.cache.factories
Class CollectionInfoCacheEntryFactory

java.lang.Object
  extended by org.gcube.application.framework.contentmanagement.cache.factories.CollectionInfoCacheEntryFactory

public class CollectionInfoCacheEntryFactory
extends java.lang.Object

Author:
Rena This cache serves the collection hierarchy for each collection in the given scope

Field Summary
static java.lang.String FACTORYID
          The identifier of the factory resources of the View manager
static java.lang.String VIEWMANAGER
          The name of the service that handles the Metadata Views
static java.lang.String XP_COLID
           
static java.lang.String XP_COLNAME
           
static java.lang.String XP_ISUSER
           
static java.lang.String XP_LANGUAGE
           
static java.lang.String XP_RELATEDCOLID
           
static java.lang.String XP_SCHEMANAME
           
static java.lang.String XP_SCHEMAURI
           
 
Constructor Summary
CollectionInfoCacheEntryFactory()
           
 
Method Summary
 java.lang.Object createEntry(java.lang.Object key)
           
 CollectionInfo harvestCollectionProfile(java.lang.String colId, java.lang.String scope)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VIEWMANAGER

public static final java.lang.String VIEWMANAGER
The name of the service that handles the Metadata Views

See Also:
Constant Field Values

XP_ISUSER

public static final java.lang.String XP_ISUSER
See Also:
Constant Field Values

FACTORYID

public static final java.lang.String FACTORYID
The identifier of the factory resources of the View manager

See Also:
Constant Field Values

XP_SCHEMANAME

public static final java.lang.String XP_SCHEMANAME
See Also:
Constant Field Values

XP_LANGUAGE

public static final java.lang.String XP_LANGUAGE
See Also:
Constant Field Values

XP_COLNAME

public static final java.lang.String XP_COLNAME
See Also:
Constant Field Values

XP_COLID

public static final java.lang.String XP_COLID
See Also:
Constant Field Values

XP_RELATEDCOLID

public static final java.lang.String XP_RELATEDCOLID
See Also:
Constant Field Values

XP_SCHEMAURI

public static final java.lang.String XP_SCHEMAURI
See Also:
Constant Field Values
Constructor Detail

CollectionInfoCacheEntryFactory

public CollectionInfoCacheEntryFactory()
Method Detail

createEntry

public java.lang.Object createEntry(java.lang.Object key)
                             throws java.lang.Exception
Parameters:
key - the name collection id and the scope
Throws:
java.lang.Exception

harvestCollectionProfile

public CollectionInfo harvestCollectionProfile(java.lang.String colId,
                                               java.lang.String scope)
                                        throws MalformedScopeExpressionException,
                                               ISMalformedQueryException,
                                               ISUnsupportedQueryException,
                                               ISException,
                                               ISResultEvaluationException
Throws:
MalformedScopeExpressionException
ISMalformedQueryException
ISUnsupportedQueryException
ISException
ISResultEvaluationException