Class DBMemberQueryHandler

    • Constructor Detail

      • DBMemberQueryHandler

        public DBMemberQueryHandler()
        Constructs a new empty MemberQueryHandler with default option.
        Since:
        jcms-6.1
      • DBMemberQueryHandler

        public DBMemberQueryHandler​(java.lang.String queryString)
        Constructs a new MemberQueryHandler by parsing the specified query string.

        See DBMemberQueryHandler(String, HttpServletRequest) for a list of the decoded parameters.

        Parameters:
        queryString - a query String consisting of parameters (key=value) to be set in this handler.
        • Parameters must be separated with ampersand (&).
        • Values must be encoded in UTF-8.
        • Query must not starts with question mark (?) e.g : "text=john&gid=j_42"
        Since:
        jcms-6.1
    • Method Detail

      • getPageResult

        public PageResult<DBMember> getPageResult()
        Returns a new PageResult of DBMember for the current settings of this handler.
        Returns:
        a new PageResult
      • getCount

        public int getCount()
        Returns the count of DBMember for the current settings of this handler.

        Beware, this method will not return a valid count if member read right is enabled (result will be larger or equals than real count).

        Returns:
        the count of DBMember for the current settings of this handler.
        Since:
        jcms-8.0.0
      • getIdResultList

        public java.util.List<java.lang.String> getIdResultList()
        Perform the Query and return a list of DBMember id. Paging parameter will not be used.
        Returns:
        a List of String (DBMembers' id)
      • setSort

        public void setSort​(java.lang.String sort)
        Set the sort order to apply to the DBMember. Sort field authorized :
        • Id : id or rowId
        • Author ID : author or authorId
        • Login : login
        • Last Name : name or lastName
        • First Name : firstName
        • Creation Date : date or cdate
        • Modification Date : mdate
        • Locale : lang, country or locale
        • Last login date : lastLoginDate or lastLoginTimes
        Overrides:
        setSort in class AbstractMemberQueryHandler<DBMember>
        Parameters:
        sort - a sort string