Class UserDetails

java.lang.Object
sk.iway.iwcm.users.UserDetails
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Identity

public class UserDetails extends Object implements Serializable
Drzi info o pouzivatelovi (z tabulky users)
See Also:
  • Field Details

    • userId

      protected int userId
    • login

      protected String login
    • admin

      protected boolean admin
    • company

      protected String company
    • adress

      protected String adress
    • email

      protected String email
    • country

      protected String country
    • phone

      protected String phone
    • zipCode

      protected String zipCode
    • authorized

      protected boolean authorized
    • userGroupsIds

      protected String userGroupsIds
    • userGroupsNames

      protected String userGroupsNames
    • city

      protected String city
    • password

      protected String password
    • oldPassword

      protected String oldPassword
    • lastLogon

      protected String lastLogon
    • lastLogonAsDate

      protected Date lastLogonAsDate
    • title

      protected String title
    • firstName

      protected String firstName
    • lastName

      protected String lastName
    • fieldA

      protected String fieldA
    • fieldB

      protected String fieldB
    • fieldC

      protected String fieldC
    • fieldD

      protected String fieldD
    • fieldE

      protected String fieldE
    • regDate

      protected long regDate
    • dateOfBirth

      protected String dateOfBirth
    • photo

      protected String photo
    • signature

      protected String signature
    • sexMale

      protected boolean sexMale
    • forumRank

      protected int forumRank
    • ratingRank

      protected int ratingRank
    • editableGroups

      protected String editableGroups
    • editablePages

      protected String editablePages
    • writableFolders

      protected String writableFolders
    • userGroupVerify

      protected transient UserGroupVerify userGroupVerify
    • allowLoginStart

      protected String allowLoginStart
    • allowLoginEnd

      protected String allowLoginEnd
    • allowDateLogin

      protected boolean allowDateLogin
    • fax

      protected String fax
    • deliveryFirstName

      protected String deliveryFirstName
    • deliveryLastName

      protected String deliveryLastName
    • deliveryCompany

      protected String deliveryCompany
    • deliveryAdress

      protected String deliveryAdress
    • deliveryCity

      protected String deliveryCity
    • deliveryPsc

      protected String deliveryPsc
    • deliveryCountry

      protected String deliveryCountry
    • deliveryPhone

      protected String deliveryPhone
    • position

      protected String position
    • parentId

      protected int parentId
    • salt

      protected String salt
    • mobileDevice

      protected String mobileDevice
    • settings

      protected transient Map<String,SettingsBean> settings
    • adminSettings

      protected transient Map<String,SettingsAdminBean> adminSettings
    • settingsDontSave

      protected boolean settingsDontSave
  • Constructor Details

    • UserDetails

      public UserDetails()
      Prazdny konstruktor
    • UserDetails

      public UserDetails(ResultSet rs) throws Exception
      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

      public boolean isInUserGroup(String userGroupName)
      Vrati true ak je pouzivatel v zadanej skupine
      Parameters:
      userGroupName -
      Returns:
    • getSettings

      public Map<String,SettingsBean> getSettings()
      Vrati custom nastavenia pouzivatela (z tabulky user_settings)
      Returns:
    • getSettingsNotLoad

      public Map<String,SettingsBean> getSettingsNotLoad()
    • clearSettings

      public void clearSettings()
    • getAdminSettings

      public Map<String,SettingsAdminBean> 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

      public String getFullName()
      Gets the fullName attribute of the UserDetails object
      Returns:
      The fullName value
    • getDeliveryFullName

      public String getDeliveryFullName()
      Gets the deliveryFullName attribute of the UserDetails object
      Returns:
      The fullName value
    • setLogin

      public void setLogin(String login)
      Sets the login attribute of the UserDetails object
      Parameters:
      login - The new login value
    • getLogin

      public String 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

      public String getAdminString()
      Gets the adminString attribute of the UserDetails object
      Returns:
      The adminString value
    • setCompany

      public void setCompany(String company)
      Sets the company attribute of the UserDetails object
      Parameters:
      company - The new company value
    • getCompany

      public String getCompany()
      Gets the company attribute of the UserDetails object
      Returns:
      The company value
    • setAdress

      public void setAdress(String adress)
      Sets the adress attribute of the UserDetails object
      Parameters:
      adress - The new adress value
    • getAdress

      public String getAdress()
      Gets the adress attribute of the UserDetails object
      Returns:
      The adress value
    • setEmail

      public void setEmail(String email)
      Sets the email attribute of the UserDetails object
      Parameters:
      email - The new email value
    • getEmail

      public String getEmail()
      Gets the email attribute of the UserDetails object
      Returns:
      The email value
    • setPSC

      public void setPSC(String PSC)
      Sets the pSC attribute of the UserDetails object
      Parameters:
      PSC - The new pSC value
    • getPSC

      public String getPSC()
      Gets the pSC attribute of the UserDetails object
      Returns:
      The pSC value
    • setCountry

      public void setCountry(String country)
      Sets the country attribute of the UserDetails object
      Parameters:
      country - The new country value
    • getCountry

      public String getCountry()
      Gets the country attribute of the UserDetails object
      Returns:
      The country value
    • setPhone

      public void setPhone(String phone)
      Sets the phone attribute of the UserDetails object
      Parameters:
      phone - The new phone value
    • getPhone

      public String 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

      public void setUserGroupsIds(String ugi)
    • getUserGroupsIds

      public String getUserGroupsIds()
    • setUserGroupsNames

      public void setUserGroupsNames(String userGroupsNames)
    • getUserGroupsNames

      public String getUserGroupsNames()
    • setCity

      public void setCity(String city)
    • getCity

      public String getCity()
    • getPassword

      public String getPassword()
    • setPassword

      public void setPassword(String password)
    • setPasswordPlain

      @Deprecated public void setPasswordPlain(String password)
      Deprecated.
      - user directly setPassword, it will be hashed in UsersDB.saveUser
      Set password
      Parameters:
      password -
    • setLastLogon

      public void setLastLogon(String lastLogon)
    • setLastLogonAsDate

      public void setLastLogonAsDate(Date lastLogonAsDate)
    • getLastLogon

      public String getLastLogon()
    • getLastLogonAsDate

      public Date getLastLogonAsDate()
    • getTitle

      public String getTitle()
    • setTitle

      public void setTitle(String title)
    • getFirstName

      public String getFirstName()
    • setFirstName

      public void setFirstName(String firstName)
    • getLastName

      public String getLastName()
    • setLastName

      public void setLastName(String lastName)
    • splitFullName

      public void splitFullName(String fullName)
    • getFieldA

      public String getFieldA()
    • setFieldA

      public void setFieldA(String fieldA)
    • getFieldB

      public String getFieldB()
    • setFieldB

      public void setFieldB(String fieldB)
    • getFieldC

      public String getFieldC()
    • setFieldC

      public void setFieldC(String fieldC)
    • getFieldD

      public String getFieldD()
    • setFieldD

      public void setFieldD(String fieldD)
    • getFieldE

      public String getFieldE()
    • setFieldE

      public void setFieldE(String fieldE)
    • getRegDate

      public long getRegDate()
    • setRegDate

      public void setRegDate(long regDate)
    • getEmailAddress

      public String getEmailAddress()
    • setEmailAddress

      public void setEmailAddress(String emailAddress)
    • getDateOfBirth

      public String getDateOfBirth()
      Returns:
      Returns the dateOfBirth.
    • setDateOfBirth

      public void setDateOfBirth(String dateOfBirth)
      Parameters:
      dateOfBirth - The dateOfBirth to set.
    • getPhoto

      public String getPhoto()
      Returns:
      Returns the photo.
    • getPhotoSmall

      public String getPhotoSmall()
    • getPhotoNormal

      public String getPhotoNormal()
    • getPhotoOriginal

      public String getPhotoOriginal()
    • setPhoto

      public void setPhoto(String photo)
      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

      public String getSignature()
      Returns:
      Returns the signature.
    • getSignatureReplaced

      public String getSignatureReplaced()
      Vrati signaturu ako HTML kod s replace znackami ([img]...)
      Returns:
    • setSignature

      public void setSignature(String signature)
      Parameters:
      signature - The signature to set.
    • getRegDateString

      public String 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

      public String getEditableGroups()
      Returns:
      Returns the editableGroups.
    • getEditableGroups

      public String getEditableGroups(boolean addMultiwebCheck)
      Returns editable groups for user, if empty, for multiweb it automatically add root groups for current domain
      Parameters:
      addMultiwebCheck -
      Returns:
    • setEditableGroups

      public void setEditableGroups(String editableGroups)
      Parameters:
      editableGroups - The editableGroups to set.
    • getEditablePages

      public String getEditablePages()
      Returns:
      Returns the editablePages.
    • setEditablePages

      public void setEditablePages(String editablePages)
      Parameters:
      editablePages - The editablePages to set.
    • getWritableFolders

      public String getWritableFolders()
      Returns:
      Returns the writableFolders.
    • getWritableFoldersList

      public List<IwcmFile> getWritableFoldersList()
    • setWritableFolders

      public void setWritableFolders(String writableFolders)
      Parameters:
      writableFolders - The writableFolders to set.
    • getAllowLoginEnd

      public String getAllowLoginEnd()
    • setAllowLoginEnd

      public void setAllowLoginEnd(String allowLoginEnd)
    • getAllowLoginStart

      public String getAllowLoginStart()
    • setAllowLoginStart

      public void setAllowLoginStart(String allowLoginStart)
    • 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

      public UserGroupVerify getUserGroupVerify()
    • getDeliveryCity

      public String getDeliveryCity()
    • setDeliveryCity

      public void setDeliveryCity(String deliveryCity)
    • getDeliveryCompany

      public String getDeliveryCompany()
    • setDeliveryCompany

      public void setDeliveryCompany(String deliveryCompany)
    • getDeliveryCountry

      public String getDeliveryCountry()
    • setDeliveryCountry

      public void setDeliveryCountry(String deliveryCountry)
    • getDeliveryFirstName

      public String getDeliveryFirstName()
    • setDeliveryFirstName

      public void setDeliveryFirstName(String deliveryFirstName)
    • getDeliveryLastName

      public String getDeliveryLastName()
    • setDeliveryLastName

      public void setDeliveryLastName(String deliveryLastName)
    • getDeliveryPhone

      public String getDeliveryPhone()
    • setDeliveryPhone

      public void setDeliveryPhone(String deliveryPhone)
    • getDeliveryPsc

      public String getDeliveryPsc()
    • setDeliveryPsc

      public void setDeliveryPsc(String deliveryPsc)
    • getDeliveryAdress

      public String getDeliveryAdress()
    • setDeliveryAdress

      public void setDeliveryAdress(String deliveryAdress)
    • getFax

      public String getFax()
    • setFax

      public void setFax(String fax)
    • setFaxId

      public void setFaxId(String faxId)
    • getFaxId

      public String getFaxId()
    • setZip

      public void setZip(String zip)
    • getZip

      public String getZip()
    • setSettings

      public void setSettings(Map<String,SettingsBean> settings)
    • setAdminSettings

      public void setAdminSettings(Map<String,SettingsAdminBean> adminSettings)
    • isSettingsDontSave

      public boolean isSettingsDontSave()
    • setSettingsDontSave

      public void setSettingsDontSave(boolean settingsDontSave)
    • getPosition

      public String getPosition()
    • getPositionId

      public String getPositionId()
    • setPositionId

      public void setPositionId(String positionId)
    • setPosition

      public void setPosition(String position)
    • getParentId

      public int getParentId()
    • setParentId

      public void setParentId(int parentId)
    • getSalt

      public String getSalt()
    • setSalt

      public void setSalt(String salt)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • isFolderWritable

      public boolean isFolderWritable(String folder)
      Zisti, ci pouzivatel moze zapisovat subory do zadaneho adresara
      Parameters:
      folder -
      Returns:
    • getMobileDevice

      public String getMobileDevice()
    • setMobileDevice

      public void setMobileDevice(String mobileDevice)
    • getOldPassword

      public String getOldPassword()
    • setOldPassword

      public void setOldPassword(String oldPassword)