public class CartFactory extends DefaultAmetysObjectFactory
AmetysObjectFactory for handling Carts.| Modifier and Type | Field and Description |
|---|---|
protected ContentTypeExtensionPoint |
_contentTypeEP
Extension point for content types
|
protected ContentTypesHelper |
_contentTypesHelper
Helper for content types
|
protected ContentTypeExtensionPoint |
_cTypeEP
Content type extension point
|
protected GroupManager |
_groupManager
Group manager
|
static String |
CART_NODETYPE
JCR nodetype for cart
|
_ametysFactoryExtensionPoint, _manager, _nodetype, _repository, _resolver, _scheme| Constructor and Description |
|---|
CartFactory() |
| Modifier and Type | Method and Description |
|---|---|
(package private) ContentTypeExtensionPoint |
_getContentTypeEP()
Getter for the content types helper
|
(package private) ContentTypesHelper |
_getContentTypesHelper()
Getter for the content types helper
|
(package private) GroupManager |
_getGroupsManager()
Group manager getter.
|
Cart |
getAmetysObject(Node node,
String parentPath)
Creates a
AmetysObject from a persistent JCR node. |
(package private) AmetysObjectResolver |
getResolver() |
void |
service(ServiceManager manager) |
getCurrentUser, getWorkspaceNodeconfigure, getAmetysObjectById, getAmetysObjectById, getNode, getNodetypes, getParent, getScheme, hasAmetysObjectForIdenableLogging, getLogger, setupLogger, setupLogger, setupLoggerpublic static final String CART_NODETYPE
protected GroupManager _groupManager
protected ContentTypeExtensionPoint _cTypeEP
protected ContentTypesHelper _contentTypesHelper
protected ContentTypeExtensionPoint _contentTypeEP
public CartFactory()
public void service(ServiceManager manager) throws ServiceException
service in interface Serviceableservice in class DefaultAmetysObjectFactoryServiceExceptionpublic Cart getAmetysObject(Node node, String parentPath) throws AmetysRepositoryException
JCRAmetysObjectFactoryAmetysObject from a persistent JCR node.getAmetysObject in interface JCRAmetysObjectFactory<SimpleAmetysObject>getAmetysObject in class DefaultAmetysObjectFactorynode - 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.AmetysObjectResolver getResolver()
GroupManager _getGroupsManager()
ContentTypesHelper _getContentTypesHelper()
ContentTypeExtensionPoint _getContentTypeEP()