public class CommunityFormHandler extends PortalGenericFormHandler
Community management is the core functionality of this form handler. It controls creating, updating and deleting all communities using calls to the business layer PortalRepositoryManagement class. This functionality is invoked via the various handleXXX methods of the form handler.
All handle methods in this form handler mirror a similiar pattern.
Each handleXXX process, some have an associated preXXX and postXXX method.
For example, the handleCreate
has an associated
preCreateCommunity
and postCreateCommunity
.
These pre/post methods provide an easy way for customer's to extend the
functionality of this form handler.
GenericFormHandler
,
PortalGenericFormHandler
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
PARAM_DEFER_FORWARD_OR_REDIRECT, PARAM_USE_FORWARDS
SERVICE_INFO_KEY
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
CommunityFormHandler() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
createCommunity(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
createCommunity is called by the handlers to make calls to the management
layer class to create a community using the properties set by the form.
|
protected boolean |
deleteCommunity(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
deleteCommunity is called by the handlers to make calls to the management
layer class to delete a community.
|
java.lang.Integer |
getAccessLevel()
Returns property Access
|
java.lang.Boolean |
getActive()
Returns property active
|
Community |
getCommunity()
Returns property Community
|
java.lang.String |
getDescription()
Returns property Description
|
java.lang.String[] |
getGearDefinitionFolderIds()
Returns property mGearDefinitionFolder
|
atg.portal.framework.folder.GearDefinitionFolder[] |
getGearDefinitionFolders()
Returns property mGearDefinitionFolder
|
java.lang.String |
getGearTitleTemplate()
Returns property mGearTitleTemplate
|
java.lang.Boolean |
getHasFolders()
Returns property HasFolders
|
java.lang.String |
getId()
Returns property Id
|
java.lang.String |
getMembershipRequest()
Returns property mMembershipRequest
|
java.lang.String |
getName()
Returns property mName
|
Cache |
getPageCache()
Returns property PageCache
|
java.lang.String |
getPageTemplate()
Returns property mPageTemplate
|
java.lang.String |
getParentFolder()
Returns property mParentFolder
|
java.lang.String |
getPersonalization()
Returns property Personalization
|
Portal |
getPortal()
Returns the Portal object to use for retrieval and manipulation of portal assets.
|
java.lang.String |
getStyle()
Returns property mStyle
|
java.lang.String |
getUrl()
Returns property mUrl
|
java.lang.String |
getWirelessPage()
Returns property mWirelessPage
|
boolean |
handleCreate(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Called when the user submits the form using the Create button to create
a community.
|
boolean |
handleDelete(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Called to handle deleting a community.
|
boolean |
handleReset(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Reset this session scoped formhandler
|
boolean |
handleUpdate(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Called to handle updating a community.
|
boolean |
handleUpdateGearDefinitionFolders(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Called to handle updating a community.
|
void |
postCreateCommunity(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Operation called just component creation is finished
|
void |
postDeleteCommunity(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Operation called just component creation is finished
|
void |
postUpdate(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Operation called just component creation is finished
|
void |
postUpdateGearDefinitionFolders(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Operation called just component creation is finished
|
boolean |
preCreateCommunity(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Operation called just before component creation is started.
|
void |
preDeleteCommunity(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Operation called just before component creation is started
|
void |
preUpdate(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Operation called just before component creation is started
|
void |
preUpdateGearDefinitionFolders(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Operation called just before component creation is started
|
protected void |
resetBean()
Reset this bean set properties to null
|
void |
setAccessLevel(java.lang.Integer pAccessLevel)
Sets property Access
|
void |
setActive(java.lang.Boolean pActive) |
void |
setCommunity(Community pCommunity)
Sets property Community
|
void |
setDescription(java.lang.String pDescription)
Sets property Description
|
void |
setGearDefinitionFolderIds(java.lang.String[] pGearDefinitionFolderIds)
Sets property GearDefinitionFolderIds
|
void |
setGearDefinitionFolders(atg.portal.framework.folder.GearDefinitionFolder[] pGearDefinitionFolders)
Sets property GearDefinitionFolders
|
void |
setGearTitleTemplate(java.lang.String pGearTitleTemplate)
Sets property GearTitleTemplate
|
void |
setHasFolders(java.lang.Boolean pHasFolders)
Sets property HasFolders
|
void |
setId(java.lang.String pId)
Sets property Id
|
void |
setMembershipRequest(java.lang.String pMembershipRequest)
Sets property MembershipRequest
|
void |
setName(java.lang.String pName)
Sets property Name
|
void |
setPageCache(Cache pPageCache)
Sets property PageCache
|
void |
setPageTemplate(java.lang.String pPageTemplate)
Sets property PageTemplate
|
void |
setParentFolder(java.lang.String pParentFolder)
Sets property ParentFolder
|
void |
setPersonalization(java.lang.String pPersonalization)
Sets property Personalization
|
void |
setPortal(Portal pPortal)
The portal object to use for retrieval and manipulation of portal assets.
|
void |
setStyle(java.lang.String pStyle)
Sets property Style
|
void |
setUrl(java.lang.String pUrl)
Sets property Url
|
void |
setWirelessPage(java.lang.String pWirelessPage)
Sets property wirelessPage
|
protected boolean |
updateCommunity(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
updateCommunity is called by the handlers to make calls to the management
layer class to update a community.
|
protected boolean |
updateGearDefinitionFolders(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
updateGearDefinitionFolders is called by the handlers to update the gear definition
folders available to a community
|
addFormException, formatUserMessage, formatUserMessage, formatUserMessage, formatUserMessage, getDefaultLocale, getFailureMessageProcessor, getFailureURL, getFormError, getFormInfo, getFormMessages, getLocale, getPublisher, getSuccessMessageProcessor, getSuccessURL, getUserLocale, handleResetFormExceptions, handleResetFormMessages, handleSetLocale, isUseRequestLocale, processException, processException, processException, processException, processSuccess, processSuccess, processSuccess, resetFormMessages, sendAlertMessage, setDefaultLocale, setFailureMessageProcessor, setFailureURL, setPublisher, setSuccessMessageProcessor, setSuccessURL, setUseRequestLocale
afterSet, beforeSet, checkFormRedirect, commitTransaction, getTransactionDemarcation, getTransactionStatus, isEnsureTransaction, isRollbackTransaction, isRollbackTransactionOnUnhandledException, isTransactionMarkedAsRollback, setEnsureTransaction, setRollbackTransaction, setRollbackTransactionOnUnhandledException, setTransactionDemarcation
addUncheckedFormException, createFormSubmissionMessage, getCancelURL, getCheckForValidSession, getFormExceptions, getFormName, getMessagePort, getMessageSource, getMessageType, getPropertyExceptions, getSendMessages, getUncheckedFormExceptions, handleCancel, handleFormException, handleUncheckedFormException, hasUncheckedFormExceptions, isDeferForwardsAndRedirects, isRestorableForm, isUseForwards, isValidSession, redirectOrForward, resetFormExceptions, setCancelURL, setCheckForValidSession, setDeferForwardsAndRedirects, setFormName, setMessagePort, setMessageSource, setMessageType, setRestorableForm, setSendMessages, setUseForwards
afterGet, beforeGet
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public void setPortal(Portal pPortal)
pPortal
- The property to store the value of the portal object.public Portal getPortal()
public void setId(java.lang.String pId)
pId
- The property for repository id of .public java.lang.String getId()
public void setName(java.lang.String pName)
pName
- The property to store the name of the .public java.lang.String getName()
getName
in interface NameContextElement
getName
in class GenericService
public void setUrl(java.lang.String pUrl)
pUrl
- The property to store the url of the .public java.lang.String getUrl()
public void setParentFolder(java.lang.String pParentFolder)
pParentFolder
- The property to store the parent folder for the community.public java.lang.String getParentFolder()
public void setDescription(java.lang.String pDescription)
pDescription
- The description of the community.public java.lang.String getDescription()
public void setMembershipRequest(java.lang.String pMembershipRequest)
pMembershipRequest
- The property used to indicate membership for community.public java.lang.String getMembershipRequest()
public void setPageTemplate(java.lang.String pPageTemplate)
pPageTemplate
- The property to store the Page Template of community.public java.lang.String getPageTemplate()
public void setStyle(java.lang.String pStyle)
pStyle
- The property used to store style Repository Id of community community.public java.lang.String getStyle()
public void setGearTitleTemplate(java.lang.String pGearTitleTemplate)
pGearTitleTemplate
- The property to store the Gear TitleTemplate of community.public java.lang.String getGearTitleTemplate()
public void setPersonalization(java.lang.String pPersonalization)
pPersonalization
- The property used to indicate whether users can personalize the community.public java.lang.String getPersonalization()
public void setAccessLevel(java.lang.Integer pAccessLevel)
pAccess
- The property used to indicate who all can access the community.public java.lang.Integer getAccessLevel()
public void setWirelessPage(java.lang.String pWirelessPage)
pWirelessPage
- The property to store the wireless page.public java.lang.String getWirelessPage()
public void setActive(java.lang.Boolean pActive)
public java.lang.Boolean getActive()
public void setPageCache(Cache pPageCache)
public Cache getPageCache()
public void setCommunity(Community pCommunity)
pCommunity
- The property for the Community object.public Community getCommunity()
public void setGearDefinitionFolders(atg.portal.framework.folder.GearDefinitionFolder[] pGearDefinitionFolders)
pGearDefinitionFolders
- The property to store the all the gear definition folders.public atg.portal.framework.folder.GearDefinitionFolder[] getGearDefinitionFolders() throws PortalException, SecurityException
PortalException
SecurityException
public void setGearDefinitionFolderIds(java.lang.String[] pGearDefinitionFolderIds)
pGearDefinitionFolderIds
- The property to store the all the gear definition folders.public java.lang.String[] getGearDefinitionFolderIds()
public void setHasFolders(java.lang.Boolean pHasFolders)
pHasFolders
- boolean to specify whether gear definition folders have been checked.public java.lang.Boolean getHasFolders()
public boolean handleCreate(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the servlet's requestpResponse
- the servlet's responsejavax.servlet.ServletException
- if there was an error while executing the codejava.io.IOException
- if there was an error with servlet ioprotected boolean createCommunity(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws java.io.IOException, javax.servlet.ServletException, SecurityException
pRequest
- the dynamo request objectpResponse
- the dynamo response objectjavax.servlet.ServletException
- if something went wrongjava.io.IOException
- if something went wrongSecurityException
public boolean preCreateCommunity(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the dynamo request objectpResponse
- the dynamo response objectjavax.servlet.ServletException
- if something went wrongjava.io.IOException
- if something went wrongpublic void postCreateCommunity(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the dynamo request objectpResponse
- the dynamo response objectjavax.servlet.ServletException
- if something went wrongjava.io.IOException
- if something went wrongpublic boolean handleDelete(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws java.io.IOException, javax.servlet.ServletException, SecurityException
pRequest
- the servlet's requestpResponse
- the servlet's responsejavax.servlet.ServletException
- if there was an error while executing the codejava.io.IOException
- if there was an error with servlet ioSecurityException
protected boolean deleteCommunity(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws java.io.IOException, javax.servlet.ServletException, SecurityException
pRequest
- the dynamo request objectpResponse
- the dynamo response objectjavax.servlet.ServletException
- if something went wrongjava.io.IOException
- if something went wrongSecurityException
public void preDeleteCommunity(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the dynamo request objectpResponse
- the dynamo response objectjavax.servlet.ServletException
- if something went wrongjava.io.IOException
- if something went wrongpublic void postDeleteCommunity(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the dynamo request objectpResponse
- the dynamo response objectjavax.servlet.ServletException
- if something went wrongjava.io.IOException
- if something went wrongpublic boolean handleUpdate(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the servlet's requestpResponse
- the servlet's responsejavax.servlet.ServletException
- if there was an error while executing the codejava.io.IOException
- if there was an error with servlet ioprotected boolean updateCommunity(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws java.io.IOException, javax.servlet.ServletException, SecurityException
pRequest
- the dynamo request objectpResponse
- the dynamo response objectjavax.servlet.ServletException
- if something went wrongjava.io.IOException
- if something went wrongSecurityException
public void preUpdate(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the dynamo request objectpResponse
- the dynamo response objectjavax.servlet.ServletException
- if something went wrongjava.io.IOException
- if something went wrongpublic void postUpdate(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the dynamo request objectpResponse
- the dynamo response objectjavax.servlet.ServletException
- if something went wrongjava.io.IOException
- if something went wrongpublic boolean handleUpdateGearDefinitionFolders(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the servlet's requestpResponse
- the servlet's responsejavax.servlet.ServletException
- if there was an error while executing the codejava.io.IOException
- if there was an error with servlet ioprotected boolean updateGearDefinitionFolders(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws java.io.IOException, javax.servlet.ServletException, SecurityException
pRequest
- the dynamo request objectpResponse
- the dynamo response objectjavax.servlet.ServletException
- if something went wrongjava.io.IOException
- if something went wrongSecurityException
public void preUpdateGearDefinitionFolders(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the dynamo request objectpResponse
- the dynamo response objectjavax.servlet.ServletException
- if something went wrongjava.io.IOException
- if something went wrongpublic void postUpdateGearDefinitionFolders(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the dynamo request objectpResponse
- the dynamo response objectjavax.servlet.ServletException
- if something went wrongjava.io.IOException
- if something went wrongprotected void resetBean()
public boolean handleReset(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws java.io.IOException, javax.servlet.ServletException
java.io.IOException
javax.servlet.ServletException