|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.portal.jems.as.system.AbstractJBossService
org.jboss.portal.cms.impl.jcr.JCRCMS
public class JCRCMS
| Field Summary | |
|---|---|
protected static java.lang.ThreadLocal |
applyUISecurityFilter
|
protected static java.lang.ThreadLocal |
turnOffWorkflow
This is used to turnoff workflow triggering only for this particular request through the CMS commands |
protected static java.lang.ThreadLocal |
userInfo
Used for storing the logged in user information |
protected static java.lang.ThreadLocal |
userRoles
Used for propagating user's role information from different nodes of a cluster to the HASingleton Master Node currently processing CMS requests |
| Fields inherited from class org.jboss.system.ServiceMBeanSupport |
|---|
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. |
static void |
disableUISecurityFilter()
|
static void |
enableUISecurityFilter()
|
java.lang.Object |
execute(Command cmd)
Execute the command. |
ApprovePublish |
getApprovePublishWorkflow()
|
AuthorizationManager |
getAuthorizationManager()
|
CommandFactory |
getCommandFactory()
Return the command factory. |
org.w3c.dom.Element |
getConfig()
|
java.lang.String |
getDefaultContentLocation()
|
java.lang.String |
getDefaultLocale()
Return default locale |
boolean |
getDoChecking()
|
java.lang.String |
getHomeDir()
|
JCRService |
getJCR()
|
java.lang.String |
getJNDIName()
|
javax.jcr.Repository |
getRepository()
|
java.lang.String |
getRepositoryName()
|
static java.util.Set<java.lang.String> |
getRoles()
|
InterceptorStackFactory |
getStackFactory()
|
static java.lang.ThreadLocal |
getUserInfo()
|
static boolean |
isUISecurityFilterActive()
|
boolean |
isWorkflowActivated()
|
void |
setApprovePublishWorkflow(ApprovePublish approvePublishWorkflow)
|
void |
setAuthorizationManager(AuthorizationManager authorizationManager)
|
void |
setConfig(org.w3c.dom.Element config)
|
void |
setDefaultContentLocation(java.lang.String defaultContentLocation)
|
void |
setDefaultLocale(java.lang.String defaultLocale)
|
void |
setDoChecking(boolean doChecking)
|
void |
setHomeDir(java.lang.String homeDir)
|
void |
setJNDIName(java.lang.String jndiName)
|
void |
setRepositoryName(java.lang.String repositoryName)
|
static void |
setRoles(java.util.Set<java.lang.String> roles)
|
void |
setStackFactory(InterceptorStackFactory stackFactory)
|
void |
startJCR()
|
void |
startService()
CMS Start |
void |
stopJCR()
|
void |
stopService()
Shuts down the repo and unregisters it |
static void |
turnOffWorkflow()
|
static void |
turnOnWorkflow()
|
| Methods inherited from class org.jboss.portal.jems.as.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 |
| Field Detail |
|---|
protected static java.lang.ThreadLocal userInfo
protected static java.lang.ThreadLocal turnOffWorkflow
protected static java.lang.ThreadLocal applyUISecurityFilter
protected static java.lang.ThreadLocal userRoles
| Constructor Detail |
|---|
public JCRCMS()
| Method Detail |
|---|
public static java.lang.ThreadLocal getUserInfo()
public static void turnOffWorkflow()
public static void turnOnWorkflow()
public static void enableUISecurityFilter()
public static void disableUISecurityFilter()
public static boolean isUISecurityFilterActive()
public static java.util.Set<java.lang.String> getRoles()
public static void setRoles(java.util.Set<java.lang.String> roles)
public java.lang.String getRepositoryName()
public void setRepositoryName(java.lang.String repositoryName)
public java.lang.String getHomeDir()
public void setHomeDir(java.lang.String homeDir)
public java.lang.String getDefaultContentLocation()
public void setDefaultContentLocation(java.lang.String defaultContentLocation)
public org.w3c.dom.Element getConfig()
public void setConfig(org.w3c.dom.Element config)
public JCRService getJCR()
public java.lang.String getDefaultLocale()
CMS
getDefaultLocale in interface CMSpublic void setDefaultLocale(java.lang.String defaultLocale)
public boolean getDoChecking()
public void setDoChecking(boolean doChecking)
public ApprovePublish getApprovePublishWorkflow()
public void setApprovePublishWorkflow(ApprovePublish approvePublishWorkflow)
approvePublishWorkflow - the approvePublishWorkflow to setpublic AuthorizationManager getAuthorizationManager()
public void setAuthorizationManager(AuthorizationManager authorizationManager)
authorizationManager - public java.lang.String getJNDIName()
public void setJNDIName(java.lang.String jndiName)
jndiName -
public void startService()
throws java.lang.Exception
startService in class org.jboss.system.ServiceMBeanSupportjava.lang.Exceptionpublic void stopService()
stopService in class org.jboss.system.ServiceMBeanSupport
public void startJCR()
throws java.lang.Exception
java.lang.Exceptionpublic void stopJCR()
public boolean contentExists()
throws java.lang.Exception
java.lang.Exception
public void createContent()
throws java.lang.Exception
java.lang.Exceptionpublic CommandFactory getCommandFactory()
CMS
getCommandFactory in interface CMSpublic javax.jcr.Repository getRepository()
public java.lang.Object execute(Command cmd)
throws CMSException
CMS
execute in interface CMSCMSExceptionpublic boolean isWorkflowActivated()
isWorkflowActivated in interface CMSpublic void setStackFactory(InterceptorStackFactory stackFactory)
public InterceptorStackFactory getStackFactory()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||