public class CourseFactory extends ModifiableContentFactory
CourseFactory
for handling Course
Modifier and Type | Field and Description |
---|---|
private ExportCDMfrManager |
_exportCDMfrManager |
private ExternalizableMetadataProviderExtensionPoint |
_extMetadataProviderEP |
private RootOrgUnitProvider |
_rootOrgUnitProvider |
static String |
COURSE_CONTENT_TYPE
Course content type |
static String |
COURSE_NODETYPE
Course nodetype for resources collection |
_ametysFactoryExtensionPoint, _manager, _nodetype, _repository, _resolver, _scheme
Constructor and Description |
---|
CourseFactory() |
Modifier and Type | Method and Description |
---|---|
(package private) ExportCDMfrManager |
_getExportCDMfrManager() |
(package private) AmetysObjectResolver |
_getResolver() |
(package private) String |
_getRootOrgUnitRNE() |
(package private) Set<String> |
_getSynchronizedMetadata(Course course) |
CourseList |
createChild(JCRTraversableAmetysObject object,
String name,
String type)
Creates a child to the given object.
|
Course |
getAmetysObject(Node node,
String parentPath)
Creates a
AmetysObject from a persistent JCR node. |
(package private) CourseList |
getChild(String path,
Course object) |
(package private) AmetysObjectIterable<AmetysObject> |
getChildren(Course object) |
(package private) boolean |
hasChild(String name,
Course object) |
void |
service(ServiceManager manager) |
createChild, getChild, getChildren, hasChild
getCurrentUser, getWorkspaceNode
configure, getAmetysObjectById, getAmetysObjectById, getNode, getNodetypes, getParent, getScheme, hasAmetysObjectForId
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
public static final String COURSE_NODETYPE
Course
nodetype for resources collectionpublic static final String COURSE_CONTENT_TYPE
Course
content typeprivate RootOrgUnitProvider _rootOrgUnitProvider
private ExportCDMfrManager _exportCDMfrManager
private ExternalizableMetadataProviderExtensionPoint _extMetadataProviderEP
public CourseFactory()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
service
in class ModifiableContentFactory
ServiceException
public Course getAmetysObject(Node node, String parentPath) throws AmetysRepositoryException
JCRAmetysObjectFactory
AmetysObject
from a persistent JCR node.getAmetysObject
in interface JCRAmetysObjectFactory<SimpleAmetysObject>
getAmetysObject
in class ModifiableContentFactory
node
- 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.public CourseList createChild(JCRTraversableAmetysObject object, String name, String type) throws AmetysRepositoryException
object
- the parent AmetysObject
.name
- the new object's name.type
- the new object's type.AmetysObject
.AmetysRepositoryException
- if an error occurs.CourseList getChild(String path, Course object) throws AmetysRepositoryException, UnknownAmetysObjectException
boolean hasChild(String name, Course object) throws AmetysRepositoryException
AmetysRepositoryException
AmetysObjectIterable<AmetysObject> getChildren(Course object) throws AmetysRepositoryException
AmetysRepositoryException
String _getRootOrgUnitRNE()
AmetysObjectResolver _getResolver()
ExportCDMfrManager _getExportCDMfrManager()
Set<String> _getSynchronizedMetadata(Course course)