Exemplo n.º 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;
  }
Exemplo n.º 2
0
  public static GetSites byActivity(int activityId) {
    GetSites cmd = new GetSites();
    cmd.getFilter().onActivity(activityId);

    return cmd;
  }
Exemplo n.º 3
0
  public static GetSites byId(int siteId) {
    GetSites cmd = new GetSites();
    cmd.getFilter().addRestriction(DimensionType.Site, siteId);

    return cmd;
  }