@DeclareRoles(value="org.imixs.ACCESSLEVEL.MANAGERACCESS") @RunAs(value="org.imixs.ACCESSLEVEL.MANAGERACCESS") public class JobHandlerRenameUser extends Object implements JobHandler
| Constructor and Description |
|---|
JobHandlerRenameUser() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
run(ItemCollection adminp)
This method creates a new AdminP Job.
|
ItemCollection |
saveJobEntity(ItemCollection adminp)
Save AdminP Entity
|
boolean |
updateWorkitemUserIds(ItemCollection entity,
String from,
String to,
boolean replace,
String adminpUniqueid)
Updates read,write and owner of a entity and returns true if an update
was necessary
|
public boolean run(ItemCollection adminp) throws AdminPException
"(type:\"workitem\" OR type:\"workitemarchive\" OR type:\"childworkitem\" OR type:\"childworkitemarchive\" OR type:\"workitemlob\" )";
sQuery +=" AND ($writeaccess:\""+fromName+"\" OR $readaccess:\""+fromName+"\" OR namowner:\""+fromName+"\" OR namcreator:\""+fromName+"\" )";
run in interface JobHandlerQueryExceptionAccessDeniedExceptionAdminPExceptionpublic boolean updateWorkitemUserIds(ItemCollection entity, String from, String to, boolean replace, String adminpUniqueid) throws AccessDeniedException
entity - from - to - replace - AccessDeniedExceptionpublic ItemCollection saveJobEntity(ItemCollection adminp) throws AccessDeniedException
AccessDeniedExceptionCopyright © 2006–2017 Imixs Software Solutions GmbH. All rights reserved.