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 boolean
equals(Object t)
PasswordCredential
getCredential()
Get the Account::credentialID of this Account.AccountRole
getRole()
Get the role of this AccountString
getUsername()
Get the username of this Accountint
hashCode()
void
setCredential(PasswordCredential newcredential)
Set the Account::credential of this Account.void
setRole(AccountRole newrole)
Set the Account::role of this Account.void
setUsername(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
-
-