public class ProgramFactory extends ProgramPartFactory
ProgramFactory for handling Program| Modifier and Type | Field and Description |
|---|---|
private CatalogsManager |
_catalogsManager |
private ExportCDMfrManager |
_exportCDMfrManager |
private ExternalizableMetadataProviderExtensionPoint |
_extMetadataProviderEP |
private WorkflowProvider |
_workflowProvider |
static String |
PROGRAM_CONTENT_TYPE
Program content type |
static String |
PROGRAM_NODETYPE
Program nodetype for resources collection |
_ametysFactoryExtensionPoint, _manager, _nodetype, _repository, _resolver, _scheme| Constructor and Description |
|---|
ProgramFactory() |
_getRootOrgUnitRNEcreateChild, getChild, getChildren, hasChildgetCurrentUser, getWorkspaceNodeconfigure, getAmetysObjectById, getAmetysObjectById, getNode, getNodetypes, getParent, getScheme, hasAmetysObjectForIdenableLogging, getLogger, setupLogger, setupLogger, setupLoggerpublic static final String PROGRAM_NODETYPE
Program nodetype for resources collectionpublic static final String PROGRAM_CONTENT_TYPE
Program content typeprivate CatalogsManager _catalogsManager
private ExportCDMfrManager _exportCDMfrManager
private WorkflowProvider _workflowProvider
private ExternalizableMetadataProviderExtensionPoint _extMetadataProviderEP
public ProgramFactory()
public void service(ServiceManager manager) throws ServiceException
service in interface Serviceableservice in class ProgramPartFactoryServiceExceptionpublic AbstractProgram 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.public <A extends AmetysObject> A getChild(JCRTraversableAmetysObject object, String path) throws AmetysRepositoryException, UnknownAmetysObjectException
AmetysObject at the given subPath, relative to the
given DefaultTraversableAmetysObject.A - the actual type of AmetysObject.object - the context DefaultTraversableAmetysObject.path - the sub path. Cannot be null, empty or absolute.AmetysObject at the given subPath, relative to the
given DefaultTraversableAmetysObject.AmetysRepositoryException - if an error occurs.UnknownAmetysObjectException - if no such object exists.public <A extends AmetysObject> AmetysObjectIterable<A> getChildren(JCRTraversableAmetysObject object) throws AmetysRepositoryException
DefaultTraversableAmetysObject.A - the actual type of AmetysObjectsobject - a DefaultTraversableAmetysObject.AmetysRepositoryException - if an error occurs.public boolean hasChild(JCRTraversableAmetysObject object, String name) throws AmetysRepositoryException
object - the context object.name - the name to test.true is the given object has a child with the given
name, false otherwise.AmetysRepositoryException - if an error occurs.public <A extends AmetysObject> A createChild(JCRTraversableAmetysObject object, String name, String type) throws AmetysRepositoryException
A - the actual type of AmetysObject.object - the parent AmetysObject.name - the new object's name.type - the new object's type.AmetysObject.AmetysRepositoryException - if an error occurs.AmetysObjectResolver _getResolver()
_getResolver in class ProgramPartFactoryExportCDMfrManager _getExportCDMfrManager()
CatalogsManager _getCatalogEnumerationHelper()
WorkflowProvider _getWorkflowProvider()
Set<String> _getSynchronizedMetadata(AbstractProgram abstractProgram)
void recreateContentWorkflow(Node contentNode)
private void _createContentWorkflow(Node contentNode, String workflowName) throws com.opensymphony.workflow.WorkflowException, RepositoryException
com.opensymphony.workflow.WorkflowExceptionRepositoryException