Package sk.iway.iwcm.users
Class UserDetails
java.lang.Object
sk.iway.iwcm.users.UserDetails
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Identity
Drzi info o pouzivatelovi (z tabulky users)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected Map<String,SettingsAdminBean> protected Stringprotected booleanprotected Stringprotected Stringprotected booleanprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected intprotected Stringprotected Dateprotected Stringprotected Stringprotected Stringprotected Stringprotected intprotected Stringprotected Stringprotected Stringprotected Stringprotected intprotected longprotected Stringprotected Map<String,SettingsBean> protected booleanprotected booleanprotected Stringprotected Stringprotected Stringprotected Stringprotected UserGroupVerifyprotected intprotected Stringprotected String -
Constructor Summary
ConstructorsConstructorDescriptionPrazdny konstruktorUserDetails(ResultSet rs) UserDetails(javax.servlet.http.HttpServletRequest request) Konstruktor z HTTP requestu -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToGroup(int groupId) voidbooleanVrati custom nastavenia admin casti pouzivatela (z tabulky user_settings_admin) v mape, kde key je nazov nastavenia a value je objekt admin nastavenia SettingsAdminBeanGets the adminString attribute of the UserDetails objectGets the adress attribute of the UserDetails objectgetCity()Gets the company attribute of the UserDetails objectGets the country attribute of the UserDetails objectGets the deliveryFullName attribute of the UserDetails objectgetEditableGroups(boolean addMultiwebCheck) Returns editable groups for user, if empty, for multiweb it automatically add root groups for current domaingetEmail()Gets the email attribute of the UserDetails objectgetFax()getFaxId()intGets the fullName attribute of the UserDetails objectgetLogin()Gets the login attribute of the UserDetails objectintgetPhone()Gets the phone attribute of the UserDetails objectgetPhoto()getPSC()Gets the pSC attribute of the UserDetails objectintlonggetSalt()Vrati custom nastavenia pouzivatela (z tabulky user_settings)Vrati signaturu ako HTML kod s replace znackami ([img]...)getTitle()intGets the userId attribute of the UserDetails objectgetZip()booleanisAdmin()Gets the admin attribute of the UserDetails objectbooleanPozor musi byt naplnene, nedetekuje samo!!!booleanGets the authorized attribute of the UserDetails objectbooleanisFolderWritable(String folder) Zisti, ci pouzivatel moze zapisovat subory do zadaneho adresarabooleanisInUserGroup(int userGroupId) Vrati true ak je pouzivatel v zadanej skupinebooleanisInUserGroup(String userGroupName) Vrati true ak je pouzivatel v zadanej skupinebooleanbooleanvoidremoveFromGroup(int groupId) voidsetAdmin(boolean admin) Sets the admin attribute of the UserDetails objectvoidsetAdminSettings(Map<String, SettingsAdminBean> adminSettings) voidSets the adress attribute of the UserDetails objectvoidsetAllowDateLogin(boolean allowDateLogin) voidsetAllowLoginEnd(String allowLoginEnd) voidsetAllowLoginStart(String allowLoginStart) voidsetAuthorized(boolean authorized) Sets the authorized attribute of the UserDetails objectvoidvoidsetCompany(String company) Sets the company attribute of the UserDetails objectvoidsetCountry(String country) Sets the country attribute of the UserDetails objectvoidsetDateOfBirth(String dateOfBirth) voidsetDeliveryAdress(String deliveryAdress) voidsetDeliveryCity(String deliveryCity) voidsetDeliveryCompany(String deliveryCompany) voidsetDeliveryCountry(String deliveryCountry) voidsetDeliveryFirstName(String deliveryFirstName) voidsetDeliveryLastName(String deliveryLastName) voidsetDeliveryPhone(String deliveryPhone) voidsetDeliveryPsc(String deliveryPsc) voidsetEditableGroups(String editableGroups) voidsetEditablePages(String editablePages) voidSets the email attribute of the UserDetails objectvoidsetEmailAddress(String emailAddress) voidvoidvoidvoidvoidvoidvoidvoidsetFirstName(String firstName) voidsetForumRank(int forumRank) voidsetLastLogon(String lastLogon) voidsetLastLogonAsDate(Date lastLogonAsDate) voidsetLastName(String lastName) voidSets the login attribute of the UserDetails objectvoidsetMobileDevice(String mobileDevice) voidsetOldPassword(String oldPassword) voidsetParentId(int parentId) voidsetPassword(String password) voidsetPasswordPlain(String password) Deprecated.- user directly setPassword, it will be hashed in UsersDB.saveUservoidSets the phone attribute of the UserDetails objectvoidvoidsetPosition(String position) voidsetPositionId(String positionId) voidSets the pSC attribute of the UserDetails objectvoidsetRatingRank(int ratingRank) voidsetRegDate(long regDate) voidvoidsetSettings(Map<String, SettingsBean> settings) voidsetSettingsDontSave(boolean settingsDontSave) voidsetSexMale(boolean sexMale) voidsetSignature(String signature) voidvoidsetUserGroupsIds(String ugi) voidsetUserGroupsNames(String userGroupsNames) voidsetUserId(int userId) Sets the userId attribute of the UserDetails objectvoidsetWritableFolders(String writableFolders) voidvoidsplitFullName(String fullName) toString()
-
Field Details
-
userId
protected int userId -
login
-
admin
protected boolean admin -
company
-
adress
-
email
-
country
-
phone
-
zipCode
-
authorized
protected boolean authorized -
userGroupsIds
-
userGroupsNames
-
city
-
password
-
oldPassword
-
lastLogon
-
lastLogonAsDate
-
title
-
firstName
-
lastName
-
fieldA
-
fieldB
-
fieldC
-
fieldD
-
fieldE
-
regDate
protected long regDate -
dateOfBirth
-
photo
-
signature
-
sexMale
protected boolean sexMale -
forumRank
protected int forumRank -
ratingRank
protected int ratingRank -
editableGroups
-
editablePages
-
writableFolders
-
userGroupVerify
-
allowLoginStart
-
allowLoginEnd
-
allowDateLogin
protected boolean allowDateLogin -
fax
-
deliveryFirstName
-
deliveryLastName
-
deliveryCompany
-
deliveryAdress
-
deliveryCity
-
deliveryPsc
-
deliveryCountry
-
deliveryPhone
-
position
-
parentId
protected int parentId -
salt
-
mobileDevice
-
settings
-
adminSettings
-
settingsDontSave
protected boolean settingsDontSave
-
-
Constructor Details
-
UserDetails
public UserDetails()Prazdny konstruktor -
UserDetails
- Throws:
Exception
-
UserDetails
public UserDetails(javax.servlet.http.HttpServletRequest request) Konstruktor z HTTP requestu
-
-
Method Details
-
isInUserGroup
public boolean isInUserGroup(int userGroupId) Vrati true ak je pouzivatel v zadanej skupine- Parameters:
userGroupId-- Returns:
-
isInUserGroup
Vrati true ak je pouzivatel v zadanej skupine- Parameters:
userGroupName-- Returns:
-
getSettings
Vrati custom nastavenia pouzivatela (z tabulky user_settings)- Returns:
-
getSettingsNotLoad
-
clearSettings
public void clearSettings() -
getAdminSettings
Vrati custom nastavenia admin casti pouzivatela (z tabulky user_settings_admin) v mape, kde key je nazov nastavenia a value je objekt admin nastavenia SettingsAdminBean -
getUserId
public int getUserId()Gets the userId attribute of the UserDetails object- Returns:
- The userId value
-
setUserId
public void setUserId(int userId) Sets the userId attribute of the UserDetails object- Parameters:
userId- The new userId value
-
getFullName
Gets the fullName attribute of the UserDetails object- Returns:
- The fullName value
-
getDeliveryFullName
Gets the deliveryFullName attribute of the UserDetails object- Returns:
- The fullName value
-
setLogin
Sets the login attribute of the UserDetails object- Parameters:
login- The new login value
-
getLogin
Gets the login attribute of the UserDetails object- Returns:
- The login value
-
setAdmin
public void setAdmin(boolean admin) Sets the admin attribute of the UserDetails object- Parameters:
admin- The new admin value
-
isAdmin
public boolean isAdmin()Gets the admin attribute of the UserDetails object- Returns:
- The admin value
-
getAdminString
Gets the adminString attribute of the UserDetails object- Returns:
- The adminString value
-
setCompany
Sets the company attribute of the UserDetails object- Parameters:
company- The new company value
-
getCompany
Gets the company attribute of the UserDetails object- Returns:
- The company value
-
setAdress
Sets the adress attribute of the UserDetails object- Parameters:
adress- The new adress value
-
getAdress
Gets the adress attribute of the UserDetails object- Returns:
- The adress value
-
setEmail
Sets the email attribute of the UserDetails object- Parameters:
email- The new email value
-
getEmail
Gets the email attribute of the UserDetails object- Returns:
- The email value
-
setPSC
Sets the pSC attribute of the UserDetails object- Parameters:
PSC- The new pSC value
-
getPSC
Gets the pSC attribute of the UserDetails object- Returns:
- The pSC value
-
setCountry
Sets the country attribute of the UserDetails object- Parameters:
country- The new country value
-
getCountry
Gets the country attribute of the UserDetails object- Returns:
- The country value
-
setPhone
Sets the phone attribute of the UserDetails object- Parameters:
phone- The new phone value
-
getPhone
Gets the phone attribute of the UserDetails object- Returns:
- The phone value
-
setAuthorized
public void setAuthorized(boolean authorized) Sets the authorized attribute of the UserDetails object- Parameters:
authorized- The new authorized value
-
isAuthorized
public boolean isAuthorized()Gets the authorized attribute of the UserDetails object- Returns:
- The authorized value
-
setUserGroupsIds
-
getUserGroupsIds
-
setUserGroupsNames
-
getUserGroupsNames
-
setCity
-
getCity
-
getPassword
-
setPassword
-
setPasswordPlain
Deprecated.- user directly setPassword, it will be hashed in UsersDB.saveUserSet password- Parameters:
password-
-
setLastLogon
-
setLastLogonAsDate
-
getLastLogon
-
getLastLogonAsDate
-
getTitle
-
setTitle
-
getFirstName
-
setFirstName
-
getLastName
-
setLastName
-
splitFullName
-
getFieldA
-
setFieldA
-
getFieldB
-
setFieldB
-
getFieldC
-
setFieldC
-
getFieldD
-
setFieldD
-
getFieldE
-
setFieldE
-
getRegDate
public long getRegDate() -
setRegDate
public void setRegDate(long regDate) -
getEmailAddress
-
setEmailAddress
-
getDateOfBirth
- Returns:
- Returns the dateOfBirth.
-
setDateOfBirth
- Parameters:
dateOfBirth- The dateOfBirth to set.
-
getPhoto
- Returns:
- Returns the photo.
-
getPhotoSmall
-
getPhotoNormal
-
getPhotoOriginal
-
setPhoto
- Parameters:
photo- The photo to set.
-
isSexMale
public boolean isSexMale()- Returns:
- Returns the sexMale.
-
setSexMale
public void setSexMale(boolean sexMale) - Parameters:
sexMale- The sexMale to set.
-
getSignature
- Returns:
- Returns the signature.
-
getSignatureReplaced
Vrati signaturu ako HTML kod s replace znackami ([img]...)- Returns:
-
setSignature
- Parameters:
signature- The signature to set.
-
getRegDateString
-
getForumRank
public int getForumRank()- Returns:
- Returns the forumRank.
-
setForumRank
public void setForumRank(int forumRank) - Parameters:
forumRank- The forumRank to set.
-
getRatingRank
public int getRatingRank()- Returns:
- Returns the ratingRank.
-
setRatingRank
public void setRatingRank(int ratingRank) - Parameters:
ratingRank- The ratingRank to set.
-
getEditableGroups
- Returns:
- Returns the editableGroups.
-
getEditableGroups
Returns editable groups for user, if empty, for multiweb it automatically add root groups for current domain- Parameters:
addMultiwebCheck-- Returns:
-
setEditableGroups
- Parameters:
editableGroups- The editableGroups to set.
-
getEditablePages
- Returns:
- Returns the editablePages.
-
setEditablePages
- Parameters:
editablePages- The editablePages to set.
-
getWritableFolders
- Returns:
- Returns the writableFolders.
-
getWritableFoldersList
-
setWritableFolders
- Parameters:
writableFolders- The writableFolders to set.
-
getAllowLoginEnd
-
setAllowLoginEnd
-
getAllowLoginStart
-
setAllowLoginStart
-
isAllowDateLogin
public boolean isAllowDateLogin()Pozor musi byt naplnene, nedetekuje samo!!!- Returns:
-
setAllowDateLogin
public void setAllowDateLogin(boolean allowDateLogin) -
addToGroup
public void addToGroup(int groupId) -
removeFromGroup
public void removeFromGroup(int groupId) -
getUserGroupVerify
-
getDeliveryCity
-
setDeliveryCity
-
getDeliveryCompany
-
setDeliveryCompany
-
getDeliveryCountry
-
setDeliveryCountry
-
getDeliveryFirstName
-
setDeliveryFirstName
-
getDeliveryLastName
-
setDeliveryLastName
-
getDeliveryPhone
-
setDeliveryPhone
-
getDeliveryPsc
-
setDeliveryPsc
-
getDeliveryAdress
-
setDeliveryAdress
-
getFax
-
setFax
-
setFaxId
-
getFaxId
-
setZip
-
getZip
-
setSettings
-
setAdminSettings
-
isSettingsDontSave
public boolean isSettingsDontSave() -
setSettingsDontSave
public void setSettingsDontSave(boolean settingsDontSave) -
getPosition
-
getPositionId
-
setPositionId
-
setPosition
-
getParentId
public int getParentId() -
setParentId
public void setParentId(int parentId) -
getSalt
-
setSalt
-
toString
-
equals
-
isFolderWritable
Zisti, ci pouzivatel moze zapisovat subory do zadaneho adresara- Parameters:
folder-- Returns:
-
getMobileDevice
-
setMobileDevice
-
getOldPassword
-
setOldPassword
-