public static boolean isPublicSharedGroup(Group group) {
        return SharedGroupVisibility.everybody == group.getSharedWith();
    }
Returns true if the specified Group may be seen by all users in the system. The decision
is made based on the group properties that are configurable through the Admin Console.

@param group the group to check if it may be seen by all users in the system.
@return true if the specified Group may be seen by all users in the system.
xmppserver/src/main/java/org/jivesoftware/openfire/roster/RosterManager.java