|
|
@ -807,7 +807,7 @@ public class UserManagementServiceImpl implements UserManagementService {
|
|
|
|
|
|
|
|
|
|
|
|
@GET
|
|
|
|
@GET
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
@Path("/activities")
|
|
|
|
@Path("/device/activities")
|
|
|
|
public Response getActivities(
|
|
|
|
public Response getActivities(
|
|
|
|
@QueryParam("since") String since,
|
|
|
|
@QueryParam("since") String since,
|
|
|
|
@QueryParam("offset") int offset,
|
|
|
|
@QueryParam("offset") int offset,
|
|
|
@ -825,7 +825,7 @@ public class UserManagementServiceImpl implements UserManagementService {
|
|
|
|
RequestValidationUtil.validatePaginationParameters(offset, limit);
|
|
|
|
RequestValidationUtil.validatePaginationParameters(offset, limit);
|
|
|
|
if (ifModifiedSince != null && !ifModifiedSince.isEmpty()) {
|
|
|
|
if (ifModifiedSince != null && !ifModifiedSince.isEmpty()) {
|
|
|
|
Date ifSinceDate;
|
|
|
|
Date ifSinceDate;
|
|
|
|
SimpleDateFormat format = new SimpleDateFormat("EEE, d MMM yyyy HH:mm:ss Z");
|
|
|
|
SimpleDateFormat format = new SimpleDateFormat(Constants.DEFAULT_SIMPLE_DATE_FORMAT);
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
ifSinceDate = format.parse(ifModifiedSince);
|
|
|
|
ifSinceDate = format.parse(ifModifiedSince);
|
|
|
|
} catch (ParseException e) {
|
|
|
|
} catch (ParseException e) {
|
|
|
@ -837,7 +837,7 @@ public class UserManagementServiceImpl implements UserManagementService {
|
|
|
|
timestamp = ifModifiedSinceTimestamp / 1000;
|
|
|
|
timestamp = ifModifiedSinceTimestamp / 1000;
|
|
|
|
} else if (since != null && !since.isEmpty()) {
|
|
|
|
} else if (since != null && !since.isEmpty()) {
|
|
|
|
Date sinceDate;
|
|
|
|
Date sinceDate;
|
|
|
|
SimpleDateFormat format = new SimpleDateFormat("EEE, d MMM yyyy HH:mm:ss Z");
|
|
|
|
SimpleDateFormat format = new SimpleDateFormat(Constants.DEFAULT_SIMPLE_DATE_FORMAT);
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
sinceDate = format.parse(since);
|
|
|
|
sinceDate = format.parse(since);
|
|
|
|
} catch (ParseException e) {
|
|
|
|
} catch (ParseException e) {
|
|
|
|