Package org.ametys.plugins.cart
Class CartFactory
-
- All Implemented Interfaces:
AmetysObjectFactory<SimpleAmetysObject>
,JCRAmetysObjectFactory<SimpleAmetysObject>
,Component
,Configurable
,LogEnabled
,Serviceable
public class CartFactory extends DefaultAmetysObjectFactory
AmetysObjectFactory
for handlingCart
s.
-
-
Field Summary
Fields Modifier and Type Field Description protected ContentTypeExtensionPoint
_contentTypeEP
Extension point for content typesprotected ContentTypesHelper
_contentTypesHelper
Helper for content typesprotected ContentTypeExtensionPoint
_cTypeEP
Content type extension pointprotected GroupManager
_groupManager
Group managerstatic String
CART_NODETYPE
JCR nodetype for cart-
Fields inherited from class org.ametys.plugins.repository.jcr.SimpleAmetysObjectFactory
_ametysFactoryExtensionPoint, _manager, _nodetype, _repository, _resolver, _scheme
-
-
Constructor Summary
Constructors Constructor Description CartFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Model
_createQueryModel()
Creates the query modelCart
getAmetysObject(Node node, String parentPath)
Creates aAmetysObject
from a persistent JCR node.Model
getModel()
Retrieves the query modelvoid
service(ServiceManager manager)
-
Methods inherited from class org.ametys.plugins.repository.jcr.DefaultAmetysObjectFactory
getCurrentUser, getUnversionedDataTypeExtensionPoint, getWorkspaceNode
-
Methods inherited from class org.ametys.plugins.repository.jcr.SimpleAmetysObjectFactory
configure, getAmetysObjectById, getAmetysObjectById, getNode, getNodetypes, getParent, getScheme, hasAmetysObjectForId
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Field Detail
-
CART_NODETYPE
public static final String CART_NODETYPE
JCR nodetype for cart- See Also:
- Constant Field Values
-
_groupManager
protected GroupManager _groupManager
Group manager
-
_cTypeEP
protected ContentTypeExtensionPoint _cTypeEP
Content type extension point
-
_contentTypesHelper
protected ContentTypesHelper _contentTypesHelper
Helper for content types
-
_contentTypeEP
protected ContentTypeExtensionPoint _contentTypeEP
Extension point for content types
-
-
Constructor Detail
-
CartFactory
public CartFactory()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classDefaultAmetysObjectFactory
- Throws:
ServiceException
-
getAmetysObject
public Cart getAmetysObject(Node node, String parentPath) throws AmetysRepositoryException
Description copied from interface:JCRAmetysObjectFactory
Creates aAmetysObject
from a persistent JCR node.- Specified by:
getAmetysObject
in interfaceJCRAmetysObjectFactory<SimpleAmetysObject>
- Overrides:
getAmetysObject
in classDefaultAmetysObjectFactory
- Parameters:
node
- the JCR node to use.parentPath
- the parent Path in the Ametys hierarchy, may benull
if not known yet.- Returns:
- the object.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
_createQueryModel
protected Model _createQueryModel() throws AmetysRepositoryException
Creates the query model- Returns:
- the created model
- Throws:
AmetysRepositoryException
- if an error occurs.
-
-