Class DBMember

    • Field Detail

      • HIBERNATE_MAPPING_USAGE

        public static final int HIBERNATE_MAPPING_USAGE
        See Also:
        Constant Field Values
      • HIBERNATE_MAPPING_LOGIN

        public static final int HIBERNATE_MAPPING_LOGIN
        See Also:
        Constant Field Values
      • HIBERNATE_MAPPING_PASSWORD

        public static final int HIBERNATE_MAPPING_PASSWORD
        See Also:
        Constant Field Values
      • HIBERNATE_MAPPING_SALUTATION

        public static final int HIBERNATE_MAPPING_SALUTATION
        See Also:
        Constant Field Values
      • HIBERNATE_MAPPING_LASTNAME

        public static final int HIBERNATE_MAPPING_LASTNAME
        See Also:
        Constant Field Values
      • HIBERNATE_MAPPING_FIRSTNAME

        public static final int HIBERNATE_MAPPING_FIRSTNAME
        See Also:
        Constant Field Values
      • HIBERNATE_MAPPING_ORGANIZATION

        public static final int HIBERNATE_MAPPING_ORGANIZATION
        See Also:
        Constant Field Values
      • HIBERNATE_MAPPING_DEPARTMENT

        public static final int HIBERNATE_MAPPING_DEPARTMENT
        See Also:
        Constant Field Values
      • HIBERNATE_MAPPING_JOBTITLE

        public static final int HIBERNATE_MAPPING_JOBTITLE
        See Also:
        Constant Field Values
      • HIBERNATE_MAPPING_PHONE

        public static final int HIBERNATE_MAPPING_PHONE
        See Also:
        Constant Field Values
      • HIBERNATE_MAPPING_MOBILE

        public static final int HIBERNATE_MAPPING_MOBILE
        See Also:
        Constant Field Values
      • HIBERNATE_MAPPING_ADDRESS

        public static final int HIBERNATE_MAPPING_ADDRESS
        See Also:
        Constant Field Values
      • HIBERNATE_MAPPING_LOCALE

        public static final int HIBERNATE_MAPPING_LOCALE
        See Also:
        Constant Field Values
      • HIBERNATE_MAPPING_PHOTO

        public static final int HIBERNATE_MAPPING_PHOTO
        See Also:
        Constant Field Values
      • HIBERNATE_MAPPING_EMAIL

        public static final int HIBERNATE_MAPPING_EMAIL
        See Also:
        Constant Field Values
      • HIBERNATE_MAPPING_EMAILPUBLIC

        public static final int HIBERNATE_MAPPING_EMAILPUBLIC
        See Also:
        Constant Field Values
      • HIBERNATE_MAPPING_LASTLOGINTIMES

        public static final int HIBERNATE_MAPPING_LASTLOGINTIMES
        See Also:
        Constant Field Values
      • HIBERNATE_MAPPING_ENCODEDALERTRULES

        public static final int HIBERNATE_MAPPING_ENCODEDALERTRULES
        See Also:
        Constant Field Values
      • HIBERNATE_MAPPING_STREET

        public static final int HIBERNATE_MAPPING_STREET
        See Also:
        Constant Field Values
      • HIBERNATE_MAPPING_POSTALCODE

        public static final int HIBERNATE_MAPPING_POSTALCODE
        See Also:
        Constant Field Values
      • HIBERNATE_MAPPING_POBOX

        public static final int HIBERNATE_MAPPING_POBOX
        See Also:
        Constant Field Values
      • HIBERNATE_MAPPING_REGION

        public static final int HIBERNATE_MAPPING_REGION
        See Also:
        Constant Field Values
      • HIBERNATE_MAPPING_LOCALITY

        public static final int HIBERNATE_MAPPING_LOCALITY
        See Also:
        Constant Field Values
      • HIBERNATE_MAPPING_DECLAREDMANAGERID

        public static final int HIBERNATE_MAPPING_DECLAREDMANAGERID
        See Also:
        Constant Field Values
      • HIBERNATE_MAPPING_ASSISTANTID

        public static final int HIBERNATE_MAPPING_ASSISTANTID
        See Also:
        Constant Field Values
      • HIBERNATE_MAPPING_LDAPSYNCHRO

        public static final int HIBERNATE_MAPPING_LDAPSYNCHRO
        See Also:
        Constant Field Values
      • HIBERNATE_MAPPING_LASTLDAPSYNCHRO

        public static final int HIBERNATE_MAPPING_LASTLDAPSYNCHRO
        See Also:
        Constant Field Values
      • HIBERNATE_MAPPING_ZONEID

        public static final int HIBERNATE_MAPPING_ZONEID
        See Also:
        Constant Field Values
      • HIBERNATE_MAPPING_OPAUTHORID

        public static final int HIBERNATE_MAPPING_OPAUTHORID
        See Also:
        Constant Field Values
      • gids

        protected transient java.lang.String gids
      • lastLoginDateSet

        protected transient java.util.SortedSet<java.util.Date> lastLoginDateSet
      • declaredManagerId

        protected transient java.lang.String declaredManagerId
      • assistantId

        protected transient java.lang.String assistantId
    • Constructor Detail

      • DBMember

        public DBMember()
      • DBMember

        public DBMember​(Member other)
        Constructor by copy : creates a new instance of DBMember from the specified Member.

        Warning : Do not use this constructor to create an update instance for a DBMember, instead use getUpdateInstance() :

           Member updated = (Member) member.getUpdateInstance();
           update.performUpdate(...)
         
        Parameters:
        other - the member to copy, must not be null.
        Since:
        jcms-6.1.0
    • Method Detail

      • getUpdateInstance

        public Data getUpdateInstance()
        Description copied from class: Data
        Returns an instance of this object to update it.
        Overrides:
        getUpdateInstance in class Member
        Returns:
        an instance of this object to update it.
      • toFullString

        public java.lang.String toFullString()
        Overrides:
        toFullString in class Member
      • toCSV

        public java.lang.String toCSV​(java.lang.String lang)
        Description copied from class: Member
        Returns a CSV view of this object
        Overrides:
        toCSV in class Member
        Parameters:
        lang - the output language
        Returns:
        a CSV view of this object
      • getCSVHeader

        public static java.lang.String getCSVHeader​(java.lang.String lang)
        Returns the CSV header of this object
        Parameters:
        lang - the output language
        Returns:
        the CSV header of this object
        Since:
        jcms-6.1.0
      • exportCSV

        public static void exportCSV​(java.util.Collection<java.lang.String> dbMemberIdColl,
                                     java.lang.String lang,
                                     java.io.Writer writer)
        Export a dataSet to CSV
        Parameters:
        dbMemberIdColl - the set of DBMember's id to be exported
        lang - the language
        writer - the writer where to print the export
        Since:
        jcms-5.0.0
      • exportXmlField

        public void exportXmlField​(java.lang.StringBuffer sb,
                                   int indentLevel)
        Description copied from class: Data
        Fills the given StringBuffer with Xml export of fields of this data.
        Overrides:
        exportXmlField in class Member
        Parameters:
        sb - the StringBuffer
        indentLevel - the indent level
      • canPublishContent

        public boolean canPublishContent​(Workspace ws)
        Description copied from class: Member
        Checks if if this member can publish something else than UGC.
        Overrides:
        canPublishContent in class Member
        Parameters:
        ws - the Workspace to work on
        Returns:
        true if this member can publish something else than UGC.
      • getLdapSynchro

        public java.lang.Boolean getLdapSynchro()
        Check if LDAP synchronisation is enabled for this DBMember.

        Implementation detail: this method returns exactly the same value as Member.getLdapSync(), but as a Boolean.

        Returns:
        true if this member is allowed to be synchronized with ldap. never returns null.
        Since:
        JCMS-6340
        See Also:
        Member.setLastLdapSynchro(Date)
      • setLdapSynchro

        public void setLdapSynchro​(java.lang.Boolean ldapSync)
        Set whether to enable LDAP synchronisation for this DBMember.

        Implementation detail: this method is provided on DBMember to ensure backward compatibility when loading DBMember from database in which column was not set (and is null). When invokes, it delegates to Member.setLdapSync(boolean), replacing null value with true

        Parameters:
        ldapSync - Boolean.TRUE or null if LDAP synchronization of this Member should be performed if needed, Boolean.TRUE otherwise.
        Since:
        JCMS-6340
      • getWebdavAccess

        public boolean getWebdavAccess()
        Description copied from class: Member
        Get the value of webdavAccess
        Overrides:
        getWebdavAccess in class Member
        Returns:
        boolean true if Webdav Access is enabled
      • setWebdavAccess

        public void setWebdavAccess​(boolean webdavAccess)
        Description copied from class: Member
        Set the value of webdavAccess
        Overrides:
        setWebdavAccess in class Member
        Parameters:
        webdavAccess - the webdavAccess value
      • hasWebdavAccess

        public boolean hasWebdavAccess()
        Description copied from class: Member
        This method check if member have a webdav access or belongs to a group having webdav access.
        Overrides:
        hasWebdavAccess in class Member
        Returns:
        boolean true if member have webdav Access
      • getEmailPublic

        public java.lang.Boolean getEmailPublic()
        Retrieves whether this member's email is visible to other members or not.
        Returns:
        true if it is visible, false otherwise
        Since:
        jcms-6.1
        See Also:
        Member.isEmailVisible()
      • setEmailPublic

        public void setEmailPublic​(java.lang.Boolean visible)
        Sets whether this member's email is visible to other members or not.
        Parameters:
        visible - true if it is visible, false otherwise
        Since:
        jcms-6.1
        See Also:
        Member.setEmailVisible(boolean)
      • getGids

        public java.lang.String getGids()
        Returns the Group ids to which this member belongs.
        Returns:
        a comma seperated list of Group id
        Since:
        jcms-6.1
      • setDeclaredGroups

        public void setDeclaredGroups​(Group[] v)
        Description copied from class: Member
        Set the value of declaredGroups.
        Overrides:
        setDeclaredGroups in class Member
        Parameters:
        v - Value to assign to declaredGroups.
      • addGroup

        public void addGroup​(Group group)
        Description copied from class: Member
        Add this member to a given group (this changes is not saved)
        Overrides:
        addGroup in class Member
        Parameters:
        group - the group to be added.
      • removeGroup

        public void removeGroup​(Group group)
        Description copied from class: Member
        Remove this member from a given group(this changes is not saved)
        Overrides:
        removeGroup in class Member
        Parameters:
        group - the group to be removed.
      • belongsToGroup

        public boolean belongsToGroup​(Group group)
        Description copied from class: Member
        This convenient method returns true if this member belongs to a given group.
        Overrides:
        belongsToGroup in class Member
        Parameters:
        group - the group
        Returns:
        true if this member belongs to the given group, false otherwise.
      • getGroups

        public Group[] getGroups()
        Description copied from class: Member
        Returns all the groups this member belongs to.
        Overrides:
        getGroups in class Member
        Returns:
        all the groups this member belongs to.
      • setNotification

        public void setNotification​(Notification notification)
        Description copied from class: Member
        Sets the Notification
        Overrides:
        setNotification in class Member
        Parameters:
        notification - the notification
      • setUseCategorySet

        public void setUseCategorySet​(java.util.TreeSet<Category> v)
        Description copied from class: Member
        Set the value of useCategorySet.
        Overrides:
        setUseCategorySet in class Member
        Parameters:
        v - Value to assign to useCategorySet.
      • setUseCategoryMode

        public void setUseCategoryMode​(int v)
        Description copied from class: Member
        Set the value of useCategoryMode.
        Overrides:
        setUseCategoryMode in class Member
        Parameters:
        v - Value to assign to useCategoryMode.
      • canCreateWorkspace

        public boolean canCreateWorkspace()
        Description copied from class: Member
        Check if the member can create a workspace
        Overrides:
        canCreateWorkspace in class Member
        Returns:
        true if this member can create a Workspace
      • canCreateWorkspace

        public boolean canCreateWorkspace​(Workspace model)
        Description copied from class: Member
        Check if the member can duplicate the model to create a workspace
        Overrides:
        canCreateWorkspace in class Member
        Parameters:
        model - the workspace to duplicate
        Returns:
        true if this member can create a Workspace from the model
      • getReadCategorySet

        public java.util.TreeSet<Category> getReadCategorySet()
        Description copied from class: Member
        Gets the TreeSet of Category used for Publication read right. This category set contains all the categories a publication must match in order to be visible by this member.
        Overrides:
        getReadCategorySet in class Member
        Returns:
        a TreeSet of Category.
      • setReadCategorySet

        public void setReadCategorySet​(java.util.TreeSet<Category> v)
        Description copied from class: Member
        Set the value of readCategorySet.
        Overrides:
        setReadCategorySet in class Member
        Parameters:
        v - Value to assign to readCategorySet.
      • getDelegateMemberSet

        public java.util.TreeSet<Member> getDelegateMemberSet()
        Description copied from class: Member
        Gets the Members allowed to login as this member using delegation.
        Overrides:
        getDelegateMemberSet in class Member
        Returns:
        a TreeSet of Member. never return null
      • getDelegateMemberSet

        public java.util.TreeSet<Member> getDelegateMemberSet​(boolean queryDB)
        Description copied from class: Member
        Internal method used to guarantee proper access to both JStore Member and JcmsDB DBMember set in the delegated members set.
        Overrides:
        getDelegateMemberSet in class Member
        Parameters:
        queryDB - true to include any DBMember that may have been set in delegated member, false to retrieve only JStore members
        Returns:
        a TreeSet of Member. never return null
      • setDelegateMemberSet

        public void setDelegateMemberSet​(java.util.TreeSet<Member> v)
        Description copied from class: Member
        Set which members are authorized to delegate to this member.
        Overrides:
        setDelegateMemberSet in class Member
        Parameters:
        v - A Set of member which are granted delegation right to this member.
      • getDelegateMemberSetDBID

        public java.util.HashSet<java.lang.String> getDelegateMemberSetDBID()
        Description copied from class: Member
        Internal method used to guarantee proper storage of DBMember set delegated members.
        Overrides:
        getDelegateMemberSetDBID in class Member
        Returns:
        an HashSet containing id of DBMember which have been set as delegated members. may return null
      • setDelegateMemberSetDBID

        public void setDelegateMemberSetDBID​(java.util.HashSet<java.lang.String> v)
        Description copied from class: Member
        Internal method used to guarantee proper storage of DBMember set delegated members.
        Overrides:
        setDelegateMemberSetDBID in class Member
        Parameters:
        v - an HashSet containing id of DBMember which have been set as delegated members.
      • getLanguage

        public java.lang.String getLanguage()
        Description copied from class: Member
        Retrieve the language of this Member.
        Overrides:
        getLanguage in class Member
        Returns:
        an ISO-639 language code (eg fr), with an optional script indication (eg zh-Hant)
      • setLanguage

        public void setLanguage​(java.lang.String lang)
        Description copied from class: Member
        Set the language of this Member.

        The language is the ISO-639-1 language code (eg fr, de) mut it may include an optional script indication (eg zh-Hant).

        Valid value (which is enforced) can be found in jcms.prop by looking at properties prefixed with lang. string, it must be a language currently configured on the site, otherwise the default site language will be used.

        Overrides:
        setLanguage in class Member
        Parameters:
        lang - language key to use for this language.
        See Also:
        I18nUtil.getValidLanguageKey(String)
      • getCountry

        public java.lang.String getCountry()
        Description copied from class: Member
        Retrieves the country of this member.
        Overrides:
        getCountry in class Member
        Returns:
        an ISO 3166 country code as used by java Locale
      • setCountry

        public void setCountry​(java.lang.String countryCode)
        Description copied from class: Member
        Set the country of this member.
        Overrides:
        setCountry in class Member
        Parameters:
        countryCode - an ISO 3166 country code as used by java Locale
      • getWorkspaceSet

        public java.util.Set<Workspace> getWorkspaceSet()
        Overrides:
        getWorkspaceSet in class Member
        Returns:
        a Set of all Workspace the member belongs to.
      • refreshWorkspaceSet

        public void refreshWorkspaceSet()
        Description copied from class: Member
        Refresh the workspaces this member belongs to.
        Overrides:
        refreshWorkspaceSet in class Member
      • updateWorkspaceSet

        public void updateWorkspaceSet​(Workspace ws,
                                       boolean add)
        Description copied from class: Member
        Update workspaceSet index
        Overrides:
        updateWorkspaceSet in class Member
        Parameters:
        ws - the workspace to be added or removed
        add - add if true, remove if false
      • refreshGroups

        public void refreshGroups()
        Description copied from class: Member
        Refresh the groups (force groups to be inferred from declared groups)
        Overrides:
        refreshGroups in class Member
      • belongsToRole

        public WKRole belongsToRole()
        Overrides:
        belongsToRole in class Member
        Returns:
        the first WKRole the member belongs to
      • belongsToRole

        public WKRole belongsToRole​(boolean checkGroups)
        Overrides:
        belongsToRole in class Member
        Parameters:
        checkGroups - check also for member groups
        Returns:
        the first WKRole the member belongs to
      • belongsToRole

        public boolean belongsToRole​(WKRole role)
        Overrides:
        belongsToRole in class Member
        Parameters:
        role - a WKRole
        Returns:
        true if member belongs to the WKRole
      • belongsToRole

        public boolean belongsToRole​(WKRole role,
                                     boolean checkGroups)
        Overrides:
        belongsToRole in class Member
        Parameters:
        role - a WKRole
        checkGroups - check also for member groups
        Returns:
        true if member belongs to the WKRole
      • setName

        public void setName​(java.lang.String name)
        Description copied from class: Member
        Set the name of this member.
        Overrides:
        setName in class Member
        Parameters:
        name - the name to use.
      • setFirstName

        public void setFirstName​(java.lang.String firstName)
        Description copied from class: Member
        Set the first name of this member.
        Overrides:
        setFirstName in class Member
        Parameters:
        firstName - the first name to use.
      • isAdmin

        public boolean isAdmin()
        Description copied from class: Member
        Checks if this member is an administrator of the site.
        Overrides:
        isAdmin in class Member
        Returns:
        true if this member is and administrator, false otherwise.
      • setAdmin

        public void setAdmin​(boolean isAdmin)
        Description copied from class: Member
        Sets if this member can administrate the site.
        Overrides:
        setAdmin in class Member
        Parameters:
        isAdmin - true if this member is and administrator, false otherwise.
      • setSalutation

        public void setSalutation​(java.lang.String salutation)
        Description copied from class: Member
        Set the salutation of this member.
        Overrides:
        setSalutation in class Member
        Parameters:
        salutation - the salutation token to use, usually one those values
        • "mr"
        • "mrs"
        • "miss"
        Even these are the usual string used for the salutation, you can use any other value, as long as you provide the corresponding I18N language property "ui.com.lbl.salut.{value}"
      • setOrganization

        public void setOrganization​(java.lang.String organization)
        Description copied from class: Member
        Set the organization of this member.
        Overrides:
        setOrganization in class Member
        Parameters:
        organization - the organization to use.
      • setDepartment

        public void setDepartment​(java.lang.String department)
        Description copied from class: Member
        Set the department of this member.
        Overrides:
        setDepartment in class Member
        Parameters:
        department - the department to use for this Member.
      • setJobTitle

        public void setJobTitle​(java.lang.String jobTitle)
        Description copied from class: Member
        Set the job title of this member.
        Overrides:
        setJobTitle in class Member
        Parameters:
        jobTitle - the job title to use.
      • setPhone

        public void setPhone​(java.lang.String phone)
        Description copied from class: Member
        Set the phone number of this member.
        Overrides:
        setPhone in class Member
        Parameters:
        phone - the phone number to use.
      • setMobile

        public void setMobile​(java.lang.String mobile)
        Description copied from class: Member
        Set the mobile phone number of this member.
        Overrides:
        setMobile in class Member
        Parameters:
        mobile - the mobile phone number to use.
      • setStreet

        public void setStreet​(java.lang.String street)
        Set the street address of this Member.

        Example: "58, rue Pottier"

        Specified value is truncated to 255 characters for DBMember.

        Overrides:
        setStreet in class Member
        Parameters:
        street - the site information from a postal address (i.e., the street name, place, avenue, and the house number).
        Since:
        jcms-9.0.0
      • setPostalCode

        public void setPostalCode​(java.lang.String postalCode)
        Set the address postal code of this Member.

        Example: "78150", to identify Le Chesnay in France.

        Specified value is truncated to 32 characters for DBMember.

        Overrides:
        setPostalCode in class Member
        Parameters:
        postalCode - code used by Postal Service to identify postal service zone.
        Since:
        jcms-9.0.0
      • setPoBox

        public void setPoBox​(java.lang.String postOfficeBox)
        Set the address postal office box of this Member.

        Example: "BP 90 123".

        Specified value is truncated to 32 characters for DBMember.

        Overrides:
        setPoBox in class Member
        Parameters:
        postOfficeBox - postal box identifier that a Postal Service uses when a customer arranges to receive mail at a box on the premises of the Postal Service
        Since:
        jcms-9.0.0
      • setRegion

        public void setRegion​(java.lang.String region)
        Set the address region of this Member.

        Example: "Ile de France"

        Specified value is truncated to 255 characters for DBMember.

        Overrides:
        setRegion in class Member
        Parameters:
        region - full name of state or province
        Since:
        jcms-9.0.0
      • setLocality

        public void setLocality​(java.lang.String locality)
        Set the address locality of this Member.

        Example: "Le Chesnay"

        Specified value is truncated to 255 characters for DBMember.

        Overrides:
        setLocality in class Member
        Parameters:
        locality - name of a locality or place, such as a city, county, or other geographic region
        Since:
        jcms-9.0.0
      • setEmail

        public void setEmail​(java.lang.String email)
        Description copied from class: Member
        Set the email address of this member.
        Overrides:
        setEmail in class Member
        Parameters:
        email - the email address to use.
      • getInfo

        public java.lang.String getInfo()
        Description copied from class: Member
        Gets informations available for this member.
        Overrides:
        getInfo in class Member
        Returns:
        the member's information or null if the information has not been set.
      • setInfo

        public void setInfo​(java.lang.String info)
        Description copied from class: Member
        Set some informations available for this member.
        Overrides:
        setInfo in class Member
        Parameters:
        info - the informations to use.
      • setLogin

        public void setLogin​(java.lang.String login)
        Description copied from class: Member
        Set the login of this member.
        Overrides:
        setLogin in class Member
        Parameters:
        login - the login to use, can be any string (id, email, ...), as long as it is kept unique over all members.
      • setPassword

        public void setPassword​(java.lang.String password)
        Description copied from class: Member
        Set the (hashed) password of this member.

        The password value specified must be crypted using method Channel.crypt(String)

         mbr.setPassword(channel.crypt("abc42def"));
         
        Overrides:
        setPassword in class Member
        Parameters:
        password - a hashed version of the password to use
      • getRightFromClassMap

        public java.util.HashMap<java.lang.String,​DataRight> getRightFromClassMap()
        Description copied from class: Member
        Get the value of rightFromClassMap.
        Overrides:
        getRightFromClassMap in class Member
        Returns:
        Value of rightFromClassMap.
      • setRightFromClassMap

        public void setRightFromClassMap​(java.util.HashMap<java.lang.String,​DataRight> v)
        Description copied from class: Member
        Set the value of rightFromClassMap.
        Overrides:
        setRightFromClassMap in class Member
        Parameters:
        v - Value to assign to rightFromClassMap.
      • getPublicationSet

        public java.util.Set<Publication> getPublicationSet()
        Description copied from class: Member
        Retrieve a Set containing all the Publication of which this member is the author.
        Overrides:
        getPublicationSet in class Member
        Returns:
        a Set of Publication, never return null.
      • updatePublicationSet

        public void updatePublicationSet​(Publication pub,
                                         boolean add)
        Description copied from class: Member
        Update publicationSet index
        Overrides:
        updatePublicationSet in class Member
        Parameters:
        pub - the publication to be added or removed
        add - add if true, remove if false
      • getContentSet

        public java.util.Set<Content> getContentSet()
        Description copied from class: Member
        Get the value of contentSet.
        Overrides:
        getContentSet in class Member
        Returns:
        Value of contentSet.
      • updateContentSet

        public void updateContentSet​(Content content,
                                     boolean add)
        Description copied from class: Member
        Update contentSet index
        Overrides:
        updateContentSet in class Member
        Parameters:
        content - the content to be added or removed
        add - add if true, remove if false
      • getMemberFromLogin

        public static DBMember getMemberFromLogin​(java.lang.String login,
                                                  boolean checkDisabled)
        Retrieve the DBMember having the specified login.
        Parameters:
        login - the member's login
        checkDisabled - if true, return null if account is disabled
        Returns:
        the first DBMember found with the specified login or null if none could be found.
        Since:
        jcms-6.1
      • getMemberFromEmail

        public static DBMember getMemberFromEmail​(java.lang.String email,
                                                  boolean checkDisabled)
        Retrieve the DBMember having the specified email.
        Parameters:
        email - the member's email
        checkDisabled - if true, return null if account is disabled
        Returns:
        the first DBMember found with the specified email or null if none could be found.
        Since:
        jcms-6.1
      • getLastLoginTimes

        public java.lang.String getLastLoginTimes()
        Retrieve a comma seperated list of last login time of this member.
        Returns:
        a String a coma seperated list of time in millisecond.
        Since:
        jcms-6.1
      • setLastLoginTimes

        public void setLastLoginTimes​(java.lang.String lastLoginTimes)
        Set the comma seperated list of last login time of this member.
        Parameters:
        lastLoginTimes - a coma seperated list of time in millisecond.
        Since:
        jcms-6.1
      • getLastLoginDateSet

        public java.util.SortedSet<java.util.Date> getLastLoginDateSet()
        Description copied from class: Member
        Retrieve the last login Date of this Member.
        Overrides:
        getLastLoginDateSet in class Member
        Returns:
        a Set of Date, return an empty set if this user has never been logged, (never return null).
      • getLastLoginDate

        public java.util.Date getLastLoginDate()
        Description copied from class: Member
        Retrieves the last login Date of this Member.
        Overrides:
        getLastLoginDate in class Member
        Returns:
        a Date (GMT) or null if this user has never been logged in.
      • internalSetLastLoginDate

        protected void internalSetLastLoginDate​(java.util.Date date)
        Description copied from class: Member
        Performs the persistance of the new last login date.
        Overrides:
        internalSetLastLoginDate in class Member
        Parameters:
        date - the date
      • convertToMember

        public Member convertToMember​(Member opAuthor)
        Converts this DBMember to a member. This DBMember is deleted and the new member is returned. All the data this DBMember is the author of are be reassigned to the new member.
        Parameters:
        opAuthor - the author of this operation
        Returns:
        the new Member.
        Since:
        jcms-6.1.0
      • getDeclaredManager

        public Member getDeclaredManager()
        Description copied from class: Member
        Returns the declared manager of this member. If the manager is a DBMember it is loaded. This method must not be called before the database as been initialized (e.g. it must not be called by a StoreListener). The manager returned by method must not be kept in data structures that are longer than the DB transaction (e.g. an index). In those cases, call getDeclaredManager(false).
        Overrides:
        getDeclaredManager in class Member
        Returns:
        the declared manager of this member.
        See Also:
        Member.getDeclaredManager(boolean)
      • setDeclaredManager

        public void setDeclaredManager​(Member mbr)
        Description copied from class: Member
        Sets the declared manager of this member.
        Overrides:
        setDeclaredManager in class Member
        Parameters:
        mbr - the declared manager
      • getDeclaredManagerId

        public java.lang.String getDeclaredManagerId()
        Description copied from class: Member
        Retrieve the id of the declared manager, without loading it in DB if it as DBMember
        Overrides:
        getDeclaredManagerId in class Member
        Returns:
        the id of the declaredManager Member (JStore or DBMember), if any.
      • setDeclaredManagerId

        public void setDeclaredManagerId​(java.lang.String v)
      • getAssistant

        public Member getAssistant()
        Description copied from class: Member
        Returns the assistant of this Member. If the assistant is a DBMember it is loaded. This method must not be called before the database as been initialized (e.g. it must not be called by a StoreListener). The assistant returned by method must not be kept in data structures that are longer than the DB transaction (e.g. an index). In those cases, call getAssistant(false).
        Overrides:
        getAssistant in class Member
        Returns:
        the assistant of this Member.
        See Also:
        Member.getAssistant(boolean)
      • setAssistant

        public void setAssistant​(Member mbr)
        Description copied from class: Member
        Sets the assistant of this Member.
        Overrides:
        setAssistant in class Member
        Parameters:
        mbr - the assistant
      • getAssistantId

        public java.lang.String getAssistantId()
      • setAssistantId

        public void setAssistantId​(java.lang.String v)