Class ResourceUtil


  • public class ResourceUtil
    extends Object
    User: Yohann Chastagnier Date: 04/04/13
    • Method Detail

      • toIdList

        public static List<Long> toIdList​(List<Resource> resources)
        Get a list of resource identifiers from a list of resource.
        Parameters:
        resources - a list of resources.
        Returns:
        a list of the resources' identifiers.
      • toIdList

        public static List<Long> toIdList​(String stringOfIds)
        Get a list of resource identifiers from a string containing resource identifiers separated by comma.
        Parameters:
        stringOfIds - a string encoding a comma-separator list of resources' identifiers.
        Returns:
        the list of the resources' identifiers.