public class GetCartProfileTreeAction extends ServiceableAction
Cart
Modifier and Type | Field and Description |
---|---|
protected GroupManager |
_groupManager
Group manager
|
protected AmetysObjectResolver |
_resolver
Ametys resolver
|
protected UserManager |
_userManager
User manager
|
protected UserPopulationDAO |
_userPopulationDAO
The user population DAO
|
protected CurrentUserProvider |
_userProvider
The current user provider
|
manager
EMPTY_MAP
Constructor and Description |
---|
GetCartProfileTreeAction() |
Modifier and Type | Method and Description |
---|---|
private void |
_addGroupInfo(List<Map<String,Object>> entries,
GroupIdentity groupIdentity) |
private void |
_addUserInfo(List<Map<String,Object>> entries,
UserIdentity userIdentity) |
private Map<String,Object> |
_getCartInfo(Cart cart) |
private Map<String,Object> |
_getProfileInfo(Cart cart,
Cart.CartProfile profile) |
Map |
act(Redirector redirector,
SourceResolver resolver,
Map objectModel,
String source,
Parameters parameters) |
void |
service(ServiceManager smanager) |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
protected AmetysObjectResolver _resolver
protected GroupManager _groupManager
protected UserManager _userManager
protected CurrentUserProvider _userProvider
protected UserPopulationDAO _userPopulationDAO
public GetCartProfileTreeAction()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
service
in class ServiceableAction
ServiceException
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
Exception
private Map<String,Object> _getCartInfo(Cart cart)
private Map<String,Object> _getProfileInfo(Cart cart, Cart.CartProfile profile)
private void _addUserInfo(List<Map<String,Object>> entries, UserIdentity userIdentity)
private void _addGroupInfo(List<Map<String,Object>> entries, GroupIdentity groupIdentity)