Class GetCartProfileTreeAction
- java.lang.Object
 - 
- org.apache.avalon.framework.logger.AbstractLogEnabled
 - 
- org.apache.cocoon.acting.AbstractAction
 - 
- org.apache.cocoon.acting.ServiceableAction
 - 
- org.ametys.plugins.cart.actions.visibility.GetCartProfileTreeAction
 
 
 
 
 
- 
- All Implemented Interfaces:
 Component,LogEnabled,Serviceable,Action
public class GetCartProfileTreeAction extends ServiceableAction
Action populating a map containing information about the visibility of aCart 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected GroupManager_groupManagerGroup managerprotected AmetysObjectResolver_resolverAmetys resolverprotected UserManager_userManagerUser managerprotected UserPopulationDAO_userPopulationDAOThe user population DAOprotected CurrentUserProvider_userProviderThe current user provider- 
Fields inherited from class org.apache.cocoon.acting.ServiceableAction
manager 
- 
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP 
 - 
 
- 
Constructor Summary
Constructors Constructor Description GetCartProfileTreeAction() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)Mapact(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters)voidservice(ServiceManager smanager)- 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger 
 - 
 
 - 
 
- 
- 
Field Detail
- 
_resolver
protected AmetysObjectResolver _resolver
Ametys resolver 
- 
_groupManager
protected GroupManager _groupManager
Group manager 
- 
_userManager
protected UserManager _userManager
User manager 
- 
_userProvider
protected CurrentUserProvider _userProvider
The current user provider 
- 
_userPopulationDAO
protected UserPopulationDAO _userPopulationDAO
The user population DAO 
 - 
 
- 
Constructor Detail
- 
GetCartProfileTreeAction
public GetCartProfileTreeAction()
 
 - 
 
- 
Method Detail
- 
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
 servicein interfaceServiceable- Overrides:
 servicein classServiceableAction- Throws:
 ServiceException
 
- 
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
- Throws:
 Exception
 
- 
_getCartInfo
private Map<String,Object> _getCartInfo(Cart cart)
 
- 
_getProfileInfo
private Map<String,Object> _getProfileInfo(Cart cart, Cart.CartProfile profile)
 
- 
_addUserInfo
private void _addUserInfo(List<Map<String,Object>> entries, UserIdentity userIdentity)
 
- 
_addGroupInfo
private void _addGroupInfo(List<Map<String,Object>> entries, GroupIdentity groupIdentity)
 
 - 
 
 -