public class CoursePageFactory extends Object implements AmetysObjectFactory<CoursePage>, Serviceable
AmetysObjectFactory handling ProgramPage.| Modifier and Type | Field and Description |
|---|---|
(package private) OdfPageHandler |
_odfPageHandler |
(package private) AmetysObjectResolver |
_resolver |
| Constructor and Description |
|---|
CoursePageFactory() |
| Modifier and Type | Method and Description |
|---|---|
(package private) String |
_computeLevelsPath(Page root,
Program program)
Compute the path from the root odf page, representing the first and second level pages.
|
CoursePage |
getAmetysObjectById(String id)
|
String |
getScheme()
Returns the protocol of this factory, used to construct unique ids.
|
boolean |
hasAmetysObjectForId(String id)
Return true if the specified id correspond to an existing
AmetysObject. |
void |
service(ServiceManager manager) |
AmetysObjectResolver _resolver
OdfPageHandler _odfPageHandler
public CoursePageFactory()
public void service(ServiceManager manager) throws ServiceException
service in interface ServiceableServiceExceptionpublic CoursePage getAmetysObjectById(String id) throws AmetysRepositoryException
AmetysObjectFactorygetAmetysObjectById in interface AmetysObjectFactory<CoursePage>id - the identifier.AmetysObject.AmetysRepositoryException - if an error occurs.String _computeLevelsPath(Page root, Program program)
root - The odf root pageprogram - The program to computepublic String getScheme()
AmetysObjectFactorygetScheme in interface AmetysObjectFactory<CoursePage>public boolean hasAmetysObjectForId(String id) throws AmetysRepositoryException
AmetysObjectFactoryAmetysObject.
Id are like <protocol>://<protocol-specific-part>.hasAmetysObjectForId in interface AmetysObjectFactory<CoursePage>id - the identifier.AmetysObject.AmetysRepositoryException - if an error occurs.