| java.lang.Object com.flexive.shared.AbstractSelectableObjectWithName com.flexive.shared.security.Account
Account | public class Account extends AbstractSelectableObjectWithName implements Serializable(Code) | | User account class.
author: Gregor Schober (gregor.schober@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at) author: Daniel Lichtenberger (daniel.lichtenberger@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at) |
Constructor Summary | |
public | Account() | public | Account(long id, String name, String loginName, long mandator, String email, FxLanguage language, boolean active, boolean validated, Date validFrom, Date validTo, long defaultNode, String description, long contactDataId, boolean allowMultiLogin, String updateToken, LifeCycleInfo lifeCycleInfo) |
NULL_ACCOUNT | final public static long NULL_ACCOUNT(Code) | | Dummy account (id if a null value cannot be applied)
|
USER_GLOBAL_SUPERVISOR | final public static long USER_GLOBAL_SUPERVISOR(Code) | | The supervisor. This user is in all roles and may operate on all mandators
|
USER_GUEST | final public static long USER_GUEST(Code) | | The guest user. Everyone who is not logged in is treated as GUEST
|
VALID_FOREVER | final public static Date VALID_FOREVER(Code) | | 01.01.3000
|
Account | public Account(long id, String name, String loginName, long mandator, String email, FxLanguage language, boolean active, boolean validated, Date validFrom, Date validTo, long defaultNode, String description, long contactDataId, boolean allowMultiLogin, String updateToken, LifeCycleInfo lifeCycleInfo)(Code) | | |
getContactData | public FxPK getContactData()(Code) | | Get the primary key of the contact data object holding further informations
of the user.
the id of the contact data object |
getContactDataId | public long getContactDataId()(Code) | | Get the id of the contact data instance associated to this account
contact data id |
getDefaultNode | public long getDefaultNode()(Code) | | Returns the desired default node of the user.
May be -1 if no default node is defined.
the desired default node of the user |
getDescription | public String getDescription()(Code) | | Gets the description if the user.
The result may be a empty String (but is never null)
the description if the user |
getEmail | public String getEmail()(Code) | | Returns the email of the user.
the email of the user |
getId | public long getId()(Code) | | Returns the unique user id.
the unique user id. |
getLanguage | public FxLanguage getLanguage()(Code) | | Returns the language of the user.
the language of the user |
getLifeCycleInfo | public LifeCycleInfo getLifeCycleInfo()(Code) | | Get the lifecycle information
lifecycle information |
getLoginName | public String getLoginName()(Code) | | Returns the login name of the user.
the login name of the user. |
getMandatorId | public long getMandatorId()(Code) | | Returns the unique id of the mandator this user belongs to.
the unique id of the mandator this user belongs to. |
getName | public String getName()(Code) | | Returns the user name.
the user name. |
getUpdateToken | public String getUpdateToken()(Code) | | Returns the update token of this account. The update token may be used
in external API calls modifying this account to improve security.
the update token of this account |
getValidFrom | public Date getValidFrom()(Code) | | Returns the valid from date of the user.
The valid from/to dates may be used to define a timeperiode
in which the user may LOG in.
the valid from date of the user |
getValidFromString | public String getValidFromString()(Code) | | Returns the valid from date of the user.
The valid from/to dates may be used to define a timeperiode
in which the user may LOG in.
the valid from date of the user |
getValidTo | public Date getValidTo()(Code) | | Returns the valid to date of the user.
The valid from/to dates may be used to define a timeperiode
in which the user may LOG in.
the valid to date of the user |
getValidToString | public String getValidToString()(Code) | | Returns the valid to date of the user.
The valid from/to dates may be used to define a timeperiode
in which the user may LOG in.
the valid to date of the user |
isActive | public boolean isActive()(Code) | | Return true if the user is active.
true if the user is active |
isAllowMultiLogin | public boolean isAllowMultiLogin()(Code) | | Is this account allowed to be logged in more than once?
multi login allowed? |
isNew | public boolean isNew()(Code) | | Is this account instance new? (i.e. not saved yet)
if new |
isSystemInternalAccount | public boolean isSystemInternalAccount()(Code) | | Is this a system internal account?
system internal account |
isValidated | public boolean isValidated()(Code) | | Returns true if the user is validated.
true if the user is validated |
setActive | public void setActive(boolean bActive)(Code) | | |
setAllowMultiLogin | public void setAllowMultiLogin(boolean bAllowMultiLogin)(Code) | | |
setContactDataId | public void setContactDataId(long lContactDataId)(Code) | | |
setDefaultNode | public void setDefaultNode(long lDefaultNode)(Code) | | |
setDescription | public void setDescription(String sDescription)(Code) | | |
setLoginName | public void setLoginName(String sLoginName)(Code) | | |
setMandatorId | public void setMandatorId(long iMandator)(Code) | | |
setValidFrom | public void setValidFrom(Date dValidFrom)(Code) | | |
setValidTo | public void setValidTo(Date dValidTo)(Code) | | |
setValidated | public void setValidated(boolean bValidated)(Code) | | |
|
|