/** * 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; }
public static GetSites byActivity(int activityId) { GetSites cmd = new GetSites(); cmd.getFilter().onActivity(activityId); return cmd; }
public static GetSites byId(int siteId) { GetSites cmd = new GetSites(); cmd.getFilter().addRestriction(DimensionType.Site, siteId); return cmd; }