public class AllowedUsersByObjectAction extends ServiceableAction implements Contextualizable, Initializable
AmetysObject
in a list.Modifier and Type | Field and Description |
---|---|
protected AllowedUsersActionAdditionalOperationsExtensionPoint |
_allowedUsersActionAdditionalOperationsEP
The Extension Point for doing additonal operations before and after calling
RightManager.getReadAccessAllowedUsers(Object) in the iteration over objectIds in _act(String, Map, List) |
private Context |
_context |
protected GroupManager |
_groupManager
The group manager
|
private Logger |
_logger |
protected AmetysObjectResolver |
_resolver
The Ametys object resolver
|
protected RightManager |
_rightManager
The right manager
|
manager
EMPTY_MAP
Constructor and Description |
---|
AllowedUsersByObjectAction() |
Modifier and Type | Method and Description |
---|---|
private void |
_act(String objectIdsAsString,
Map<String,Map<String,Object>> responseMap,
List<String> unresolvedIds) |
private List<String> |
_usersAsStrings(Collection<UserIdentity> users) |
private List<String> |
_usersFromGroupsAsStrings(Collection<GroupIdentity> groups) |
Map |
act(Redirector redirector,
SourceResolver resolver,
Map objectModel,
String source,
Parameters parameters) |
void |
contextualize(Context context) |
void |
initialize() |
void |
service(ServiceManager smanager) |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
protected AmetysObjectResolver _resolver
protected RightManager _rightManager
protected GroupManager _groupManager
protected AllowedUsersActionAdditionalOperationsExtensionPoint _allowedUsersActionAdditionalOperationsEP
RightManager.getReadAccessAllowedUsers(Object)
in the iteration over objectIds in _act(String, Map, List)
public AllowedUsersByObjectAction()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
service
in class ServiceableAction
ServiceException
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
public void initialize() throws Exception
initialize
in interface Initializable
Exception
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
private void _act(String objectIdsAsString, Map<String,Map<String,Object>> responseMap, List<String> unresolvedIds)
private List<String> _usersFromGroupsAsStrings(Collection<GroupIdentity> groups)
private List<String> _usersAsStrings(Collection<UserIdentity> users)