public class VirtualPostPageFactory extends Object implements AmetysObjectFactory<VirtualPostPage>, Serviceable
AmetysObjectFactory
handling VirtualPostPage
.Modifier and Type | Field and Description |
---|---|
private PageDataTypeExtensionPoint |
_pageDataTypeExtensionPoint |
private AmetysObjectResolver |
_resolver |
private SkinsManager |
_skinsManager |
Constructor and Description |
---|
VirtualPostPageFactory() |
Modifier and Type | Method and Description |
---|---|
VirtualPostPage |
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) |
private AmetysObjectResolver _resolver
private SkinsManager _skinsManager
private PageDataTypeExtensionPoint _pageDataTypeExtensionPoint
public VirtualPostPageFactory()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public String getScheme()
AmetysObjectFactory
getScheme
in interface AmetysObjectFactory<VirtualPostPage>
public VirtualPostPage getAmetysObjectById(String id) throws AmetysRepositoryException
AmetysObjectFactory
getAmetysObjectById
in interface AmetysObjectFactory<VirtualPostPage>
id
- the identifier.AmetysObject
.AmetysRepositoryException
- if an error occurs.public boolean hasAmetysObjectForId(String id) throws AmetysRepositoryException
AmetysObjectFactory
AmetysObject
.
Id are like <protocol>://<protocol-specific-part>
.hasAmetysObjectForId
in interface AmetysObjectFactory<VirtualPostPage>
id
- the identifier.AmetysObject
.AmetysRepositoryException
- if an error occurs.