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 boolean
protected Map<String,
SettingsAdminBean> protected String
protected boolean
protected String
protected String
protected boolean
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected int
protected String
protected Date
protected String
protected String
protected String
protected String
protected int
protected String
protected String
protected String
protected String
protected int
protected long
protected String
protected Map<String,
SettingsBean> protected boolean
protected boolean
protected String
protected String
protected String
protected String
protected UserGroupVerify
protected int
protected String
protected String
-
Constructor Summary
ConstructorsConstructorDescriptionPrazdny konstruktorUserDetails
(ResultSet rs) UserDetails
(javax.servlet.http.HttpServletRequest request) Konstruktor z HTTP requestu -
Method Summary
Modifier and TypeMethodDescriptionvoid
addToGroup
(int groupId) void
boolean
Vrati 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()
int
Gets the fullName attribute of the UserDetails objectgetLogin()
Gets the login attribute of the UserDetails objectint
getPhone()
Gets the phone attribute of the UserDetails objectgetPhoto()
getPSC()
Gets the pSC attribute of the UserDetails objectint
long
getSalt()
Vrati custom nastavenia pouzivatela (z tabulky user_settings)Vrati signaturu ako HTML kod s replace znackami ([img]...)getTitle()
int
Gets the userId attribute of the UserDetails objectgetZip()
boolean
isAdmin()
Gets the admin attribute of the UserDetails objectboolean
Pozor musi byt naplnene, nedetekuje samo!!!boolean
Gets the authorized attribute of the UserDetails objectboolean
isFolderWritable
(String folder) Zisti, ci pouzivatel moze zapisovat subory do zadaneho adresaraboolean
isInUserGroup
(int userGroupId) Vrati true ak je pouzivatel v zadanej skupineboolean
isInUserGroup
(String userGroupName) Vrati true ak je pouzivatel v zadanej skupineboolean
boolean
void
removeFromGroup
(int groupId) void
setAdmin
(boolean admin) Sets the admin attribute of the UserDetails objectvoid
setAdminSettings
(Map<String, SettingsAdminBean> adminSettings) void
Sets the adress attribute of the UserDetails objectvoid
setAllowDateLogin
(boolean allowDateLogin) void
setAllowLoginEnd
(String allowLoginEnd) void
setAllowLoginStart
(String allowLoginStart) void
setAuthorized
(boolean authorized) Sets the authorized attribute of the UserDetails objectvoid
void
setCompany
(String company) Sets the company attribute of the UserDetails objectvoid
setCountry
(String country) Sets the country attribute of the UserDetails objectvoid
setDateOfBirth
(String dateOfBirth) void
setDeliveryAdress
(String deliveryAdress) void
setDeliveryCity
(String deliveryCity) void
setDeliveryCompany
(String deliveryCompany) void
setDeliveryCountry
(String deliveryCountry) void
setDeliveryFirstName
(String deliveryFirstName) void
setDeliveryLastName
(String deliveryLastName) void
setDeliveryPhone
(String deliveryPhone) void
setDeliveryPsc
(String deliveryPsc) void
setEditableGroups
(String editableGroups) void
setEditablePages
(String editablePages) void
Sets the email attribute of the UserDetails objectvoid
setEmailAddress
(String emailAddress) void
void
void
void
void
void
void
void
setFirstName
(String firstName) void
setForumRank
(int forumRank) void
setLastLogon
(String lastLogon) void
setLastLogonAsDate
(Date lastLogonAsDate) void
setLastName
(String lastName) void
Sets the login attribute of the UserDetails objectvoid
setMobileDevice
(String mobileDevice) void
setOldPassword
(String oldPassword) void
setParentId
(int parentId) void
setPassword
(String password) void
setPasswordPlain
(String password) Deprecated.- user directly setPassword, it will be hashed in UsersDB.saveUservoid
Sets the phone attribute of the UserDetails objectvoid
void
setPosition
(String position) void
setPositionId
(String positionId) void
Sets the pSC attribute of the UserDetails objectvoid
setRatingRank
(int ratingRank) void
setRegDate
(long regDate) void
void
setSettings
(Map<String, SettingsBean> settings) void
setSettingsDontSave
(boolean settingsDontSave) void
setSexMale
(boolean sexMale) void
setSignature
(String signature) void
void
setUserGroupsIds
(String ugi) void
setUserGroupsNames
(String userGroupsNames) void
setUserId
(int userId) Sets the userId attribute of the UserDetails objectvoid
setWritableFolders
(String writableFolders) void
void
splitFullName
(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
-