Package net.simplace.ui.user
Class UserRightsObject
java.lang.Object
net.simplace.ui.user.UserRightsObject
Object containing user data including its rights to open functions of the software.
- Author:
- Andreas Enders
-
Constructor Summary
ConstructorsConstructorDescriptionConstucts UserRightsObject form the Object registrated in SystemUserRightsObject(String aXMLContent) Constucts UserRightsObject form XML StringUserRightsObject(String aUserKey, String aPW) Constucts UserRightsObject form the Object registrated in SystemUserRightsObject(org.jdom2.Element aUserElement) Constucts UserRightsObject form JDOM Element -
Method Summary
Modifier and TypeMethodDescriptionvoidaddUserGroup(String aUserGroup) add one UserGroup UserGroups-List for which the user is registeredgetCity()getEMail()getFax()getName()getPhone()getTitle()getting UserGroups-List for which the user is registeredbooleanisPWCorrect(String aPassword) booleanisUserInGroup(String aUserGroup) getting UserGroups-List for which the user is registeredvoidvoidsetCountry(String aCountry) voidsetDepartment(String aDepartment) voidvoidsetExternID(String aExternID) voidvoidsetFirstName(String aFirstName) voidvoidvoidsetPostalCode(String aPostalCode) voidvoidvoidtoString()
-
Constructor Details
-
UserRightsObject
public UserRightsObject()Constucts UserRightsObject form the Object registrated in System -
UserRightsObject
Constucts UserRightsObject form the Object registrated in System- Parameters:
aUserKey-aPW-
-
UserRightsObject
Constucts UserRightsObject form XML String- Parameters:
aXMLContent-- Throws:
Exception
-
UserRightsObject
Constucts UserRightsObject form JDOM Element- Parameters:
aUserElement-- Throws:
FileFormatException
-
-
Method Details
-
getUserGroups
getting UserGroups-List for which the user is registered- Returns:
- List of Strings of UserGroups
-
addUserGroup
add one UserGroup UserGroups-List for which the user is registered- Parameters:
aUserGroup- String of UserGroup
-
isUserInGroup
getting UserGroups-List for which the user is registered- Parameters:
aUserGroup-- Returns:
- if User is registered for
-
getAutostartfunction
- Returns:
- the users autostartFunction
-
getCity
- Returns:
- the users city
-
setCity
- Parameters:
aCity-
-
getCountry
- Returns:
- the users country
-
setCountry
- Parameters:
aCountry-
-
getDepartment
- Returns:
- the users department
-
setDepartment
- Parameters:
aDepartment-
-
getEMail
- Returns:
- the users mail-address
-
setEMail
- Parameters:
aMail-
-
getExternID
- Returns:
- the extern id
-
setExternID
- Parameters:
aExternID-
-
getFax
- Returns:
- the fax number
-
setFax
- Parameters:
aFax-
-
getFirstName
- Returns:
- first name
-
setFirstName
- Parameters:
aFirstName-
-
getName
- Returns:
- single name
-
setName
- Parameters:
aName-
-
getPhone
- Returns:
- phone number
-
setPhone
- Parameters:
aPhone-
-
getPostalCode
- Returns:
- postal code
-
setPostalCode
- Parameters:
aPostalCode-
-
isPWCorrect
- Parameters:
aPassword-- Returns:
- if password is correct
-
getPassword
- Returns:
- the password
-
setPW
- Parameters:
aPw-
-
getStreet
- Returns:
- the street
-
setStreet
- Parameters:
aStreet-
-
getTitle
- Returns:
- the title
-
setTitle
- Parameters:
aTitle-
-
getUserKey
- Returns:
- the userKey (identifier)
-
toString
-