站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.2 API 英文版文档

JCRCMS - JBOSS Portal 2.2 API 英文版文档


org.jboss.portal.cms.impl.jcr
Class JCRCMS

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended byorg.jboss.system.ServiceMBeanSupport
          extended byorg.jboss.portal.common.system.AbstractJBossService
              extended byorg.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

public class JCRCMS
extends AbstractJBossService
implements CMS


Field Summary
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
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
 
Constructor Summary
JCRCMS()
           
 
Method Summary
 boolean contentExists()
          Checks for existence of default CMS content.
 void createContent()
          Loads content from sar and adds it to the repo.
 java.lang.Object execute(Command cmd)
          Execute the command.
 CommandFactory getCommandFactory()
          Return the command factory.
 java.lang.String getConfigFile()
           
 java.lang.String getDefaultContent()
           
 java.lang.String getDefaultLocale()
          Return default locale
 boolean getDoChecking()
           
 java.lang.String getHomeDir()
           
 java.lang.String getLogin()
           
 javax.jcr.Repository getRepository()
           
 java.lang.String getRepositoryName()
           
 boolean nodeTypesExist()
          Check for existence of namespace nodetypes.
 void setConfigFile(java.lang.String configFile)
           
 void setDefaultContent(java.lang.String defaultContent)
           
 void setDefaultLocale(java.lang.String defaultLocale)
           
 void setDoChecking(boolean doChecking)
           
 void setHomeDir(java.lang.String homeDir)
           
 void setLogin(java.lang.String login)
           
 void setRepositoryName(java.lang.String repositoryName)
           
 void startService()
          CMS Start
 void stopService()
          Shuts down the repo and unregisters it
 
Methods inherited from class org.jboss.portal.common.system.AbstractJBossService
create, destroy, getState, getStateString, start, stop
 
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
 

Constructor Detail

JCRCMS

public JCRCMS()
Method Detail

getRepositoryName

public java.lang.String getRepositoryName()

setRepositoryName

public void setRepositoryName(java.lang.String repositoryName)

getConfigFile

public java.lang.String getConfigFile()

setConfigFile

public void setConfigFile(java.lang.String configFile)

getHomeDir

public java.lang.String getHomeDir()

setHomeDir

public void setHomeDir(java.lang.String homeDir)

getDefaultContent

public java.lang.String getDefaultContent()

setDefaultContent

public void setDefaultContent(java.lang.String defaultContent)

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)

getLogin

public java.lang.String getLogin()

setLogin

public void setLogin(java.lang.String login)

startService

public void startService()
                  throws java.lang.Exception
CMS Start

Throws:
java.lang.Exception

nodeTypesExist

public boolean nodeTypesExist()
                       throws java.lang.Exception
Check for existence of namespace nodetypes.

Throws:
java.lang.Exception

contentExists

public boolean contentExists()
                      throws java.lang.Exception
Checks for existence of default CMS content.

Returns:
Throws:
java.lang.Exception

createContent

public void createContent()
Loads content from sar and adds it to the repo.


stopService

public void stopService()
Shuts down the repo and unregisters it


getCommandFactory

public CommandFactory getCommandFactory()
Description copied from interface: CMS
Return the command factory.

Specified by:
getCommandFactory in interface CMS

getRepository

public javax.jcr.Repository getRepository()

execute

public java.lang.Object execute(Command cmd)
Description copied from interface: CMS
Execute the command.

Specified by:
execute in interface CMS