public class OrgUnitFactory extends ModifiableContentFactory
ContentFactory
for handling OrgUnit
Modifier and Type | Field and Description |
---|---|
private ExportCDMfrManager |
_exportCDMfrManager |
private ExternalizableMetadataProviderExtensionPoint |
_extMetadataProviderEP |
private RootOrgUnitProvider |
_rootOrgUnitProvider |
static String |
ODF_ORGUNIT_ROOT_NODE
The root OrgUnit node name
|
static String |
ORGUNIT_CONTENT_TYPE
OrgUnit content type |
static String |
ORGUNIT_NODETYPE
OrgUnit nodetype for resources collection |
_ametysFactoryExtensionPoint, _manager, _nodetype, _repository, _resolver, _scheme
Constructor and Description |
---|
OrgUnitFactory() |
Modifier and Type | Method and Description |
---|---|
(package private) ExportCDMfrManager |
_getExportCDMfrManager() |
(package private) AmetysObjectResolver |
_getResolver() |
(package private) String |
_getRootOrgUnitUAI() |
(package private) Set<String> |
_getSynchronizedMetadata(OrgUnit orgunit) |
OrgUnit |
getAmetysObject(Node node,
String parentPath)
Creates a
AmetysObject from a persistent JCR node. |
void |
service(ServiceManager manager) |
_getContentTypeExtensionPoint, createChild, getChild, getChildren, hasChild
getCurrentUser, getWorkspaceNode
configure, getAmetysObjectById, getAmetysObjectById, getNode, getNodetypes, getParent, getScheme, hasAmetysObjectForId
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
public static final String ORGUNIT_NODETYPE
OrgUnit
nodetype for resources collectionpublic static final String ORGUNIT_CONTENT_TYPE
OrgUnit
content typepublic static final String ODF_ORGUNIT_ROOT_NODE
private RootOrgUnitProvider _rootOrgUnitProvider
private ExportCDMfrManager _exportCDMfrManager
private ExternalizableMetadataProviderExtensionPoint _extMetadataProviderEP
public OrgUnitFactory()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
service
in class ModifiableContentFactory
ServiceException
public OrgUnit 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.String _getRootOrgUnitUAI()
AmetysObjectResolver _getResolver()
ExportCDMfrManager _getExportCDMfrManager()
Set<String> _getSynchronizedMetadata(OrgUnit orgunit)