public class CoursePartFactory extends ModifiableContentFactory
CoursePartFactory for handling CoursePart| Modifier and Type | Field and Description |
|---|---|
private RootOrgUnitProvider |
_rootOrgUnitProvider |
static String |
COURSE_PART_CONTENT_TYPE
CoursePart content type |
static String |
COURSE_PART_NODETYPE
CoursePart nodetype for resources collection |
_ametysFactoryExtensionPoint, _manager, _nodetype, _repository, _resolver, _scheme| Constructor and Description |
|---|
CoursePartFactory() |
| Modifier and Type | Method and Description |
|---|---|
(package private) AmetysObjectResolver |
_getResolver() |
(package private) String |
_getRootOrgUnitRNE() |
CoursePart |
getAmetysObject(Node node,
String parentPath)
Creates a
AmetysObject from a persistent JCR node. |
void |
service(ServiceManager manager) |
_getContentTypeExtensionPoint, createChild, getChild, getChildren, hasChildgetCurrentUser, getWorkspaceNodeconfigure, getAmetysObjectById, getAmetysObjectById, getNode, getNodetypes, getParent, getScheme, hasAmetysObjectForIdenableLogging, getLogger, setupLogger, setupLogger, setupLoggerpublic static final String COURSE_PART_NODETYPE
CoursePart nodetype for resources collectionpublic static final String COURSE_PART_CONTENT_TYPE
CoursePart content typeprivate RootOrgUnitProvider _rootOrgUnitProvider
public CoursePartFactory()
public void service(ServiceManager manager) throws ServiceException
service in interface Serviceableservice in class ModifiableContentFactoryServiceExceptionpublic CoursePart getAmetysObject(Node node, String parentPath) throws AmetysRepositoryException
JCRAmetysObjectFactoryAmetysObject from a persistent JCR node.getAmetysObject in interface JCRAmetysObjectFactory<SimpleAmetysObject>getAmetysObject in class ModifiableContentFactorynode - the JCR node to use.parentPath - the parent Path in the Ametys hierarchy,
may be null if not known yet.AmetysRepositoryException - if an error occurs.String _getRootOrgUnitRNE()
AmetysObjectResolver _getResolver()