|
|||||||||
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.workflow.ApprovePublishImpl
public class ApprovePublishImpl
Created on : Dec 19, 2006
Field Summary |
---|
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 | |
---|---|
ApprovePublishImpl()
|
Method Summary | |
---|---|
java.util.Collection |
getAllPendingInQueue()
Retrieves a queue of unapproved content for everything in the CMS. |
java.lang.String |
getBody()
|
java.lang.String |
getFrom()
|
IdentityServiceController |
getIdentityServiceController()
|
java.lang.String |
getJNDIName()
|
java.lang.String |
getManagerRoles()
|
java.util.Set |
getManagers()
Returns role names of Roles that are designated to be Managers in this workflow. |
java.util.Collection |
getPendingQueue(java.lang.String filePath)
Retrieves a queue of unapproved content associated with the specified file in the CMS |
java.lang.String |
getProcess()
|
java.lang.String |
getSubject()
|
WorkflowService |
getWorkflowService()
|
boolean |
isOverwrite()
|
void |
processManagerResponse(long processId,
java.lang.String manager,
boolean approved)
Called when a manager either approves or rejects the publishing of a specific content to go live |
void |
processManagerResponse(long processId,
java.lang.String manager,
java.lang.String modifiedContent)
Called when a manager either approves the publishing of a specific content to go live, but at the same time adds his/her own modifications to the original content |
long |
requestApproval(Content content)
Called when content is added to the CMS, and needs to be approved by the managers before it can be published to go live |
void |
setBody(java.lang.String body)
|
void |
setFrom(java.lang.String from)
|
void |
setIdentityServiceController(IdentityServiceController identityServiceController)
|
void |
setJNDIName(java.lang.String jndiName)
|
void |
setManagerRoles(java.lang.String managerRoles)
|
void |
setOverwrite(boolean overwrite)
|
void |
setProcess(java.lang.String process)
|
void |
setSubject(java.lang.String subject)
|
void |
setWorkflowService(WorkflowService workflowService)
|
void |
startService()
|
void |
stopService()
|
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 |
Constructor Detail |
---|
public ApprovePublishImpl()
Method Detail |
---|
public void startService() throws java.lang.Exception
startService
in class org.jboss.system.ServiceMBeanSupport
java.lang.Exception
public void stopService() throws java.lang.Exception
stopService
in class org.jboss.system.ServiceMBeanSupport
java.lang.Exception
public WorkflowService getWorkflowService()
public void setWorkflowService(WorkflowService workflowService)
workflowService
- public java.lang.String getProcess()
public void setProcess(java.lang.String process)
process
- public java.lang.String getManagerRoles()
public void setManagerRoles(java.lang.String managerRoles)
managerRoles
- the manager managerRoles to setpublic boolean isOverwrite()
public void setOverwrite(boolean overwrite)
overwrite
- the overwrite to setpublic java.lang.String getJNDIName()
public void setJNDIName(java.lang.String jndiName)
jndiName
- public IdentityServiceController getIdentityServiceController()
public void setIdentityServiceController(IdentityServiceController identityServiceController)
identityServiceController
- public java.lang.String getBody()
public void setBody(java.lang.String body)
body
- the body to setpublic java.lang.String getFrom()
public void setFrom(java.lang.String from)
from
- the from to setpublic java.lang.String getSubject()
public void setSubject(java.lang.String subject)
subject
- the subject to setpublic long requestApproval(Content content) throws WorkflowException
requestApproval
in interface ApprovePublish
content
-
WorkflowException
public void processManagerResponse(long processId, java.lang.String manager, boolean approved) throws WorkflowException
processManagerResponse
in interface ApprovePublish
processId
- manager
- userId of the managerapproved
- true if approved, false if rejected
WorkflowException
public void processManagerResponse(long processId, java.lang.String manager, java.lang.String modifiedContent) throws WorkflowException
processManagerResponse
in interface ApprovePublish
processId
- manager
- userId of the managerapproved
- true if approved, false if rejected
WorkflowException
public java.util.Collection getPendingQueue(java.lang.String filePath) throws WorkflowException
getPendingQueue
in interface ApprovePublish
filePath
-
WorkflowException
public java.util.Collection getAllPendingInQueue() throws WorkflowException
getAllPendingInQueue
in interface ApprovePublish
WorkflowException
public java.util.Set getManagers()
ApprovePublish
getManagers
in interface ApprovePublish
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |