public class ProcessesPresenter extends AccountsPresenter<ProcessesPresenter.MyView,ProcessesPresenter.MyProxy> implements ProcessesUIHandlers
Modifier and Type | Class and Description |
---|---|
static interface |
ProcessesPresenter.MyProxy
Defines the proxy place for GWTP framework.
|
static interface |
ProcessesPresenter.MyView
This view interface that must be implemented by the concrete view according to GWTP
framework.
|
static class |
ProcessesPresenter.ProcessesViewStates
Defines the Process Accounts View states
|
Modifier and Type | Field and Description |
---|---|
private AdminServiceAsync |
adminService
Administration server interface
|
private static boolean[] |
MASK_EAST
mask definition - east
|
private static boolean[] |
MASK_WEST
mask definition - west
|
static com.gwtplatform.mvp.client.presenter.slots.NestedSlot |
MODAL_CONTENT
The attachment point for modal dialogs on this view
|
private ModalDialogs |
modalDialogsManager
The common modal dialogs manager
|
private com.google.inject.Provider<ProcessAccountDefinition> |
padProvider
The process account definition provider
|
private ProcessDef |
selectedProcessAccount
The current single selected process account
|
private java.util.Set<ProcessDef> |
selectedProcesses
The current selected set of process accounts
|
private Alarm |
serverAlarmsManager
The server alarms manager
|
private static boolean[] |
STATE_ADD_PROCESS
Defines the add new process account state
|
private static boolean[] |
STATE_CERTS_ASSIGN_DISABLED
Defines the state in which the assign certificate action is disabled.
|
private static boolean[] |
STATE_CERTS_SINGLE
state definition - single selection in certificate list
|
private static boolean[] |
STATE_CLONE_PROCESS
Defines the cloning process account state
|
private static boolean[] |
STATE_EDIT_PROCESS
Defines the edit existing process account state
|
private static boolean[] |
STATE_INITIAL_EMPTY
Defines the initial empty state
|
private static boolean[] |
STATE_PROCS_MULTI
state definition - multiple selection in process accounts list
|
private static boolean[] |
STATE_PROCS_SINGLE
state definition - single selection in process accounts list
|
FILTER, filterExp, logger
BLANK_FIELD_WARNING, CONFIRM_PASSWORD_WARNING, NEW_ACCOUNT_NAME_WARNING
Constructor and Description |
---|
ProcessesPresenter(com.google.web.bindery.event.shared.EventBus eventBus,
ProcessesPresenter.MyView view,
ProcessesPresenter.MyProxy proxy,
com.gwtplatform.mvp.client.proxy.PlaceManager placeManager,
ViewStateMachine viewStateMachine,
AdminServiceAsync adminService,
ModalDialogs modalDialogsManager,
Alarm serverAlarmsManager,
com.google.inject.Provider<ProcessAccountDefinition> padProvider,
ACLPopupPresenter aclPopupPresenterProvider)
Constructs this presenter(controller) used by MPV gwtplatform of ArcBees Inc.
|
Modifier and Type | Method and Description |
---|---|
void |
addProcess(ProcessDef accountDef,
java.io.Serializable ext)
Adds the new process account.
|
void |
assignCertificateToProcess(TaggedName selectedCert,
TaggedName selectedProcess)
Executes the action to assign the selected certificate to the selected process account.
|
void |
cancelAddProcessAccountDialog()
Cancels the Add Process Account Dialog.
|
void |
cancelCloneProcessAccountDialog()
Cancels the Clone Process Account Dialog.
|
void |
cancelEditProcessAccountDialog()
Cancels the Edit Process Account Dialog.
|
void |
cloneProcess(java.lang.String nameFrom,
java.lang.String nameTo,
boolean acls)
Clones the process account with its ACL if it is chosen.
|
void |
deleteProcessAccounts(java.util.Set<TaggedName> accounts)
Executes the action to delete the given process accounts
|
void |
disableProcessAccount(TaggedName ps)
Executes the action to disable the given process account.
|
void |
onCertificateSelectionChanged(TaggedName selectedCert)
Handles the certificate selection changed action.
|
void |
onProcessSelectionChanged(java.util.Set<TaggedName> selected)
Handles the process accounts selection changed action.
|
void |
onRefreshCerts()
Handles the action to refresh the table of certificates.
|
void |
onRefreshProcesses()
Handles the action to refresh the table of process accounts.
|
void |
prepareFromRequest(com.gwtplatform.mvp.shared.proxy.PlaceRequest request)
Loads the data before the associated view will be displayed.
|
void |
setupCloneProcessAccountDialog(TaggedName selected)
Setups the Clone Process Account Dialog.
|
void |
showAddProcessAccountDialog()
Shows the Add Process Account Dialog.
|
void |
showEditProcessAccountDialog(TaggedName selected)
Shows the Edit Process Account Dialog.
|
void |
switchToCertificates(TaggedName selected)
Executes the action to switch to the Certificate Management view.
|
private void |
updateCerts()
Updates the peer certificates data model asynchronously.
|
private void |
updateCerts(java.lang.Runnable command)
Updates the peer certificates data model asynchronously and executes the given command if
this action has been complete successfully or has been failed.
|
void |
updateProcess(ProcessDef accountDef,
java.io.Serializable ext)
Updates the given process account.
|
private void |
updateProcesses()
Updates the process accounts data model asynchronously.
|
private void |
updateProcesses(java.lang.Runnable command)
Updates the process accounts data model asynchronously and executes the given command if
this action has been complete successfully or has been failed.
|
setCurrentState, switchToACLs
changeState, restoreState, setState
backTo, clearRequestParameter, getCurrentFilter, getCurrentParameter, getPlaceManager, getQueryParametersMap, getQueryString, getQueryString, setFilter, updateBrowserHistory
bind, forceReveal, getProxy, getRevealType, getSlot, revealInParent, setRevealType, setSlot, unbind, useManualReveal
addHandler, addRegisteredHandler, addToPopupSlot, addToPopupSlot, addToSlot, addToSlot, addVisibleHandler, asWidget, clearSlot, clearSlot, equals, fireEvent, fireEvent, getChild, getChildren, getChildren, getEventBus, getView, hashCode, isVisible, onHide, onReset, onReveal, registerVisibleHandler, removeFromParentSlot, removeFromPopupSlot, removeFromSlot, removeFromSlot, setInSlot, setInSlot, setInSlot, setInSlot
isBound, onBind, onUnbind, registerHandler
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
setCurrentState, switchToACLs
private static final boolean[] STATE_INITIAL_EMPTY
private static final boolean[] STATE_ADD_PROCESS
private static final boolean[] STATE_EDIT_PROCESS
private static final boolean[] STATE_CLONE_PROCESS
private static final boolean[] STATE_PROCS_SINGLE
private static final boolean[] STATE_CERTS_SINGLE
private static final boolean[] STATE_CERTS_ASSIGN_DISABLED
private static final boolean[] STATE_PROCS_MULTI
private static final boolean[] MASK_WEST
private static final boolean[] MASK_EAST
public static final com.gwtplatform.mvp.client.presenter.slots.NestedSlot MODAL_CONTENT
private final AdminServiceAsync adminService
private final ModalDialogs modalDialogsManager
private final Alarm serverAlarmsManager
private final java.util.Set<ProcessDef> selectedProcesses
private ProcessDef selectedProcessAccount
private final com.google.inject.Provider<ProcessAccountDefinition> padProvider
@Inject public ProcessesPresenter(com.google.web.bindery.event.shared.EventBus eventBus, ProcessesPresenter.MyView view, ProcessesPresenter.MyProxy proxy, com.gwtplatform.mvp.client.proxy.PlaceManager placeManager, @Named(value="ProcessesViewStateMachine") ViewStateMachine viewStateMachine, AdminServiceAsync adminService, ModalDialogs modalDialogsManager, Alarm serverAlarmsManager, com.google.inject.Provider<ProcessAccountDefinition> padProvider, ACLPopupPresenter aclPopupPresenterProvider)
eventBus
- The event busview
- The associated viewproxy
- The proxy placeplaceManager
- The place managerviewStateMachine
- The view state machineadminService
- The administration servicemodalDialogsManager
- The common modal dialogs managerserverAlarmsManager
- The server alarmspadProvider
- The process account definition providerpublic void prepareFromRequest(com.gwtplatform.mvp.shared.proxy.PlaceRequest request)
prepareFromRequest
in class com.gwtplatform.mvp.client.Presenter<ProcessesPresenter.MyView,ProcessesPresenter.MyProxy>
request
- The current requestpublic void onRefreshProcesses()
onRefreshProcesses
in interface ProcessesUIHandlers
public void onRefreshCerts()
onRefreshCerts
in interface ProcessesUIHandlers
private void updateProcesses()
private void updateProcesses(java.lang.Runnable command)
command
- The given commandprivate void updateCerts()
private void updateCerts(java.lang.Runnable command)
command
- The given commandpublic void cancelAddProcessAccountDialog()
cancelAddProcessAccountDialog
in interface ProcessesUIHandlers
public void cancelEditProcessAccountDialog()
cancelEditProcessAccountDialog
in interface ProcessesUIHandlers
public void showAddProcessAccountDialog()
showAddProcessAccountDialog
in interface ProcessesUIHandlers
public void showEditProcessAccountDialog(TaggedName selected)
showEditProcessAccountDialog
in interface ProcessesUIHandlers
selected
- The process account given by its tagged namepublic void setupCloneProcessAccountDialog(TaggedName selected)
setupCloneProcessAccountDialog
in interface ProcessesUIHandlers
selected
- The process account given by its tagged namepublic void onProcessSelectionChanged(java.util.Set<TaggedName> selected)
onProcessSelectionChanged
in interface ProcessesUIHandlers
selected
- The set of selected process accounts given by tagged namespublic void cancelCloneProcessAccountDialog()
cancelCloneProcessAccountDialog
in interface ProcessesUIHandlers
public void addProcess(ProcessDef accountDef, java.io.Serializable ext)
addProcess
in interface ProcessesUIHandlers
accountDef
- The process account definitionext
- The account extension objectpublic void updateProcess(ProcessDef accountDef, java.io.Serializable ext)
updateProcess
in interface ProcessesUIHandlers
accountDef
- The given process account definitionext
- The given account extension objectpublic void disableProcessAccount(TaggedName ps)
disableProcessAccount
in interface ProcessesUIHandlers
ps
- The process account given by its tagged namepublic void cloneProcess(java.lang.String nameFrom, java.lang.String nameTo, boolean acls)
cloneProcess
in interface ProcessesUIHandlers
nameFrom
- The cloning process account namenameTo
- The new cloned process account nameacls
- The flag that requests to clone the process account ACLpublic void deleteProcessAccounts(java.util.Set<TaggedName> accounts)
deleteProcessAccounts
in interface ProcessesUIHandlers
accounts
- The process accounts to be deletedpublic void onCertificateSelectionChanged(TaggedName selectedCert)
onCertificateSelectionChanged
in interface ProcessesUIHandlers
selectedCert
- The selected certificatepublic void assignCertificateToProcess(TaggedName selectedCert, TaggedName selectedProcess)
assignCertificateToProcess
in interface ProcessesUIHandlers
selectedCert
- The selected certificate given by its tagged nameselectedProcess
- The selected process account given by its tagged namepublic void switchToCertificates(TaggedName selected)
switchToCertificates
in interface ProcessesUIHandlers
selected
- The certificate given by its tagged name