Class SurveyElementFactory
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.ametys.plugins.repository.jcr.SimpleAmetysObjectFactory
-
- org.ametys.plugins.repository.jcr.DefaultTraversableAmetysObjectFactory
-
- org.ametys.plugins.survey.repository.SurveyElementFactory
-
- All Implemented Interfaces:
AmetysObjectFactory<SimpleAmetysObject>
,JCRAmetysObjectFactory<SimpleAmetysObject>
,Component
,Configurable
,LogEnabled
,Serviceable
- Direct Known Subclasses:
SurveyFactory
,SurveyPageFactory
,SurveyQuestionFactory
public class SurveyElementFactory extends DefaultTraversableAmetysObjectFactory
AmetysObjectFactory
for creatingAbstractSurveyElement
.
-
-
Field Summary
Fields Modifier and Type Field Description private SurveyElementDataTypeExtensionPoint
_surveyElementDataTypeExtensionPoint
-
Fields inherited from class org.ametys.plugins.repository.jcr.SimpleAmetysObjectFactory
_ametysFactoryExtensionPoint, _manager, _nodetype, _repository, _resolver, _scheme
-
-
Constructor Summary
Constructors Constructor Description SurveyElementFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SurveyElementDataTypeExtensionPoint
getSurveyElementDataTypeExtensionPoint()
Retrieves the extension point holding allRepositoryElementType
classes for survey elements.void
service(ServiceManager manager)
-
Methods inherited from class org.ametys.plugins.repository.jcr.DefaultTraversableAmetysObjectFactory
createChild, getAmetysObject, getChild, getChildren, hasChild
-
Methods inherited from class org.ametys.plugins.repository.jcr.SimpleAmetysObjectFactory
configure, getAmetysObjectById, getAmetysObjectById, getNode, getNodetypes, getParent, getScheme, getWorkspaceNode, hasAmetysObjectForId
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Field Detail
-
_surveyElementDataTypeExtensionPoint
private SurveyElementDataTypeExtensionPoint _surveyElementDataTypeExtensionPoint
-
-
Constructor Detail
-
SurveyElementFactory
public SurveyElementFactory()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classSimpleAmetysObjectFactory
- Throws:
ServiceException
-
getSurveyElementDataTypeExtensionPoint
public SurveyElementDataTypeExtensionPoint getSurveyElementDataTypeExtensionPoint()
Retrieves the extension point holding allRepositoryElementType
classes for survey elements.- Returns:
- the extension point holding all
RepositoryElementType
classes for survey elements.
-
-