Class VirtualPostPageFactory
- java.lang.Object
-
- org.ametys.plugins.blog.repository.VirtualPostPageFactory
-
- All Implemented Interfaces:
AmetysObjectFactory<VirtualPostPage>
,Component
,Serviceable
public class VirtualPostPageFactory extends Object implements AmetysObjectFactory<VirtualPostPage>, Serviceable
AmetysObjectFactory
handlingVirtualPostPage
.
-
-
Field Summary
Fields Modifier and Type Field Description private PageDataTypeExtensionPoint
_pageDataTypeExtensionPoint
private AmetysObjectResolver
_resolver
private SkinsManager
_skinsManager
-
Constructor Summary
Constructors Constructor Description VirtualPostPageFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 existingAmetysObject
.void
service(ServiceManager manager)
-
-
-
Field Detail
-
_resolver
private AmetysObjectResolver _resolver
-
_skinsManager
private SkinsManager _skinsManager
-
_pageDataTypeExtensionPoint
private PageDataTypeExtensionPoint _pageDataTypeExtensionPoint
-
-
Constructor Detail
-
VirtualPostPageFactory
public VirtualPostPageFactory()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
getScheme
public String getScheme()
Description copied from interface:AmetysObjectFactory
Returns the protocol of this factory, used to construct unique ids.- Specified by:
getScheme
in interfaceAmetysObjectFactory<VirtualPostPage>
- Returns:
- the protocol of this factory.
-
getAmetysObjectById
public VirtualPostPage getAmetysObjectById(String id) throws AmetysRepositoryException
Description copied from interface:AmetysObjectFactory
- Specified by:
getAmetysObjectById
in interfaceAmetysObjectFactory<VirtualPostPage>
- Parameters:
id
- the identifier.- Returns:
- the corresponding
AmetysObject
. - Throws:
AmetysRepositoryException
- if an error occurs.
-
hasAmetysObjectForId
public boolean hasAmetysObjectForId(String id) throws AmetysRepositoryException
Description copied from interface:AmetysObjectFactory
Return true if the specified id correspond to an existingAmetysObject
. Id are like<protocol>://<protocol-specific-part>
.- Specified by:
hasAmetysObjectForId
in interfaceAmetysObjectFactory<VirtualPostPage>
- Parameters:
id
- the identifier.- Returns:
- true if the specified id correspond to an existing
AmetysObject
. - Throws:
AmetysRepositoryException
- if an error occurs.
-
-