Package es.caib.seycon.ng.comu
Class Account
- java.lang.Object
-
- es.caib.seycon.ng.comu.Account
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
UserAccount
public class Account extends Object implements Serializable
ValueObject Account- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Account()Account(Account otherBean)Account(Long id, String dispatcher, String name, String oldName, String description, AccountType type, boolean disabled, AccountStatus status, String passwordPolicy, Collection<String> ownerGroups, Collection<String> ownerUsers, Collection<String> ownerRoles, Collection<String> managerGroups, Collection<String> managerUsers, Collection<String> managerRoles, Collection<String> grantedGroups, Collection<String> grantedUsers, Collection<String> grantedRoles, AccountAccessLevelEnum accessLevel, String serverType, String serverName, String sshPublicKey, Long vaultFolderId, String vaultFolder, boolean inheritNewPermissions, String loginUrl, String loginName, LaunchType launchType, String jumpServerGroup, Date created, Calendar lastLogin, Date lastChange, Calendar lastUpdated, Calendar lastPasswordSet, Calendar passwordExpiration, String lockedBy, PasswordValidation passwordStatus, Map<String,Object> attributes, boolean hasSnapshot)Account(String dispatcher, String name, AccountType type, boolean disabled, String passwordPolicy, boolean inheritNewPermissions, boolean hasSnapshot)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AccountAccessLevelEnumgetAccessLevel()Gets value for attribute accessLevelMap<String,Object>getAttributes()Gets value for attribute attributesDategetCreated()Gets value for attribute createdStringgetDescription()Gets value for attribute descriptionStringgetDispatcher()Gets value for attribute dispatcherCollection<String>getGrantedGroups()Gets value for attribute grantedGroupsCollection<String>getGrantedRoles()Gets value for attribute grantedRolesCollection<String>getGrantedUsers()Gets value for attribute grantedUsersLonggetId()Gets value for attribute idStringgetJumpServerGroup()Gets value for attribute jumpServerGroupDategetLastChange()Gets value for attribute lastChangeCalendargetLastLogin()Gets value for attribute lastLoginCalendargetLastPasswordSet()Gets value for attribute lastPasswordSetCalendargetLastUpdated()Gets value for attribute lastUpdatedLaunchTypegetLaunchType()Gets value for attribute launchTypeStringgetLockedBy()Gets value for attribute lockedByStringgetLoginName()Gets value for attribute loginNameStringgetLoginUrl()Gets value for attribute loginUrlCollection<String>getManagerGroups()Gets value for attribute managerGroupsCollection<String>getManagerRoles()Gets value for attribute managerRolesCollection<String>getManagerUsers()Gets value for attribute managerUsersStringgetName()Gets value for attribute nameStringgetOldName()Gets value for attribute oldNameCollection<String>getOwnerGroups()Gets value for attribute ownerGroupsCollection<String>getOwnerRoles()Gets value for attribute ownerRolesCollection<String>getOwnerUsers()Gets value for attribute ownerUsersCalendargetPasswordExpiration()Gets value for attribute passwordExpirationStringgetPasswordPolicy()Gets value for attribute passwordPolicyPasswordValidationgetPasswordStatus()Gets value for attribute passwordStatusStringgetServerName()Gets value for attribute serverNameStringgetServerType()Gets value for attribute serverTypeStringgetSshPublicKey()Gets value for attribute sshPublicKeyAccountStatusgetStatus()Gets value for attribute statusAccountTypegetType()Gets value for attribute typeStringgetVaultFolder()Gets value for attribute vaultFolderLonggetVaultFolderId()Gets value for attribute vaultFolderIdbooleanisDisabled()Gets value for attribute disabledbooleanisHasSnapshot()Gets value for attribute hasSnapshotbooleanisInheritNewPermissions()Gets value for attribute inheritNewPermissionsvoidsetAccessLevel(AccountAccessLevelEnum accessLevel)Sets value for attribute accessLevelvoidsetAttributes(Map<String,Object> attributes)Sets value for attribute attributesvoidsetCreated(Date created)Sets value for attribute createdvoidsetDescription(String description)Sets value for attribute descriptionvoidsetDisabled(boolean disabled)Sets value for attribute disabledvoidsetDispatcher(String dispatcher)Sets value for attribute dispatchervoidsetGrantedGroups(Collection<String> grantedGroups)Sets value for attribute grantedGroupsvoidsetGrantedRoles(Collection<String> grantedRoles)Sets value for attribute grantedRolesvoidsetGrantedUsers(Collection<String> grantedUsers)Sets value for attribute grantedUsersvoidsetHasSnapshot(boolean hasSnapshot)Sets value for attribute hasSnapshotvoidsetId(Long id)Sets value for attribute idvoidsetInheritNewPermissions(boolean inheritNewPermissions)Sets value for attribute inheritNewPermissionsvoidsetJumpServerGroup(String jumpServerGroup)Sets value for attribute jumpServerGroupvoidsetLastChange(Date lastChange)Sets value for attribute lastChangevoidsetLastLogin(Calendar lastLogin)Sets value for attribute lastLoginvoidsetLastPasswordSet(Calendar lastPasswordSet)Sets value for attribute lastPasswordSetvoidsetLastUpdated(Calendar lastUpdated)Sets value for attribute lastUpdatedvoidsetLaunchType(LaunchType launchType)Sets value for attribute launchTypevoidsetLockedBy(String lockedBy)Sets value for attribute lockedByvoidsetLoginName(String loginName)Sets value for attribute loginNamevoidsetLoginUrl(String loginUrl)Sets value for attribute loginUrlvoidsetManagerGroups(Collection<String> managerGroups)Sets value for attribute managerGroupsvoidsetManagerRoles(Collection<String> managerRoles)Sets value for attribute managerRolesvoidsetManagerUsers(Collection<String> managerUsers)Sets value for attribute managerUsersvoidsetName(String name)Sets value for attribute namevoidsetOldName(String oldName)Sets value for attribute oldNamevoidsetOwnerGroups(Collection<String> ownerGroups)Sets value for attribute ownerGroupsvoidsetOwnerRoles(Collection<String> ownerRoles)Sets value for attribute ownerRolesvoidsetOwnerUsers(Collection<String> ownerUsers)Sets value for attribute ownerUsersvoidsetPasswordExpiration(Calendar passwordExpiration)Sets value for attribute passwordExpirationvoidsetPasswordPolicy(String passwordPolicy)Sets value for attribute passwordPolicyvoidsetPasswordStatus(PasswordValidation passwordStatus)Sets value for attribute passwordStatusvoidsetServerName(String serverName)Sets value for attribute serverNamevoidsetServerType(String serverType)Sets value for attribute serverTypevoidsetSshPublicKey(String sshPublicKey)Sets value for attribute sshPublicKeyvoidsetStatus(AccountStatus status)Sets value for attribute statusvoidsetType(AccountType type)Sets value for attribute typevoidsetVaultFolder(String vaultFolder)Sets value for attribute vaultFoldervoidsetVaultFolderId(Long vaultFolderId)Sets value for attribute vaultFolderIdstatic AccounttoAccount(Account vo)Creates a Account value object based on a Account object.static voidtoAccount(Account source, Account target)Updates a Account value object based on a Account object.static Account[]toAccountArray(Account[] source)Creates a Account array on a Account array.static AsyncList<Account>toAccountAsyncList(AsyncList<Account> source)Creates a Account asynclist on a Account collection.static PagedResult<Account>toAccountList(PagedResult<Account> source)Creates a Account pagedResult on a Account collection.static List<Account>toAccountList(Collection<Account> source)Creates a Account list on a Account collection.StringtoString()Returns a string representation of the value object.
-
-
-
Constructor Detail
-
Account
public Account()
-
Account
public Account(Long id, String dispatcher, String name, String oldName, String description, AccountType type, boolean disabled, AccountStatus status, String passwordPolicy, Collection<String> ownerGroups, Collection<String> ownerUsers, Collection<String> ownerRoles, Collection<String> managerGroups, Collection<String> managerUsers, Collection<String> managerRoles, Collection<String> grantedGroups, Collection<String> grantedUsers, Collection<String> grantedRoles, AccountAccessLevelEnum accessLevel, String serverType, String serverName, String sshPublicKey, Long vaultFolderId, String vaultFolder, boolean inheritNewPermissions, String loginUrl, String loginName, LaunchType launchType, String jumpServerGroup, Date created, Calendar lastLogin, Date lastChange, Calendar lastUpdated, Calendar lastPasswordSet, Calendar passwordExpiration, String lockedBy, PasswordValidation passwordStatus, Map<String,Object> attributes, boolean hasSnapshot)
-
Account
public Account(String dispatcher, String name, AccountType type, boolean disabled, String passwordPolicy, boolean inheritNewPermissions, boolean hasSnapshot)
-
Account
public Account(Account otherBean)
-
-
Method Detail
-
getId
public Long getId()
Gets value for attribute id
-
setId
public void setId(Long id)
Sets value for attribute id
-
getDispatcher
public String getDispatcher()
Gets value for attribute dispatcher
-
setDispatcher
public void setDispatcher(String dispatcher)
Sets value for attribute dispatcher
-
getName
public String getName()
Gets value for attribute name
-
setName
public void setName(String name)
Sets value for attribute name
-
getOldName
public String getOldName()
Gets value for attribute oldName
-
setOldName
public void setOldName(String oldName)
Sets value for attribute oldName
-
getDescription
public String getDescription()
Gets value for attribute description
-
setDescription
public void setDescription(String description)
Sets value for attribute description
-
getType
public AccountType getType()
Gets value for attribute type
-
setType
public void setType(AccountType type)
Sets value for attribute type
-
isDisabled
public boolean isDisabled()
Gets value for attribute disabled
-
setDisabled
public void setDisabled(boolean disabled)
Sets value for attribute disabled
-
getStatus
public AccountStatus getStatus()
Gets value for attribute status
-
setStatus
public void setStatus(AccountStatus status)
Sets value for attribute status
-
getPasswordPolicy
public String getPasswordPolicy()
Gets value for attribute passwordPolicy
-
setPasswordPolicy
public void setPasswordPolicy(String passwordPolicy)
Sets value for attribute passwordPolicy
-
getOwnerGroups
public Collection<String> getOwnerGroups()
Gets value for attribute ownerGroups
-
setOwnerGroups
public void setOwnerGroups(Collection<String> ownerGroups)
Sets value for attribute ownerGroups
-
getOwnerUsers
public Collection<String> getOwnerUsers()
Gets value for attribute ownerUsers
-
setOwnerUsers
public void setOwnerUsers(Collection<String> ownerUsers)
Sets value for attribute ownerUsers
-
getOwnerRoles
public Collection<String> getOwnerRoles()
Gets value for attribute ownerRoles
-
setOwnerRoles
public void setOwnerRoles(Collection<String> ownerRoles)
Sets value for attribute ownerRoles
-
getManagerGroups
public Collection<String> getManagerGroups()
Gets value for attribute managerGroups
-
setManagerGroups
public void setManagerGroups(Collection<String> managerGroups)
Sets value for attribute managerGroups
-
getManagerUsers
public Collection<String> getManagerUsers()
Gets value for attribute managerUsers
-
setManagerUsers
public void setManagerUsers(Collection<String> managerUsers)
Sets value for attribute managerUsers
-
getManagerRoles
public Collection<String> getManagerRoles()
Gets value for attribute managerRoles
-
setManagerRoles
public void setManagerRoles(Collection<String> managerRoles)
Sets value for attribute managerRoles
-
getGrantedGroups
public Collection<String> getGrantedGroups()
Gets value for attribute grantedGroups
-
setGrantedGroups
public void setGrantedGroups(Collection<String> grantedGroups)
Sets value for attribute grantedGroups
-
getGrantedUsers
public Collection<String> getGrantedUsers()
Gets value for attribute grantedUsers
-
setGrantedUsers
public void setGrantedUsers(Collection<String> grantedUsers)
Sets value for attribute grantedUsers
-
getGrantedRoles
public Collection<String> getGrantedRoles()
Gets value for attribute grantedRoles
-
setGrantedRoles
public void setGrantedRoles(Collection<String> grantedRoles)
Sets value for attribute grantedRoles
-
getAccessLevel
public AccountAccessLevelEnum getAccessLevel()
Gets value for attribute accessLevel
-
setAccessLevel
public void setAccessLevel(AccountAccessLevelEnum accessLevel)
Sets value for attribute accessLevel
-
getServerType
public String getServerType()
Gets value for attribute serverType
-
setServerType
public void setServerType(String serverType)
Sets value for attribute serverType
-
getServerName
public String getServerName()
Gets value for attribute serverName
-
setServerName
public void setServerName(String serverName)
Sets value for attribute serverName
-
getSshPublicKey
public String getSshPublicKey()
Gets value for attribute sshPublicKey
-
setSshPublicKey
public void setSshPublicKey(String sshPublicKey)
Sets value for attribute sshPublicKey
-
getVaultFolderId
public Long getVaultFolderId()
Gets value for attribute vaultFolderId
-
setVaultFolderId
public void setVaultFolderId(Long vaultFolderId)
Sets value for attribute vaultFolderId
-
getVaultFolder
public String getVaultFolder()
Gets value for attribute vaultFolder
-
setVaultFolder
public void setVaultFolder(String vaultFolder)
Sets value for attribute vaultFolder
-
isInheritNewPermissions
public boolean isInheritNewPermissions()
Gets value for attribute inheritNewPermissions
-
setInheritNewPermissions
public void setInheritNewPermissions(boolean inheritNewPermissions)
Sets value for attribute inheritNewPermissions
-
getLoginUrl
public String getLoginUrl()
Gets value for attribute loginUrl
-
setLoginUrl
public void setLoginUrl(String loginUrl)
Sets value for attribute loginUrl
-
getLoginName
public String getLoginName()
Gets value for attribute loginName
-
setLoginName
public void setLoginName(String loginName)
Sets value for attribute loginName
-
getLaunchType
public LaunchType getLaunchType()
Gets value for attribute launchType
-
setLaunchType
public void setLaunchType(LaunchType launchType)
Sets value for attribute launchType
-
getJumpServerGroup
public String getJumpServerGroup()
Gets value for attribute jumpServerGroup
-
setJumpServerGroup
public void setJumpServerGroup(String jumpServerGroup)
Sets value for attribute jumpServerGroup
-
getCreated
public Date getCreated()
Gets value for attribute created
-
setCreated
public void setCreated(Date created)
Sets value for attribute created
-
getLastLogin
public Calendar getLastLogin()
Gets value for attribute lastLogin
-
setLastLogin
public void setLastLogin(Calendar lastLogin)
Sets value for attribute lastLogin
-
getLastChange
public Date getLastChange()
Gets value for attribute lastChange
-
setLastChange
public void setLastChange(Date lastChange)
Sets value for attribute lastChange
-
getLastUpdated
public Calendar getLastUpdated()
Gets value for attribute lastUpdated
-
setLastUpdated
public void setLastUpdated(Calendar lastUpdated)
Sets value for attribute lastUpdated
-
getLastPasswordSet
public Calendar getLastPasswordSet()
Gets value for attribute lastPasswordSet
-
setLastPasswordSet
public void setLastPasswordSet(Calendar lastPasswordSet)
Sets value for attribute lastPasswordSet
-
getPasswordExpiration
public Calendar getPasswordExpiration()
Gets value for attribute passwordExpiration
-
setPasswordExpiration
public void setPasswordExpiration(Calendar passwordExpiration)
Sets value for attribute passwordExpiration
-
getLockedBy
public String getLockedBy()
Gets value for attribute lockedBy
-
setLockedBy
public void setLockedBy(String lockedBy)
Sets value for attribute lockedBy
-
getPasswordStatus
public PasswordValidation getPasswordStatus()
Gets value for attribute passwordStatus
-
setPasswordStatus
public void setPasswordStatus(PasswordValidation passwordStatus)
Sets value for attribute passwordStatus
-
setAttributes
public void setAttributes(Map<String,Object> attributes)
Sets value for attribute attributes
-
isHasSnapshot
public boolean isHasSnapshot()
Gets value for attribute hasSnapshot
-
setHasSnapshot
public void setHasSnapshot(boolean hasSnapshot)
Sets value for attribute hasSnapshot
-
toString
public String toString()
Returns a string representation of the value object.
-
toAccount
public static Account toAccount(Account vo)
Creates a Account value object based on a Account object.
-
toAccountList
public static List<Account> toAccountList(Collection<Account> source)
Creates a Account list on a Account collection.
-
toAccountList
public static PagedResult<Account> toAccountList(PagedResult<Account> source)
Creates a Account pagedResult on a Account collection.
-
toAccountAsyncList
public static AsyncList<Account> toAccountAsyncList(AsyncList<Account> source)
Creates a Account asynclist on a Account collection.
-
toAccountArray
public static Account[] toAccountArray(Account[] source)
Creates a Account array on a Account array.
-
-