org.jboss.portal.cms.impl.cache
Class CMSTreeCacheServiceImpl
java.lang.Object
ServiceMBeanSupport
org.jboss.portal.jems.as.system.AbstractJBossService
org.jboss.portal.cms.impl.cache.CMSTreeCacheServiceImpl
- All Implemented Interfaces:
- CMSTreeCacheService
public class CMSTreeCacheServiceImpl
- extends AbstractJBossService
- implements CMSTreeCacheService
- Version:
- $Revision: 6728 $
- Author:
- Thomas Heute
Method Summary |
File |
get(java.lang.String path,
java.util.Locale locale)
Get a file from the cache, returns null if the file cannot be found |
TreeCacheMBean |
getCache()
|
java.lang.String |
getJNDIName()
|
void |
put(java.lang.String path,
java.util.Locale locale,
File file)
Put a CMS file into the cache |
void |
remove(java.lang.String path)
Remove a file (all languages) |
void |
remove(java.lang.String path,
java.util.Locale locale)
Remove a localized file |
void |
setCache(TreeCacheMBean cache)
|
void |
setJNDIName(java.lang.String jndiName)
|
void |
startService()
|
void |
stopService()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
jndiBinding
protected JNDI.Binding jndiBinding
CMSTreeCacheServiceImpl
public CMSTreeCacheServiceImpl()
getJNDIName
public java.lang.String getJNDIName()
setJNDIName
public void setJNDIName(java.lang.String jndiName)
get
public File get(java.lang.String path,
java.util.Locale locale)
- Description copied from interface:
CMSTreeCacheService
- Get a file from the cache, returns null if the file cannot be found
- Specified by:
get
in interface CMSTreeCacheService
put
public void put(java.lang.String path,
java.util.Locale locale,
File file)
- Description copied from interface:
CMSTreeCacheService
- Put a CMS file into the cache
- Specified by:
put
in interface CMSTreeCacheService
remove
public void remove(java.lang.String path,
java.util.Locale locale)
throws CMSCacheException
- Description copied from interface:
CMSTreeCacheService
- Remove a localized file
- Specified by:
remove
in interface CMSTreeCacheService
- Throws:
CMSCacheException
remove
public void remove(java.lang.String path)
throws CMSCacheException
- Description copied from interface:
CMSTreeCacheService
- Remove a file (all languages)
- Specified by:
remove
in interface CMSTreeCacheService
- Throws:
CMSCacheException
startService
public void startService()
stopService
public void stopService()
getCache
public TreeCacheMBean getCache()
setCache
public void setCache(TreeCacheMBean cache)