|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.logging.VariableArgumentApplicationLoggingImpl atg.nucleus.GenericService atg.droplet.EmptyFormHandler atg.droplet.GenericFormHandler atg.droplet.TransactionalFormHandler atg.portal.admin.PortalGenericFormHandler atg.portal.admin.CommunityFormHandler atg.portal.admin.CommunityPrincipalFormHandler
public class CommunityPrincipalFormHandler
This form handler provides convenient methods for 1. Assigning/revoke access to a community to/from a pricipal(user or organization, roles are not supported.) 2. Approve/reject membership requests made for a community.
All handle methods in this form handler mirror a similiar pattern.
Each handleXXX process, all have an associated preXXX and postXXX method.
For example, the handleAssignPrincipal
has an associated
preAssignPrincipal
and postAssignPrincipal
.
These pre/post methods provide an easy way for customer's to extend the
functionality of this form handler.
TransactionalFormHandler
,
PortalGenericFormHandler
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Fields inherited from class atg.droplet.GenericFormHandler |
---|
PARAM_DEFER_FORWARD_OR_REDIRECT, PARAM_USE_FORWARDS |
Fields inherited from class atg.nucleus.GenericService |
---|
SERVICE_INFO_KEY |
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
---|
DEFAULT_LOG_TRACE_STATUS |
Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
Constructor Summary | |
---|---|
CommunityPrincipalFormHandler()
|
Method Summary | |
---|---|
protected boolean |
approveMembershipRequests(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
approveMembershipRequest called by the handler to approve membership requests to a list of ids specified in property approvePrincipalIds |
protected boolean |
assignPrincipals(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
assignPrincipal is called by the handlers to assign principals access to a community. |
protected boolean |
declineMembershipRequests(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
declineMembershipRequest is called by the handlers to decline membership requests for all the users whose ids are specified in declinePrincipalIds property of this form handler |
java.lang.String |
getAccessType()
|
java.lang.String[] |
getApproveDeclineFlags()
|
java.lang.String[] |
getApproveDeclinePrincipalIds()
|
java.lang.String[] |
getApprovePrincipalIds()
|
java.lang.String[] |
getDeclinePrincipalIds()
|
atg.portal.email.EmailSender |
getEmailer()
|
java.lang.String |
getEmailSenderAddress()
|
int |
getNoOfMembershipRequests()
|
java.lang.String |
getPostAcceptedMessage()
|
java.lang.String |
getPostDeclinedMessage()
|
java.lang.String |
getPreMessage()
|
java.lang.String[] |
getPrincipalIds()
|
java.lang.String |
getPrincipalType()
|
java.lang.String |
getRequestEmailSubject()
|
boolean |
getSendUserEmail()
|
boolean |
handleApproveDeclineMembershipRequests(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Called to approve or decline membership requests all the membership requests for users whose ids are specified in approvePrincipalIds is approved while those in declinePrincipalIds are declined. |
boolean |
handleApproveMembershipRequests(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Called to approve membership requests membership requests for all the users whose id is specified in approvePrincipalIds will be approved. |
boolean |
handleAssignPrincipals(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Called to assign a principal to a community. |
boolean |
handleDeclineMembershipRequests(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Called to decline membership requests. |
boolean |
handleUnassignPrincipals(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Called to revoke a principal's access to a community. |
void |
postApproveDeclineMembershipRequests(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Operation called just after component update is finished |
void |
postApproveMembershipRequests(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Operation called just after component update is finished |
void |
postAssignPrincipals(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Operation called just after component update is finished |
void |
postDeclineMembershipRequests(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Operation called just after component update is finished |
void |
postUnassignPrincipals(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Operation called just after component update is finished |
void |
preApproveDeclineMembershipRequests(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Operation called just before component update is started |
void |
preApproveMembershipRequests(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Operation called just before component update is started |
void |
preAssignPrincipals(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Operation called just before component update is started |
void |
preDeclineMembershipRequests(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Operation called just before component update is started |
void |
preUnassignPrincipals(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Operation called just before component update is started |
protected void |
resetBean()
Reset this bean. |
void |
setAccessType(java.lang.String pAccessType)
|
void |
setApproveDeclineFlags(int index,
java.lang.String pApproveDeclineFlag)
|
void |
setApproveDeclinePrincipalIds(int index,
java.lang.String pApproveDeclinePrincipalId)
|
void |
setApprovePrincipalIds(java.lang.String[] pApprovePrincipalIds)
|
void |
setDeclinePrincipalIds(java.lang.String[] pDeclinePrincipalIds)
|
void |
setEmailer(atg.portal.email.EmailSender pEmailer)
|
void |
setEmailSenderAddress(java.lang.String pEmailSenderAddress)
|
void |
setNoOfMembershipRequests(int pNoOfMembershipRequests)
|
void |
setPostAcceptedMessage(java.lang.String pPostAcceptedMessage)
|
void |
setPostDeclinedMessage(java.lang.String pPostDeclinedMessage)
|
void |
setPreMessage(java.lang.String pPreMessage)
|
void |
setPrincipalIds(java.lang.String[] pPrincipalIds)
|
void |
setPrincipalType(java.lang.String pPrincipalType)
|
void |
setRequestEmailSubject(java.lang.String pRequestEmailSubject)
|
void |
setSendUserEmail(boolean pSendUserEmail)
|
protected boolean |
unassignPrincipals(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
unassignPrincipal is called by the handlers to revoke access to a community from a pricipals. |
Methods inherited from class atg.droplet.EmptyFormHandler |
---|
afterGet, beforeGet |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public CommunityPrincipalFormHandler()
Method Detail |
---|
public java.lang.String getPrincipalType()
public void setPrincipalType(java.lang.String pPrincipalType)
public java.lang.String[] getPrincipalIds()
public void setPrincipalIds(java.lang.String[] pPrincipalIds)
public java.lang.String getAccessType()
public void setAccessType(java.lang.String pAccessType)
public void setEmailer(atg.portal.email.EmailSender pEmailer)
public atg.portal.email.EmailSender getEmailer()
public void setEmailSenderAddress(java.lang.String pEmailSenderAddress)
public java.lang.String getEmailSenderAddress()
public void setPostAcceptedMessage(java.lang.String pPostAcceptedMessage)
public java.lang.String getPostAcceptedMessage()
public void setPostDeclinedMessage(java.lang.String pPostDeclinedMessage)
public java.lang.String getPostDeclinedMessage()
public void setPreMessage(java.lang.String pPreMessage)
public java.lang.String getPreMessage()
public void setRequestEmailSubject(java.lang.String pRequestEmailSubject)
public java.lang.String getRequestEmailSubject()
public void setSendUserEmail(boolean pSendUserEmail)
public boolean getSendUserEmail()
public java.lang.String[] getDeclinePrincipalIds()
public void setDeclinePrincipalIds(java.lang.String[] pDeclinePrincipalIds)
public int getNoOfMembershipRequests()
public void setNoOfMembershipRequests(int pNoOfMembershipRequests)
public java.lang.String[] getApprovePrincipalIds()
public void setApprovePrincipalIds(java.lang.String[] pApprovePrincipalIds)
public java.lang.String[] getApproveDeclinePrincipalIds()
public void setApproveDeclinePrincipalIds(int index, java.lang.String pApproveDeclinePrincipalId)
public java.lang.String[] getApproveDeclineFlags()
public void setApproveDeclineFlags(int index, java.lang.String pApproveDeclineFlag)
public boolean handleAssignPrincipals(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the servlet's requestpResponse
- the servlet's response
javax.servlet.ServletException
- if there was an error while executing the code
java.io.IOException
- if there was an error with servlet ioprotected boolean assignPrincipals(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the dynamo request objectpResponse
- the dynamo response object
javax.servlet.ServletException
- if something went wrong
java.io.IOException
- if something went wrongpublic void preAssignPrincipals(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the dynamo request objectpResponse
- the dynamo response object
javax.servlet.ServletException
- if something went wrong
java.io.IOException
- if something went wrongpublic void postAssignPrincipals(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the dynamo request objectpResponse
- the dynamo response object
javax.servlet.ServletException
- if something went wrong
java.io.IOException
- if something went wrongpublic boolean handleUnassignPrincipals(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the servlet's requestpResponse
- the servlet's response
javax.servlet.ServletException
- if there was an error while executing the code
java.io.IOException
- if there was an error with servlet ioprotected boolean unassignPrincipals(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the dynamo request objectpResponse
- the dynamo response object
javax.servlet.ServletException
- if something went wrong
java.io.IOException
- if something went wrongpublic void preUnassignPrincipals(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the dynamo request objectpResponse
- the dynamo response object
javax.servlet.ServletException
- if something went wrong
java.io.IOException
- if something went wrongpublic void postUnassignPrincipals(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the dynamo request objectpResponse
- the dynamo response object
javax.servlet.ServletException
- if something went wrong
java.io.IOException
- if something went wrongpublic boolean handleApproveDeclineMembershipRequests(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the servlet's requestpResponse
- the servlet's response
javax.servlet.ServletException
- if there was an error while executing the code
java.io.IOException
- if there was an error with servlet iopublic boolean handleApproveMembershipRequests(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the servlet's requestpResponse
- the servlet's response
javax.servlet.ServletException
- if there was an error while executing the code
java.io.IOException
- if there was an error with servlet iopublic boolean handleDeclineMembershipRequests(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the servlet's requestpResponse
- the servlet's response
javax.servlet.ServletException
- if there was an error while executing the code
java.io.IOException
- if there was an error with servlet ioprotected boolean declineMembershipRequests(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the dynamo request objectpResponse
- the dynamo response object
javax.servlet.ServletException
- if something went wrong
java.io.IOException
- if something went wrongprotected boolean approveMembershipRequests(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the dynamo request objectpResponse
- the dynamo response object
javax.servlet.ServletException
- if something went wrong
java.io.IOException
- if something went wrongpublic void preDeclineMembershipRequests(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the dynamo request objectpResponse
- the dynamo response object
javax.servlet.ServletException
- if something went wrong
java.io.IOException
- if something went wrongpublic void postDeclineMembershipRequests(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the dynamo request objectpResponse
- the dynamo response object
javax.servlet.ServletException
- if something went wrong
java.io.IOException
- if something went wrongpublic void preApproveMembershipRequests(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the dynamo request objectpResponse
- the dynamo response object
javax.servlet.ServletException
- if something went wrong
java.io.IOException
- if something went wrongpublic void postApproveMembershipRequests(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the dynamo request objectpResponse
- the dynamo response object
javax.servlet.ServletException
- if something went wrong
java.io.IOException
- if something went wrongpublic void preApproveDeclineMembershipRequests(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the dynamo request objectpResponse
- the dynamo response object
javax.servlet.ServletException
- if something went wrong
java.io.IOException
- if something went wrongpublic void postApproveDeclineMembershipRequests(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the dynamo request objectpResponse
- the dynamo response object
javax.servlet.ServletException
- if something went wrong
java.io.IOException
- if something went wrongprotected void resetBean()
resetBean
in class CommunityFormHandler
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |