public abstract class LoginBaseCommand<T extends LoginUserParameters> extends CommandBase<T>
| Modifier and Type | Field and Description |
|---|---|
protected AdUser |
_adUser |
BYTES_IN_GB, log| Constructor and Description |
|---|
LoginBaseCommand(T parameters) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract UserAuthenticationResult |
AuthenticateUser(RefObject<Boolean> isLocalBackend,
RefObject<Boolean> isAdmin) |
protected boolean |
canDoAction() |
protected VdcReturnValueBase |
CreateReturnValue()
Factory to determine the type of the ReturnValue field
|
protected void |
executeCommand() |
AuditLogType |
getAuditLogTypeValue() |
String |
getDomain() |
Map<Guid,VdcObjectType> |
getPermissionCheckSubjects()
Permissions are attached to object so every command must declare its
object target type and its GUID
|
String |
getUserPassword() |
protected void |
HandleUserSession(AdUser adUser)
Handles the user session.
|
protected boolean |
IsUserAutorizedToRunAction()
Check if current user is authorized to run current action.
|
protected boolean |
isUserCanBeAuthenticated() |
protected boolean |
persistUserSession() |
acquireLock, addCanDoActionMessage, addCanDoActionMessage, addValidationGroup, CanDoActionOnly, compensate, ConcreteCreateTask, CreateTask, EndAction, endActionInTransactionScope, EndSuccessfully, EndWithFailure, ExecuteAction, freeLock, getActionReturnValue, getActionState, getActionType, getBusinessEntitySnapshotDAO, getCommandShouldBeLogged, getCompensationContext, getDescription, getNow, getObjectLockingId, getParameters, getParametersForTask, getReturnValue, getSucceeded, GetTagsAttachedToObject, getTaskIdList, getTransactionScopeOption, getTransactionTimeout, getValidationGroups, IsBackwardsCompatible, isInternalExecution, RevertTasks, Rollback, runInTransaction, runVdsCommand, setActionMessageParameters, setActionReturnValue, setCommandShouldBeLogged, setCompensationContext, setDescription, setInternalExecution, setSucceeded, UpdateTasksWithActionParameters, validateInputsAddCustomValue, AppendCustomValue, DefaultLog, getCurrentUser, GetCustomValue, getCustomValues, getKey, getSnapshotName, getStorageDomain, getStorageDomainDAO, getStorageDomainId, getStorageDomainName, getStoragePool, getStoragePoolDAO, getStoragePoolId, getStoragePoolName, getUserId, getUserName, getVds, getVdsDAO, getVdsGroup, getVdsGroupDAO, getVdsGroupId, getVdsGroupName, getVdsId, getVdsIdRef, getVdsName, getVm, getVmDAO, getVmId, getVmIdRef, getVmName, getVmStaticDAO, getVmStatisticsDAO, getVmTemplate, getVmTemplateDAO, getVmTemplateId, getVmTemplateIdRef, getVmTemplateName, log, setCurrentUser, setSnapshotName, setStorageDomain, setStorageDomainId, setStoragePool, setStoragePoolId, setUserId, setUserName, setVds, setVdsGroup, setVdsGroupId, setVdsId, setVdsIdRef, setVdsName, setVm, setVmId, setVmName, setVmTemplate, setVmTemplateId, setVmTemplateNamegetEndTime, getLegal, getTimeoutObjectId, getUseTimout, setEndTime, setTimeoutObjectId, setUseTimoutprotected AdUser _adUser
public LoginBaseCommand(T parameters)
protected VdcReturnValueBase CreateReturnValue()
CommandBaseCreateReturnValue in class CommandBase<T extends LoginUserParameters>protected void HandleUserSession(AdUser adUser)
adUser - The ad user.public String getUserPassword()
public String getDomain()
public AuditLogType getAuditLogTypeValue()
getAuditLogTypeValue in class AuditLogableBaseprotected abstract UserAuthenticationResult AuthenticateUser(RefObject<Boolean> isLocalBackend, RefObject<Boolean> isAdmin)
protected void executeCommand()
executeCommand in class CommandBase<T extends LoginUserParameters>protected boolean canDoAction()
canDoAction in class CommandBase<T extends LoginUserParameters>protected boolean persistUserSession()
protected boolean isUserCanBeAuthenticated()
protected boolean IsUserAutorizedToRunAction()
CommandBaseIsUserAutorizedToRunAction in class CommandBase<T extends LoginUserParameters>public Map<Guid,VdcObjectType> getPermissionCheckSubjects()
CommandBasegetPermissionCheckSubjects in class CommandBase<T extends LoginUserParameters>Copyright © 2012. All Rights Reserved.