Package cl.obcom.desktopfx.core
Interface DesktopUser
public interface DesktopUser
Login user of the
Desktop
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Administrator User Type (Administrador) [A].static final int
Bank Office Type (Banco) [2].static final int
Broker User Type (Corredor) [C].static final int
Broker Dealer Office Type (Agente Recolector) [10].static final int
Brokerage Firm Office Type (Corredor de Bolsa) [8].static final int
Developer User Type (Desarrollador) [D].static final int
Insurance Company Office Type (Compañia de Seguros) [3].static final int
Mutual Fund Office Type (Fondo Mutuo) [1].static final int
Operator User Type (Operador) [O].static final int
Pension Fund Office Type (AFP) [4].static final int
Watcher User Type (Pasivo) [P]. -
Method Summary
Modifier and TypeMethodDescriptionReturns the billing code of this user.Returns the billing type of this user.Returns an unmodifiable collection of the capacities of this user.getCapacity
(String capacityCode) Returns the capacity indexed by the supplied capacity code.getCity()
Returns the city of this user.getCode()
Returns the identification of this user.Returns the commune of this user (comuna).Returns the Chilean RUT of the company of this user.Returns the contract annex of this user.Returns the contract code of this user.Returns the country of this user.int
Returns the identification of the employee of this user.Returns the father's name of this user (apellido paterno).getFax()
Returns the fax number of this user.Returns the first name of this user (nombre de pila).Returns the full name of this user (nombre paterno materno).int
Returns the identification of the group of this user.Returns the job title of this user.Returns the login type of this user.Returns the mail address of this user.Returns the name of the menu of the profile.Returns the XML with the profile menu definition.Returns the mother's name of this user (apellido materno).int
Returns the identification of the office of this user.int
Returns the type of the office of this user.Returns the primary phone number of this user.Returns the second phone number of this user.int
Returns the identification of the profile of this user.Returns the name of the profile of this user.Returns the realm of the profile of this user (familia).int
Returns the type of the profile of this user.Returns the region or state of this user.getRut()
Returns the Chilean RUT of this user.Returns the street of this user.Returns the realm of this user (familia).Returns the first date this user is valid.Returns the last date this user is valid.boolean
hasPrivilege
(int privilege) Returnstrue
if the user has a given privilege.
-
Field Details
-
ADMIN
static final int ADMINAdministrator User Type (Administrador) [A].- See Also:
-
DEVELOPER
static final int DEVELOPERDeveloper User Type (Desarrollador) [D].- See Also:
-
BROKER
static final int BROKERBroker User Type (Corredor) [C].- See Also:
-
OPERATOR
static final int OPERATOROperator User Type (Operador) [O].- See Also:
-
WATCHER
static final int WATCHERWatcher User Type (Pasivo) [P].- See Also:
-
MUTUAL_FUND
static final int MUTUAL_FUNDMutual Fund Office Type (Fondo Mutuo) [1].- See Also:
-
BANK
static final int BANKBank Office Type (Banco) [2].- See Also:
-
INSURANCE_COMPANY
static final int INSURANCE_COMPANYInsurance Company Office Type (Compañia de Seguros) [3].- See Also:
-
PENSION_FUND
static final int PENSION_FUNDPension Fund Office Type (AFP) [4].- See Also:
-
BROKERAGE_FIRM
static final int BROKERAGE_FIRMBrokerage Firm Office Type (Corredor de Bolsa) [8].- See Also:
-
BROKER_DEALER
static final int BROKER_DEALERBroker Dealer Office Type (Agente Recolector) [10].- See Also:
-
-
Method Details
-
getLoginType
LoginType getLoginType()Returns the login type of this user.- Returns:
- the login type of this user.
-
getCode
String getCode()Returns the identification of this user.- Returns:
- the identification of this user.
-
getFirstName
String getFirstName()Returns the first name of this user (nombre de pila).- Returns:
- the first name of this user (nombre de pila).
-
getFatherName
String getFatherName()Returns the father's name of this user (apellido paterno).- Returns:
- the father's name of this user (apellido paterno).
-
getMotherName
String getMotherName()Returns the mother's name of this user (apellido materno).- Returns:
- the mother's name of this user (apellido materno).
-
getFullName
String getFullName()Returns the full name of this user (nombre paterno materno).- Returns:
- the full name of this user (nombre paterno materno).
-
getRut
String getRut()Returns the Chilean RUT of this user.- Returns:
- the Chilean RUT of this user.
-
getJobTitle
String getJobTitle()Returns the job title of this user.- Returns:
- the job title of this user.
-
getUserValidFrom
Date getUserValidFrom()Returns the first date this user is valid.- Returns:
- the first date this user is valid.
-
getUserValidTo
Date getUserValidTo()Returns the last date this user is valid.- Returns:
- the last date this user is valid.
-
getStreet
String getStreet()Returns the street of this user.- Returns:
- the street of this user.
-
getCommune
String getCommune()Returns the commune of this user (comuna).- Returns:
- the commune of this user (comuna).
-
getCity
String getCity()Returns the city of this user.- Returns:
- the city of this user.
-
getRegion
String getRegion()Returns the region or state of this user.- Returns:
- the region or state of this user.
-
getCountry
String getCountry()Returns the country of this user.- Returns:
- the country of this user.
-
getMailAddress
String getMailAddress()Returns the mail address of this user.- Returns:
- the mail address of this user.
-
getPhone1
String getPhone1()Returns the primary phone number of this user.- Returns:
- the primary phone number of this user.
-
getPhone2
String getPhone2()Returns the second phone number of this user.- Returns:
- the second phone number of this user.
-
getFax
String getFax()Returns the fax number of this user.- Returns:
- the fax number of this user.
-
getUserRealm
String getUserRealm()Returns the realm of this user (familia).- Returns:
- the realm of this user (familia).
-
getCompanyRut
String getCompanyRut()Returns the Chilean RUT of the company of this user.- Returns:
- the Chilean RUT of the company of this user.
-
getBillingType
String getBillingType()Returns the billing type of this user.- Returns:
- the billing type of this user.
-
getBillingCode
String getBillingCode()Returns the billing code of this user.- Returns:
- the billing code of this user.
-
getContractCode
String getContractCode()Returns the contract code of this user.- Returns:
- the contract code of this user.
-
getContractAnnex
String getContractAnnex()Returns the contract annex of this user.- Returns:
- the contract annex of this user.
-
getProfileCode
int getProfileCode()Returns the identification of the profile of this user.- Returns:
- the identification of the profile of this user.
-
getGroupCode
int getGroupCode()Returns the identification of the group of this user.- Returns:
- the identification of the group of this user.
-
getOfficeCode
int getOfficeCode()Returns the identification of the office of this user.- Returns:
- the identification of the office of this user.
-
getEmployeeCode
int getEmployeeCode()Returns the identification of the employee of this user.- Returns:
- the identification of the employee of this user.
-
getProfileName
String getProfileName()Returns the name of the profile of this user.- Returns:
- the name of the profile of this user.
-
getProfileType
int getProfileType()Returns the type of the profile of this user.- Returns:
- the type of the profile of this user.
- See Also:
-
hasPrivilege
boolean hasPrivilege(int privilege) Returnstrue
if the user has a given privilege. The value ofprivilege
must be greater or equal than 1 and lower or equal than 160.- Parameters:
privilege
- the privilege index to test.- Returns:
true
if this user has theprivilege
.- Throws:
IllegalArgumentException
- ifprivilege
is out-of-range.
-
getProfileRealm
String getProfileRealm()Returns the realm of the profile of this user (familia).- Returns:
- the realm of the profile of this user (familia).
-
getMenuName
String getMenuName()Returns the name of the menu of the profile.- Returns:
- the name of the menu of the profile.
-
getMenuXml
Returns the XML with the profile menu definition.- Returns:
- the XML with the profile menu definition.
- Throws:
Exception
- if an error occurs.
-
getOfficeType
int getOfficeType()Returns the type of the office of this user.- Returns:
- the type of the office of this user.
- See Also:
-
getCapacities
Collection<UserCapacity> getCapacities()Returns an unmodifiable collection of the capacities of this user.- Returns:
- an unmodifiable collection of the capacities of this user.
-
getCapacity
Returns the capacity indexed by the supplied capacity code.- Parameters:
capacityCode
- the code of the required user capacity.- Returns:
- the capacity or
null
if the capacity is not defined. - Throws:
NullPointerException
- ifcapacityCode
isnull
.
-