public class CartFactory extends DefaultAmetysObjectFactory
AmetysObjectFactory
for handling Cart
s.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, getWorkspaceNode
configure, getAmetysObjectById, getAmetysObjectById, getNode, getNodetypes, getParent, getScheme, hasAmetysObjectForId
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
public 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 Serviceable
service
in class DefaultAmetysObjectFactory
ServiceException
public Cart getAmetysObject(Node node, String parentPath) throws AmetysRepositoryException
JCRAmetysObjectFactory
AmetysObject
from a persistent JCR node.getAmetysObject
in interface JCRAmetysObjectFactory<SimpleAmetysObject>
getAmetysObject
in class DefaultAmetysObjectFactory
node
- 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()