Package org.ametys.odf.program
Class SubProgramFactory
- java.lang.Object
-
- All Implemented Interfaces:
AmetysObjectFactory<SimpleAmetysObject>
,JCRAmetysObjectFactory<SimpleAmetysObject>
,Component
,Configurable
,LogEnabled
,Serviceable
public class SubProgramFactory extends ProgramFactory
SubProgramFactory
for handlingProgram
-
-
Field Summary
Fields Modifier and Type Field Description static String
SUBPROGRAM_CONTENT_TYPE
Program
content typestatic String
SUBPROGRAM_NODETYPE
Program
nodetype for resources collection-
Fields inherited from class org.ametys.odf.program.ProgramFactory
PROGRAM_CONTENT_TYPE, PROGRAM_NODETYPE
-
Fields inherited from class org.ametys.plugins.repository.jcr.SimpleAmetysObjectFactory
_ametysFactoryExtensionPoint, _manager, _nodetype, _repository, _resolver, _scheme
-
-
Constructor Summary
Constructors Constructor Description SubProgramFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SubProgram
getAmetysObject(Node node, String parentPath)
Creates aAmetysObject
from a persistent JCR node.-
Methods inherited from class org.ametys.odf.program.ProgramFactory
_getCatalogEnumerationHelper, _getExportCDMfrManager, _getSynchronizedMetadata, _getWorkflowProvider, createChild, getChild, getChildren, hasChild, recreateContentWorkflow, service
-
Methods inherited from class org.ametys.odf.program.ProgramPartFactory
_getRootOrgUnitRNE
-
Methods inherited from class org.ametys.cms.repository.ContentFactory
_getContentTypeExtensionPoint, createChild, getChild, getChildren, hasChild
-
Methods inherited from class org.ametys.plugins.repository.jcr.DefaultAmetysObjectFactory
getCurrentUser, getUnversionedDataTypeExtensionPoint, getWorkspaceNode
-
Methods inherited from class org.ametys.plugins.repository.jcr.SimpleAmetysObjectFactory
configure, getAmetysObjectById, getAmetysObjectById, getNode, getNodetypes, getParent, getScheme, hasAmetysObjectForId
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Field Detail
-
SUBPROGRAM_NODETYPE
public static final String SUBPROGRAM_NODETYPE
Program
nodetype for resources collection- See Also:
- Constant Field Values
-
SUBPROGRAM_CONTENT_TYPE
public static final String SUBPROGRAM_CONTENT_TYPE
Program
content type- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SubProgramFactory
public SubProgramFactory()
-
-
Method Detail
-
getAmetysObject
public SubProgram getAmetysObject(Node node, String parentPath) throws AmetysRepositoryException
Description copied from interface:JCRAmetysObjectFactory
Creates aAmetysObject
from a persistent JCR node.- Specified by:
getAmetysObject
in interfaceJCRAmetysObjectFactory<SimpleAmetysObject>
- Overrides:
getAmetysObject
in classProgramFactory
- Parameters:
node
- the JCR node to use.parentPath
- the parent Path in the Ametys hierarchy, may benull
if not known yet.- Returns:
- the object.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
-