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

java.lang.Object
  extended by org.gcube.application.framework.contentmanagement.cache.factories.CollectionInfoCacheEntryFactory
All Implemented Interfaces:
net.sf.ehcache.constructs.blocking.CacheEntryFactory

public class CollectionInfoCacheEntryFactory
extends Object
implements net.sf.ehcache.constructs.blocking.CacheEntryFactory

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

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

Field Detail

VIEWMANAGER

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

See Also:
Constant Field Values

XP_ISUSER

public static final String XP_ISUSER
See Also:
Constant Field Values

FACTORYID

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

See Also:
Constant Field Values

XP_SCHEMANAME

public static final String XP_SCHEMANAME
See Also:
Constant Field Values

XP_LANGUAGE

public static final String XP_LANGUAGE
See Also:
Constant Field Values

XP_COLNAME

public static final String XP_COLNAME
See Also:
Constant Field Values

XP_COLID

public static final String XP_COLID
See Also:
Constant Field Values

XP_RELATEDCOLID

public static final String XP_RELATEDCOLID
See Also:
Constant Field Values

XP_SCHEMAURI

public static final String XP_SCHEMAURI
See Also:
Constant Field Values

logger

protected final org.gcube.common.core.utils.logging.GCUBELog logger
Object logger.

Constructor Detail

CollectionInfoCacheEntryFactory

public CollectionInfoCacheEntryFactory()
Method Detail

createEntry

public Object createEntry(Object key)
                   throws Exception
Specified by:
createEntry in interface net.sf.ehcache.constructs.blocking.CacheEntryFactory
Parameters:
key - the name collection id and the scope
Throws:
Exception

harvestCollectionProfile

public CollectionInfo harvestCollectionProfile(String colId,
                                               String scope)
                                        throws org.gcube.common.core.scope.GCUBEScope.MalformedScopeExpressionException,
                                               org.gcube.common.core.informationsystem.client.ISClient.ISMalformedQueryException,
                                               org.gcube.common.core.informationsystem.client.ISClient.ISUnsupportedQueryException,
                                               org.gcube.common.core.informationsystem.ISException,
                                               org.gcube.common.core.informationsystem.client.XMLResult.ISResultEvaluationException
Throws:
org.gcube.common.core.scope.GCUBEScope.MalformedScopeExpressionException
org.gcube.common.core.informationsystem.client.ISClient.ISMalformedQueryException
org.gcube.common.core.informationsystem.client.ISClient.ISUnsupportedQueryException
org.gcube.common.core.informationsystem.ISException
org.gcube.common.core.informationsystem.client.XMLResult.ISResultEvaluationException


Copyright © 2013. All Rights Reserved.