Пример #1
0
  /**
   * Make a copy of this command.
   *
   * @return A new intance of GetSites with the same values.
   */
  public GetSites createClone() {
    GetSites c = new GetSites();
    c.filter = new Filter(filter);
    c.setLimit(getLimit());
    c.setOffset(getOffset());
    c.setSortInfo(getSortInfo());

    return c;
  }
Пример #2
0
  public static GetSites byActivity(int activityId) {
    GetSites cmd = new GetSites();
    cmd.getFilter().onActivity(activityId);

    return cmd;
  }
Пример #3
0
  public static GetSites byId(int siteId) {
    GetSites cmd = new GetSites();
    cmd.getFilter().addRestriction(DimensionType.Site, siteId);

    return cmd;
  }