@Name(value="deputyActions") @Scope(value=CONVERSATION) public class DeputyActionsBean extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected String |
adminLogin |
protected DocumentModel |
editableDeputy |
static String |
NEW_DEPUTY_ID |
static String |
VIEW_DEPUTIES |
Constructor and Description |
---|
DeputyActionsBean() |
Modifier and Type | Method and Description |
---|---|
String |
adminLoginAsDeputy() |
String |
cancelDeputy() |
String |
createDeputy() |
String |
deleteDeputy(String deputyId) |
String |
editDeputy(String deputyId) |
String |
getAdminLogin() |
List<Principal> |
getAlternatePrincipals() |
DocumentModel |
getEditableDeputy() |
String |
getLoginInformation() |
List<DocumentModel> |
getUserDeputies() |
boolean |
isMandated() |
String |
loginAsDeputy(String login) |
String |
loginAsOriginal() |
protected void |
reconnectAs(String login) |
String |
saveDeputy() |
void |
setAdminLogin(String adminLogin) |
String |
setNewDeputy(String deputyId) |
public static final String VIEW_DEPUTIES
public static final String NEW_DEPUTY_ID
protected String adminLogin
protected DocumentModel editableDeputy
public DeputyActionsBean()
public String createDeputy()
public String setNewDeputy(String deputyId)
public String cancelDeputy()
public String saveDeputy()
public String editDeputy(String deputyId)
public String deleteDeputy(String deputyId)
@Factory(value="userDeputies", scope=EVENT) public List<DocumentModel> getUserDeputies()
@Factory(value="alternateLogins", scope=EVENT) public List<Principal> getAlternatePrincipals()
public String loginAsDeputy(String login) throws IOException, javax.servlet.ServletException
IOException
javax.servlet.ServletException
protected void reconnectAs(String login) throws javax.servlet.ServletException, IOException
javax.servlet.ServletException
IOException
public String loginAsOriginal() throws javax.servlet.ServletException, IOException
javax.servlet.ServletException
IOException
public boolean isMandated()
@Factory(value="editableDeputy", scope=EVENT) public DocumentModel getEditableDeputy()
public String getLoginInformation()
public void setAdminLogin(String adminLogin)
public String getAdminLogin()
public String adminLoginAsDeputy() throws IOException, javax.servlet.ServletException
IOException
javax.servlet.ServletException
Copyright © 2018 Nuxeo. All rights reserved.