Class Account
- java.lang.Object
-
- es.bsc.dataclay.util.MgrObject<AccountID>
-
- es.bsc.dataclay.util.management.accountmgr.Account
-
-
Constructor Summary
Constructors Constructor Description Account()Creates an empty accountAccount(String newusername, AccountRole newrole, PasswordCredential newcredential)Account constructor with provided username, role and credentials.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object t)PasswordCredentialgetCredential()Get the Account::credentialID of this Account.AccountRolegetRole()Get the role of this AccountStringgetUsername()Get the username of this AccountinthashCode()voidsetCredential(PasswordCredential newcredential)Set the Account::credential of this Account.voidsetRole(AccountRole newrole)Set the Account::role of this Account.voidsetUsername(String newusername)Set the Account::username of this Account-
Methods inherited from class es.bsc.dataclay.util.MgrObject
getDataClayID, setDataClayID
-
-
-
-
Constructor Detail
-
Account
public Account()
Creates an empty account
-
Account
public Account(String newusername, AccountRole newrole, PasswordCredential newcredential)
Account constructor with provided username, role and credentials.- Parameters:
newusername- Username to be setnewrole- Role to be setnewcredential- Credential to be associated
-
-
Method Detail
-
getUsername
public String getUsername()
Get the username of this Account- Returns:
- Account::username of this Account.
-
setUsername
public void setUsername(String newusername)
Set the Account::username of this Account- Parameters:
newusername- New username to be set
-
getRole
public AccountRole getRole()
Get the role of this Account- Returns:
- Account::role of container Account.
-
setRole
public void setRole(AccountRole newrole)
Set the Account::role of this Account.- Parameters:
newrole- New role to be set
-
getCredential
public PasswordCredential getCredential()
Get the Account::credentialID of this Account.- Returns:
- the credential
-
setCredential
public void setCredential(PasswordCredential newcredential)
Set the Account::credential of this Account.- Parameters:
newcredential- the credential
-
-