Package org.ametys.web.usermanagement
Class UserSignupGenerator
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.xml.AbstractXMLProducer
org.apache.cocoon.generation.AbstractGenerator
org.apache.cocoon.generation.ServiceableGenerator
org.ametys.web.usermanagement.UserSignupGenerator
- All Implemented Interfaces:
Poolable,Recyclable,Disposable,Component,LogEnabled,Serviceable,Generator,SitemapModelComponent,XMLProducer
- Direct Known Subclasses:
UserPasswordGenerator,UserPasswordValidateGenerator,UserSignupGenerator,UserSignupValidateGenerator
Generate information to render the user signup service.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ContentHelperThe content helperprotected CurrentUserProviderThe current user providerprotected PageHelperPage helperprotected javax.jcr.RepositoryThe repositoryprotected AmetysObjectResolverThe ametys object resolver.protected RightManagerRight managerprotected SiteManagerThe site Manager.protected SkinsManagerTheSkinsManagerprotected SourceResolverThe source resolverprotected SynchronizeComponentThe component for live synchronizationprotected UserSignupManagerThe user signup manager.Fields inherited from class org.apache.cocoon.generation.ServiceableGenerator
managerFields inherited from class org.apache.cocoon.generation.AbstractGenerator
objectModel, parameters, resolver, sourceFields inherited from class org.apache.cocoon.xml.AbstractXMLProducer
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void_saxNotEmptyParameter(Request request, String paramName) Sax a non-empty request parameterprotected void_saxNotEmptyValue(String tagName, String value) Sax a non-empty valuevoidgenerate()protected voidsaxAdditionalInformation(String siteName, String lang, ZoneItem zoneItem) SAX additional informationprotected voidsaxContent(String contentId, String rootTag) SAX the content of GTUprotected voidsaxErrors(Multimap<String, I18nizableText> errors) Generate errors.protected voidsaxSuccessContentIfNeeded(ZoneItem zoneItem) SAX the success content if neededprotected voidsaxTOSIfNeeded(ZoneItem zoneItem) SAX the general term of use content if neededprotected voidsaxUserInputs(Request request, ZoneItem zoneItem) SAX the user inputsprotected voidsaxWarnings(UserSignupManager.SignupType signupType, Page signupPage, Page pwdChangePage, Page tosPage, Page successPage, Content tosContent, Content successContent) Generate errors which could prevent the service from working.voidservice(ServiceManager serviceManager) Methods inherited from class org.apache.cocoon.generation.ServiceableGenerator
disposeMethods inherited from class org.apache.cocoon.generation.AbstractGenerator
recycle, setupMethods inherited from class org.apache.cocoon.xml.AbstractXMLProducer
setConsumer, setContentHandler, setLexicalHandlerMethods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLoggerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cocoon.xml.XMLProducer
setConsumer
-
Field Details
-
_userSignupManager
The user signup manager. -
_siteManager
The site Manager. -
_resolver
The ametys object resolver. -
_synchronizeComponent
The component for live synchronization -
_skinManager
TheSkinsManager -
_repository
The repository -
_pageHelper
Page helper -
_contentHelper
The content helper -
_currentUserProvider
The current user provider -
_srcResolver
The source resolver -
_rightManager
Right manager
-
-
Constructor Details
-
UserSignupGenerator
public UserSignupGenerator()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classServiceableGenerator- Throws:
ServiceException
-
generate
-
saxUserInputs
SAX the user inputs- Parameters:
request- the requestzoneItem- the zone item holding the service- Throws:
SAXException- if an error occurs
-
_saxNotEmptyParameter
Sax a non-empty request parameter- Parameters:
request- the requestparamName- the parameter name- Throws:
SAXException- if an error occurs
-
_saxNotEmptyValue
Sax a non-empty value- Parameters:
tagName- the tag namevalue- the value- Throws:
SAXException- if an error occurs
-
saxAdditionalInformation
protected void saxAdditionalInformation(String siteName, String lang, ZoneItem zoneItem) throws SAXException SAX additional information- Parameters:
siteName- The site namelang- The content languagezoneItem- The zone item holding the service- Throws:
SAXException- if an error occurs
-
saxTOSIfNeeded
protected void saxTOSIfNeeded(ZoneItem zoneItem) throws MalformedURLException, SAXException, IOException SAX the general term of use content if needed- Parameters:
zoneItem- The current zone item- Throws:
MalformedURLException- if an error occursSAXException- if an error occursIOException- if an error occurs
-
saxSuccessContentIfNeeded
protected void saxSuccessContentIfNeeded(ZoneItem zoneItem) throws MalformedURLException, SAXException, IOException SAX the success content if needed- Parameters:
zoneItem- The current zone item- Throws:
MalformedURLException- if an error occursSAXException- if an error occursIOException- if an error occurs
-
saxContent
protected void saxContent(String contentId, String rootTag) throws SAXException, MalformedURLException, IOException SAX the content of GTU- Parameters:
contentId- the id of GTU contentrootTag- The root XML tag- Throws:
SAXException- if an error occursIOException- if failed to sax TGU contentMalformedURLException- if failed to sax TGU content
-
saxErrors
Generate errors.- Parameters:
errors- the error list.- Throws:
SAXException- if an error occurs.
-
saxWarnings
protected void saxWarnings(UserSignupManager.SignupType signupType, Page signupPage, Page pwdChangePage, Page tosPage, Page successPage, Content tosContent, Content successContent) throws SAXException Generate errors which could prevent the service from working.- Parameters:
signupType- the type of signup enabled for the sitesignupPage- the signup page.pwdChangePage- the lost password page. Can be null.tosPage- the page of terms of use. Can be null.successPage- the page of success. Can be null.tosContent- the content for terms of use. Can be null.successContent- the content for success. Can be null.- Throws:
SAXException- if an error occurs.
-