code: public long[] getChannelIdArray()
      {
          long[] ret = new long[channelIds.size()];
          for(int i = 0; i < channelIds.size(); i++)
              ret[i] = channelIds.get(i);
          return ret;
      }
docs: Returns the array of channel ids for the policy.
  @return The array of channel ids