当前页面:
在线文档首页 >
JBOSS Portal 2.6 API 英文版文档
JCRCMS - JBOSS Portal 2.6 API 英文版文档
org.jboss.portal.cms.impl.jcr
Class JCRCMS
java.lang.Object
org.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.portal.jems.as.system.AbstractJBossService
org.jboss.portal.cms.impl.jcr.JCRCMS
- All Implemented Interfaces:
- CMS, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, org.jboss.system.Service, org.jboss.system.ServiceMBean
- Direct Known Subclasses:
- HAJCRCMS
- public class JCRCMS
- extends AbstractJBossService
- implements CMS
- Author:
- Roy Russo, Julien Viet, Thomas Heute, Sohil Shah
Fields inherited from class org.jboss.system.ServiceMBeanSupport |
server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
|
Fields inherited from interface org.jboss.system.ServiceMBean |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Methods inherited from class org.jboss.system.ServiceMBeanSupport |
createService, destroyService, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister |
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
private static org.apache.log4j.Logger log
commandFactory
private JCRCommandFactory commandFactory
doChecking
private boolean doChecking
defaultLocale
private java.util.Locale defaultLocale
jcr
private JCRService jcr
defaultContentLocation
private java.lang.String defaultContentLocation
homeDir
private java.lang.String homeDir
repositoryName
private java.lang.String repositoryName
stackFactory
private InterceptorStackFactory stackFactory
config
private org.w3c.dom.Element config
handler
private InvocationHandler handler
JCRCMS
public JCRCMS()
getRepositoryName
public java.lang.String getRepositoryName()
setRepositoryName
public void setRepositoryName(java.lang.String repositoryName)
getHomeDir
public java.lang.String getHomeDir()
setHomeDir
public void setHomeDir(java.lang.String homeDir)
getDefaultContentLocation
public java.lang.String getDefaultContentLocation()
setDefaultContentLocation
public void setDefaultContentLocation(java.lang.String defaultContentLocation)
getConfig
public org.w3c.dom.Element getConfig()
setConfig
public void setConfig(org.w3c.dom.Element config)
getJCR
public JCRService getJCR()
getDefaultLocale
public java.lang.String getDefaultLocale()
- Description copied from interface:
CMS
- Return default locale
- Specified by:
getDefaultLocale
in interface CMS
setDefaultLocale
public void setDefaultLocale(java.lang.String defaultLocale)
getDoChecking
public boolean getDoChecking()
setDoChecking
public void setDoChecking(boolean doChecking)
startService
public void startService()
throws java.lang.Exception
- CMS Start
- Throws:
java.lang.Exception
stopService
public void stopService()
- Shuts down the repo and unregisters it
startJCR
public void startJCR()
throws java.lang.Exception
- Throws:
java.lang.Exception
stopJCR
public void stopJCR()
contentExists
public boolean contentExists()
throws java.lang.Exception
- Checks for existence of default CMS content.
- Returns:
-
- Throws:
java.lang.Exception
createContent
public void createContent()
throws java.io.IOException
- Loads content from sar and adds it to the repo.
- Throws:
java.io.IOException
getCommandFactory
public CommandFactory getCommandFactory()
- Description copied from interface:
CMS
- Return the command factory.
- Specified by:
getCommandFactory
in interface CMS
getRepository
public Repository getRepository()
execute
public java.lang.Object execute(Command cmd)
throws CMSException
- Description copied from interface:
CMS
- Execute the command.
- Specified by:
execute
in interface CMS
- Throws:
CMSException
setStackFactory
public void setStackFactory(InterceptorStackFactory stackFactory)
getStackFactory
public InterceptorStackFactory getStackFactory()