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
Modifier and TypeFieldDescriptionprotected ContentHelper
The content helperprotected CurrentUserProvider
The current user providerprotected PageHelper
Page helperprotected javax.jcr.Repository
The repositoryprotected AmetysObjectResolver
The ametys object resolver.protected RightManager
Right managerprotected SiteManager
The site Manager.protected SkinsManager
TheSkinsManager
protected SourceResolver
The source resolverprotected SynchronizeComponent
The component for live synchronizationprotected UserSignupManager
The user signup manager.Fields inherited from class org.apache.cocoon.generation.ServiceableGenerator
manager
Fields inherited from class org.apache.cocoon.generation.AbstractGenerator
objectModel, parameters, resolver, source
Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
-
Constructor Summary
-
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 valuevoid
generate()
protected void
saxAdditionalInformation
(String siteName, String lang, ZoneItem zoneItem) SAX additional informationprotected void
saxContent
(String contentId, String rootTag) SAX the content of GTUprotected void
saxErrors
(Multimap<String, I18nizableText> errors) Generate errors.protected void
saxSuccessContentIfNeeded
(ZoneItem zoneItem) SAX the success content if neededprotected void
saxTOSIfNeeded
(ZoneItem zoneItem) SAX the general term of use content if neededprotected void
saxUserInputs
(Request request, ZoneItem zoneItem) SAX the user inputsprotected void
saxWarnings
(UserSignupManager.SignupType signupType, Page signupPage, Page pwdChangePage, Page tosPage, Page successPage, Content tosContent, Content successContent) Generate errors which could prevent the service from working.void
service
(ServiceManager serviceManager) Methods inherited from class org.apache.cocoon.generation.ServiceableGenerator
dispose
Methods inherited from class org.apache.cocoon.generation.AbstractGenerator
recycle, setup
Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer
setConsumer, setContentHandler, setLexicalHandler
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
service
in interfaceServiceable
- Overrides:
service
in 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.
-