public class UserSignupGenerator extends ServiceableGenerator
Modifier and Type | Field and Description |
---|---|
protected CurrentUserProvider |
_currentUserProvider
The current user provider
|
protected PageHelper |
_pageHelper
Page helper
|
protected Repository |
_repository
The repository
|
protected AmetysObjectResolver |
_resolver
The ametys object resolver.
|
protected SiteConfigurationExtensionPoint |
_siteConfiguration
The site configuration EP.
|
protected SkinsManager |
_skinManager
The
SkinsManager |
protected SynchronizeComponent |
_synchronizeComponent
The component for live synchronization
|
protected UserSignupManager |
_userSignupManager
The user signup manager.
|
manager
objectModel, parameters, resolver, source
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
Constructor and Description |
---|
UserSignupGenerator() |
Modifier and Type | Method and Description |
---|---|
private void |
_addNotEmptyAttribute(AttributesImpl attrs,
String name,
String value) |
private boolean |
_isValid(Page page) |
void |
generate() |
protected void |
saxErrors(Multimap<String,I18nizableText> errors)
Generate errors.
|
protected void |
saxWarnings(Boolean publicSignup,
Page signupPage,
Page pwdChangePage,
Page userMainPrefsPage)
Generate errors which could prevent the service from working.
|
void |
service(ServiceManager serviceManager) |
dispose
recycle, setup
setConsumer, setContentHandler, setLexicalHandler
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setConsumer
protected UserSignupManager _userSignupManager
protected SiteConfigurationExtensionPoint _siteConfiguration
protected AmetysObjectResolver _resolver
protected SynchronizeComponent _synchronizeComponent
protected SkinsManager _skinManager
SkinsManager
protected Repository _repository
protected PageHelper _pageHelper
protected CurrentUserProvider _currentUserProvider
public UserSignupGenerator()
public void service(ServiceManager serviceManager) throws ServiceException
service
in interface Serviceable
service
in class ServiceableGenerator
ServiceException
public void generate() throws IOException, SAXException, ProcessingException
private void _addNotEmptyAttribute(AttributesImpl attrs, String name, String value)
protected void saxErrors(Multimap<String,I18nizableText> errors) throws SAXException
errors
- the error list.SAXException
- if an error occurs.protected void saxWarnings(Boolean publicSignup, Page signupPage, Page pwdChangePage, Page userMainPrefsPage) throws SAXException
publicSignup
- indicate if public signup is enabled for the site.signupPage
- the signup page.pwdChangePage
- the lost password page.userMainPrefsPage
- the user main preferences page.SAXException
- if an error occurs.