Package org.silverpeas.components.resourcesmanager.util

## Class ResourceUtil

- java.lang.Object
- - org.silverpeas.components.resourcesmanager.util.ResourceUtil

-     public class ResourceUtil
      extends Object

  User: Yohann Chastagnier Date: 04/04/13

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static List<Long>` | `toIdList​(String stringOfIds)` | Get a list of resource identifiers from a string containing resource identifiers separated by comma.
    `static List<Long>` | `toIdList​(List<Resource> resources)` | Get a list of resource identifiers from a list of resource.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 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.