src/net/java/sip/communicator/impl/protocol/jabber/ServerStoredContactListJabberImpl.java
/**
     * Some roster entries are not supposed to be seen.
     * Like some services automatically add contacts from their
     * addressbook to the roster and those contacts are with subscription none.
     * Best practices in XEP-0162.
     * - subscription='both' or subscription='to'
     * - ((subscription='none' or subscription='from') and ask='subscribe')
     * - ((subscription='none' or subscription='from')
     *          and (name attribute or group child))
     *
     * @param entry the entry to check.
     *
     * @return is item to be hidden/ignored.
     */
Some roster entries are not supposed to be seen.
Like some services automatically add contacts from their
addressbook to the roster and those contacts are with subscription none.
Best practices in XEP-0162.

@param entry the entry to check.

@return is item to be hidden/ignored.
Some roster entries are not supposed to be seen . Like some services automatically add contacts from their addressbook to the roster and those contacts are with subscription none . Best practices in XEP - 0162 . @param entry the entry to check . @return is item to be hidden / ignored .
static boolean isEntryDisplayable(RosterEntry entry)
    {
        if(entry.getType() == both || entry.getType() == to)
        {
            return true;
        }
        else if((entry.getType() == none || entry.getType() == from) && entry.isSubscriptionPending()
                    || entry.getGroups().size() > 0)
        {
            return true;
        }
        return false;
    }
static boolean isEntryDisplayable ( RosterEntry entry ) { if ( entry . getType ( ) == both || entry . getType ( ) == to ) { return true ; } else if ( ( entry . getType ( ) == none || entry . getType ( ) == from ) && entry . isSubscriptionPending ( ) || entry . getGroups ( ) . size ( ) > 0 ) { return true ; } return false ; }
Some roster entries are not supposed to be seen.
Some roster entries are not supposed to be seen .