public abstract class AbstractDAO extends AbstractLogEnabled implements Serviceable, Component, Contextualizable
| Modifier and Type | Field and Description |
|---|---|
protected Context |
_cocoonContext
The cocoon context
|
protected Context |
_context
The Avalon context
|
protected CurrentUserProvider |
_currentUserProvider
The current user provider.
|
protected JSONUtils |
_jsonUtils
JSON helper
|
protected ObservationManager |
_observationManager
Observer manager.
|
protected AmetysObjectResolver |
_resolver
Ametys object resolver.
|
protected SiteManager |
_siteManager
The site manager
|
protected UploadManager |
_uploadManager
Manager for retrieving uploaded files
|
| Constructor and Description |
|---|
AbstractDAO() |
| Modifier and Type | Method and Description |
|---|---|
protected UserIdentity |
_getCurrentUser()
Provides the current user.
|
void |
contextualize(Context context) |
protected Map<String,Object> |
getPictureInfo(AbstractSurveyElement elmt)
Get the information about picture
|
protected ModifiableTraversableAmetysObject |
getSurveyRootNode(String siteName,
String lang)
Get the root node for surveys
|
void |
service(ServiceManager serviceManager) |
protected void |
setPicture(AbstractSurveyElement elmt,
String valueAsStr)
Set the picture
|
protected void |
updateReferencesAfterCopy(Survey originalSurvey,
Survey createdSurvey)
Update references after a survey copy
|
protected void |
updateReferencesAfterCopy(Survey originalSurvey,
Survey createdSurvey,
SurveyPage createdPage)
Update references after copy
|
protected void |
updateReferencesAfterCopy(Survey originalSurvey,
Survey createdSurvey,
SurveyQuestion createdQuestion)
Update references after copy
|
getLogger, setLoggerprotected AmetysObjectResolver _resolver
protected SiteManager _siteManager
protected ObservationManager _observationManager
protected CurrentUserProvider _currentUserProvider
protected UploadManager _uploadManager
protected JSONUtils _jsonUtils
protected Context _cocoonContext
public AbstractDAO()
public void service(ServiceManager serviceManager) throws ServiceException
service in interface ServiceableServiceExceptionpublic void contextualize(Context context) throws ContextException
contextualize in interface ContextualizableContextExceptionprotected ModifiableTraversableAmetysObject getSurveyRootNode(String siteName, String lang) throws RepositoryException
siteName - the site namelang - the languageRepositoryException - if an error occurs when manipulating the repositoryprotected UserIdentity _getCurrentUser()
null.protected void updateReferencesAfterCopy(Survey originalSurvey, Survey createdSurvey)
originalSurvey - The original surveycreatedSurvey - The created surveyprotected void updateReferencesAfterCopy(Survey originalSurvey, Survey createdSurvey, SurveyPage createdPage)
originalSurvey - The original surveycreatedSurvey - The created surveycreatedPage - The created survey pageprotected void updateReferencesAfterCopy(Survey originalSurvey, Survey createdSurvey, SurveyQuestion createdQuestion)
originalSurvey - The original surveycreatedSurvey - The created surveycreatedQuestion - The created survey questionprotected void setPicture(AbstractSurveyElement elmt, String valueAsStr)
elmt - The survey elementvalueAsStr - The value as Stringprotected Map<String,Object> getPictureInfo(AbstractSurveyElement elmt)
elmt - The survey element