Skip to content
Snippets Groups Projects
Unverified Commit b6dd6df6 authored by Richard Cordovano's avatar Richard Cordovano Committed by GitHub
Browse files

Merge pull request #1464 from kellykelly3/1213-com-view-image-report

1213 communications snapshot report
parents 556e7865 0ac7b43c
Branches
Tags
No related merge requests found
...@@ -57,7 +57,7 @@ public CommunicationsFilter() { ...@@ -57,7 +57,7 @@ public CommunicationsFilter() {
* *
* @return An unmodifiable list of the filter. * @return An unmodifiable list of the filter.
*/ */
List<SubFilter> getAndFilters() { public List<SubFilter> getAndFilters() {
return Collections.unmodifiableList(andFilters); return Collections.unmodifiableList(andFilters);
} }
...@@ -74,7 +74,7 @@ public void addAndFilter(SubFilter subFilter) { ...@@ -74,7 +74,7 @@ public void addAndFilter(SubFilter subFilter) {
/** /**
* Unit level filter. * Unit level filter.
*/ */
static abstract class SubFilter { public static abstract class SubFilter {
/** /**
* Returns a string description of the filter. * Returns a string description of the filter.
...@@ -161,6 +161,23 @@ public DateRangeFilter(long startDate, long endDate) { ...@@ -161,6 +161,23 @@ public DateRangeFilter(long startDate, long endDate) {
this.endDate = endDate; this.endDate = endDate;
} }
} }
/**
* Get the start date.
*
* @return Seconds from java epoch or zero if no value was set
*/
public long getStartDate() {
return startDate;
}
/**
* Get the end date.
* @return Seconds from java epoch or zero if no value was set
*/
public long getEndDate() {
return endDate;
}
@Override @Override
public String getDescription() { public String getDescription() {
...@@ -210,6 +227,15 @@ public AccountTypeFilter(Collection<Account.Type> accountTypes) { ...@@ -210,6 +227,15 @@ public AccountTypeFilter(Collection<Account.Type> accountTypes) {
super(); super();
this.accountTypes = new HashSet<Account.Type>(accountTypes); this.accountTypes = new HashSet<Account.Type>(accountTypes);
} }
/**
* Get the selected Account Types.
*
* @return A Set of Type values
*/
public Set<Account.Type> getAccountTypes() {
return accountTypes;
}
@Override @Override
public String getDescription() { public String getDescription() {
...@@ -260,6 +286,15 @@ public DeviceFilter(Collection<String> deviceIds) { ...@@ -260,6 +286,15 @@ public DeviceFilter(Collection<String> deviceIds) {
public String getDescription() { public String getDescription() {
return "Filters accounts and relationships by device id."; return "Filters accounts and relationships by device id.";
} }
/**
* Gets a set of device ids
*
* @return Collection of device ids
*/
public Collection<String> getDevices() {
return deviceIds;
}
/** /**
* Get the SQL string for the filter. * Get the SQL string for the filter.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment