Skip to content

Commit

Permalink
LPS-32149 New configuration property to allow exclude some sites. The…
Browse files Browse the repository at this point in the history
… users belonging to the previous sites will not appear in the buddies list
  • Loading branch information
migue authored and brianchandotcom committed Jan 19, 2013
1 parent 769200c commit 1d8c091
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ public interface PortletPropsKeys {

public static final String BUDDY_LIST_STRATEGY = "buddy.list.strategy";

public static final String BUDDY_LIST_STRATEGY_SITES_FILTERED =
"buddy.list.strategy.sites.filtered";

public static final String JABBER_ENABLED = "jabber.enabled";

public static final String JABBER_HOST = "jabber.host";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ public class PortletPropsValues {
public static final String BUDDY_LIST_STRATEGY = GetterUtil.getString(
PortletProps.get(PortletPropsKeys.BUDDY_LIST_STRATEGY));

public static final String[] BUDDY_LIST_STRATEGY_SITES_FILTERED =
PortletProps.getArray(
PortletPropsKeys.BUDDY_LIST_STRATEGY_SITES_FILTERED);

public static final boolean JABBER_ENABLED = GetterUtil.getBoolean(
PortletProps.get(PortletPropsKeys.JABBER_ENABLED));

Expand Down
9 changes: 8 additions & 1 deletion portlets/chat-portlet/docroot/WEB-INF/src/portlet.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,16 @@
buddy.list.max.buddies=500

buddy.list.strategy=all
#buddy.list.strategy=sites
#buddy.list.strategy=friends
#buddy.list.strategy=friends,sites
#buddy.list.strategy=sites

#
# Specify the names of the sites to filter the users that can be found by
# a particular user. This property will only take effect when the property
# "buddy.list.strategy" is setted to "sites" or "friends,sites"
#
buddy.list.strategy.sites.filtered=

##
## Jabber
Expand Down

0 comments on commit 1d8c091

Please sign in to comment.