mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Changing the value of If-Modified-Since header as a string
This commit is contained in:
parent
76ec7bdc28
commit
e1dfecb518
@ -117,7 +117,7 @@ public interface DeviceManagementService {
|
|||||||
name = "If-Modified-Since",
|
name = "If-Modified-Since",
|
||||||
value = "Timestamp of the last modified date",
|
value = "Timestamp of the last modified date",
|
||||||
required = false)
|
required = false)
|
||||||
@HeaderParam("If-Modified-Since") Date timestamp,
|
@HeaderParam("If-Modified-Since") String timestamp,
|
||||||
@ApiParam(
|
@ApiParam(
|
||||||
name = "offset",
|
name = "offset",
|
||||||
value = "Starting point within the complete list of items qualified.",
|
value = "Starting point within the complete list of items qualified.",
|
||||||
@ -191,7 +191,7 @@ public interface DeviceManagementService {
|
|||||||
name = "If-Modified-Since",
|
name = "If-Modified-Since",
|
||||||
value = "Timestamp of the last modified date",
|
value = "Timestamp of the last modified date",
|
||||||
required = false)
|
required = false)
|
||||||
@HeaderParam("If-Modified-Since") Date timestamp);
|
@HeaderParam("If-Modified-Since") String timestamp);
|
||||||
|
|
||||||
|
|
||||||
@GET
|
@GET
|
||||||
|
|||||||
@ -323,7 +323,7 @@ public interface UserManagementService {
|
|||||||
name = "If-Modified-Since",
|
name = "If-Modified-Since",
|
||||||
value = "Timestamp of the last modified date",
|
value = "Timestamp of the last modified date",
|
||||||
required = false)
|
required = false)
|
||||||
@HeaderParam("If-Modified-Since") Date timestamp,
|
@HeaderParam("If-Modified-Since") String timestamp,
|
||||||
@ApiParam(
|
@ApiParam(
|
||||||
name = "offset",
|
name = "offset",
|
||||||
value = "Starting point within the complete list of items qualified.",
|
value = "Starting point within the complete list of items qualified.",
|
||||||
@ -389,7 +389,7 @@ public interface UserManagementService {
|
|||||||
name = "If-Modified-Since",
|
name = "If-Modified-Since",
|
||||||
value = "Timestamp of the last modified date",
|
value = "Timestamp of the last modified date",
|
||||||
required = false)
|
required = false)
|
||||||
@HeaderParam("If-Modified-Since") Date timestamp,
|
@HeaderParam("If-Modified-Since") String timestamp,
|
||||||
@ApiParam(
|
@ApiParam(
|
||||||
name = "offset",
|
name = "offset",
|
||||||
value = "Starting point within the complete list of items qualified.",
|
value = "Starting point within the complete list of items qualified.",
|
||||||
|
|||||||
@ -82,7 +82,7 @@ public interface GroupManagementAdminService {
|
|||||||
name = "If-Modified-Since",
|
name = "If-Modified-Since",
|
||||||
value = "Timestamp of the last modified date",
|
value = "Timestamp of the last modified date",
|
||||||
required = false)
|
required = false)
|
||||||
@HeaderParam("If-Modified-Since") Date timestamp,
|
@HeaderParam("If-Modified-Since") String timestamp,
|
||||||
@ApiParam(
|
@ApiParam(
|
||||||
name = "offset",
|
name = "offset",
|
||||||
value = "Starting point within the complete list of items qualified.",
|
value = "Starting point within the complete list of items qualified.",
|
||||||
|
|||||||
@ -62,7 +62,7 @@ public class DeviceManagementServiceImpl implements DeviceManagementService{
|
|||||||
@QueryParam("roleName") String roleName,
|
@QueryParam("roleName") String roleName,
|
||||||
@QueryParam("ownership") String ownership,
|
@QueryParam("ownership") String ownership,
|
||||||
@QueryParam("status") String status,
|
@QueryParam("status") String status,
|
||||||
@HeaderParam("If-Modified-Since") Date timestamp,
|
@HeaderParam("If-Modified-Since") String timestamp,
|
||||||
@QueryParam("offset") int offset,
|
@QueryParam("offset") int offset,
|
||||||
@QueryParam("limit") int limit) {
|
@QueryParam("limit") int limit) {
|
||||||
try {
|
try {
|
||||||
@ -86,7 +86,7 @@ public class DeviceManagementServiceImpl implements DeviceManagementService{
|
|||||||
@Override
|
@Override
|
||||||
public Response getDevicesInfo(
|
public Response getDevicesInfo(
|
||||||
List<DeviceIdentifier> deviceIds,
|
List<DeviceIdentifier> deviceIds,
|
||||||
@HeaderParam("If-Modified-Since") Date timestamp) {
|
@HeaderParam("If-Modified-Since") String timestamp) {
|
||||||
DeviceInformationManager informationManager;
|
DeviceInformationManager informationManager;
|
||||||
List<DeviceInfo> deviceInfo;
|
List<DeviceInfo> deviceInfo;
|
||||||
try {
|
try {
|
||||||
|
|||||||
@ -323,7 +323,7 @@ public class UserManagementServiceImpl implements UserManagementService {
|
|||||||
|
|
||||||
@GET
|
@GET
|
||||||
@Override
|
@Override
|
||||||
public Response getUsers(@QueryParam("filter") String filter, @HeaderParam("If-Modified-Since") Date timestamp,
|
public Response getUsers(@QueryParam("filter") String filter, @HeaderParam("If-Modified-Since") String timestamp,
|
||||||
@QueryParam("offset") int offset,
|
@QueryParam("offset") int offset,
|
||||||
@QueryParam("limit") int limit) {
|
@QueryParam("limit") int limit) {
|
||||||
if (log.isDebugEnabled()) {
|
if (log.isDebugEnabled()) {
|
||||||
@ -357,7 +357,7 @@ public class UserManagementServiceImpl implements UserManagementService {
|
|||||||
@GET
|
@GET
|
||||||
@Path("/usernames")
|
@Path("/usernames")
|
||||||
@Override
|
@Override
|
||||||
public Response getUserNames(@QueryParam("filter") String filter, @HeaderParam("If-Modified-Since") Date timestamp,
|
public Response getUserNames(@QueryParam("filter") String filter, @HeaderParam("If-Modified-Since") String timestamp,
|
||||||
@QueryParam("offset") int offset, @QueryParam("limit") int limit) {
|
@QueryParam("offset") int offset, @QueryParam("limit") int limit) {
|
||||||
if (log.isDebugEnabled()) {
|
if (log.isDebugEnabled()) {
|
||||||
log.debug("Getting the list of users with all user-related information using the filter : " + filter);
|
log.debug("Getting the list of users with all user-related information using the filter : " + filter);
|
||||||
|
|||||||
@ -41,7 +41,7 @@ public class GroupManagementAdminServiceImpl implements GroupManagementAdminServ
|
|||||||
@Override
|
@Override
|
||||||
public Response getGroupsOfUser(
|
public Response getGroupsOfUser(
|
||||||
@QueryParam("username") String username,
|
@QueryParam("username") String username,
|
||||||
@HeaderParam("If-Modified-Since") Date timestamp,
|
@HeaderParam("If-Modified-Since") String timestamp,
|
||||||
@QueryParam("offset") int offset,
|
@QueryParam("offset") int offset,
|
||||||
@QueryParam("limit") int limit) {
|
@QueryParam("limit") int limit) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user