public class LeadFormsCreator extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ADD_MEMBERS |
static String |
AUTHORIZABLE_ID |
static String |
CQ_AUTHORIZABLE_CATEGORY |
static String |
CREATE_GROUP |
static String |
CREATE_USER |
static String |
EMAIL |
static String |
ERR_01 |
static String |
ERR_02 |
static String |
ERR_03 |
static String |
ERR_04 |
static String |
FORMSTART |
static String |
GROUP_NAME |
static String |
LIBS_GRANITE_SECURITY_POST_AUTHORIZABLES |
static String |
MCM |
static String |
PROFILE_PATH |
static String |
REP_PASSWORD |
static String |
REP_USER_ID |
Constructor and Description |
---|
LeadFormsCreator() |
Modifier and Type | Method and Description |
---|---|
void |
createAuthLead(SlingHttpServletRequest request,
SlingHttpServletResponse response) |
String |
createPassword()
Deprecated.
Deprecated since version 1.2.4 of the cq-mcm-landingpage bundle
and no longer used. Leads may be created without having a password specified.
|
void |
createUser(Resource resource,
Page page,
javax.servlet.http.HttpServletRequest request)
Deprecated.
|
static Iterator<Resource> |
getFormElements(Resource formResource)
Return all form elements for this form.
|
static void |
printTitle(String fieldId,
String title,
boolean required,
boolean hideLabel,
String className,
Writer out)
Prints lead form title with style provided in "className"
|
void |
redirectUrl(Page containingPage,
String extension,
String errorCode,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This method is used to redirect the user to the url provided by author in lead form.
|
void |
removeLeadFromGroup(SlingHttpServletRequest request) |
void |
unSubscribe() |
void |
unsubscribeUser(Resource resource,
Page page,
SlingHttpServletRequest slingRequest,
javax.servlet.http.HttpServletRequest request)
Deprecated.
|
public static final String FORMSTART
public static final String REP_USER_ID
public static final String EMAIL
public static final String AUTHORIZABLE_ID
public static final String REP_PASSWORD
public static final String CQ_AUTHORIZABLE_CATEGORY
public static final String MCM
public static final String GROUP_NAME
public static final String CREATE_GROUP
public static final String CREATE_USER
public static final String ADD_MEMBERS
public static final String LIBS_GRANITE_SECURITY_POST_AUTHORIZABLES
public static final String ERR_01
public static final String ERR_02
public static final String ERR_03
public static final String ERR_04
public static final String PROFILE_PATH
public static Iterator<Resource> getFormElements(Resource formResource)
formResource
- public static void printTitle(String fieldId, String title, boolean required, boolean hideLabel, String className, Writer out) throws IOException
fieldId
- title
- required
- hideLabel
- className
- out
- IOException
@Deprecated public void createUser(Resource resource, Page page, javax.servlet.http.HttpServletRequest request) throws javax.servlet.ServletException, IOException
createAuthLead(org.apache.sling.api.SlingHttpServletRequest, org.apache.sling.api.SlingHttpServletResponse)
resource
- page
- request
- javax.servlet.ServletException
IOException
public void redirectUrl(Page containingPage, String extension, String errorCode, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
containingPage
- extension
- isError
- request
- response
- IOException
javax.servlet.ServletException
public void unSubscribe()
@Deprecated public void unsubscribeUser(Resource resource, Page page, SlingHttpServletRequest slingRequest, javax.servlet.http.HttpServletRequest request) throws javax.servlet.ServletException, IOException
removeLeadFromGroup(org.apache.sling.api.SlingHttpServletRequest)
resource
- page
- slingRequest
- request
- javax.servlet.ServletException
IOException
public String createPassword()
public void createAuthLead(SlingHttpServletRequest request, SlingHttpServletResponse response) throws javax.servlet.ServletException, IOException, RepositoryException
javax.servlet.ServletException
IOException
RepositoryException
public void removeLeadFromGroup(SlingHttpServletRequest request) throws javax.servlet.ServletException, IOException, RepositoryException
javax.servlet.ServletException
IOException
RepositoryException
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"