@CustomLogFields(value={@CustomLogField(value="RoleName"),@CustomLogField(value="VdcObjectType"),@CustomLogField(value="VdcObjectName"),@CustomLogField(value="SubjectName")}) public abstract class PermissionsCommandBase<T extends PermissionsOperationsParametes> extends CommandBase<T>
| Modifier and Type | Field and Description |
|---|---|
protected ad_groups |
_adGroup |
protected DbUser |
_dbUser |
BYTES_IN_GB, log| Modifier | Constructor and Description |
|---|---|
protected |
PermissionsCommandBase(Guid commandId)
Constructor for command creation when compensation is applied on startup
|
|
PermissionsCommandBase(T parameters) |
| Modifier and Type | Method and Description |
|---|---|
Map<Guid,VdcObjectType> |
getPermissionCheckSubjects()
Permissions are attached to object so every command must declare its
object target type and its GUID
|
String |
getRoleName() |
String |
getSubjectName() |
String |
getVdcObjectName()
Get the object name, which the MLA operation occurs on.
|
String |
getVdcObjectType()
Get the object translated type (e.g Host , VM), on which the MLA operation has been executed on.
|
void |
initUserAndGroupData() |
protected boolean |
isSystemSuperUser() |
acquireLock, addCanDoActionMessage, addCanDoActionMessage, addValidationGroup, canDoAction, CanDoActionOnly, compensate, ConcreteCreateTask, CreateReturnValue, CreateTask, EndAction, endActionInTransactionScope, EndSuccessfully, EndWithFailure, ExecuteAction, executeCommand, freeLock, getActionReturnValue, getActionState, getActionType, getBusinessEntitySnapshotDAO, getCommandShouldBeLogged, getCompensationContext, getDescription, getNow, getObjectLockingId, getParameters, getParametersForTask, getReturnValue, getSucceeded, GetTagsAttachedToObject, getTaskIdList, getTransactionScopeOption, getTransactionTimeout, getValidationGroups, IsBackwardsCompatible, isInternalExecution, IsUserAutorizedToRunAction, RevertTasks, Rollback, runInTransaction, runVdsCommand, setActionMessageParameters, setActionReturnValue, setCommandShouldBeLogged, setCompensationContext, setDescription, setInternalExecution, setSucceeded, UpdateTasksWithActionParameters, validateInputsAddCustomValue, AppendCustomValue, DefaultLog, getAuditLogTypeValue, 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 PermissionsCommandBase(Guid commandId)
commandId - public PermissionsCommandBase(T parameters)
public String getVdcObjectType()
VdcObjectTypepublic String getVdcObjectName()
public String getRoleName()
public String getSubjectName()
public void initUserAndGroupData()
protected boolean isSystemSuperUser()
public Map<Guid,VdcObjectType> getPermissionCheckSubjects()
CommandBasegetPermissionCheckSubjects in class CommandBase<T extends PermissionsOperationsParametes>Copyright © 2012. All Rights Reserved.