Package org.sakaiproject.site.util
Class SiteGroupHelper
- java.lang.Object
-
- org.sakaiproject.site.util.SiteGroupHelper
-
public class SiteGroupHelper extends Object
Helper for managing groups in a site, this is used to pack role IDs into theSiteConstants.GROUP_PROP_ROLE_PROVIDERIDproperty on a group. This is different from when the provider IDs are packed into a provider ID.- Author:
- Matthew Buckett
- See Also:
SiteConstants.GROUP_PROP_ROLE_PROVIDERID
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Stringpack(Collection<String> ids)This packs IDs into a string.static Collection<String>unpack(String ids)This unpacks IDs from a string.
-
-
-
Method Detail
-
unpack
public static Collection<String> unpack(String ids)
This unpacks IDs from a string. It supports empty IDs but notnull.- Parameters:
ids- The packed IDs in a string, can benull.- Returns:
- A collection of IDs unpacked from the string.
- See Also:
pack(java.util.Collection)
-
pack
public static String pack(Collection<String> ids)
This packs IDs into a string. It supports empty IDs but notnull.- Parameters:
ids- A Collection of IDs to be packed together.- Returns:
- The packed string containing all the IDs or
nullif the original collection wasnull. - See Also:
unpack(String)
-
-