mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
review changes
This commit is contained in:
@@ -112,7 +112,9 @@ public class PojoUtility
|
|||||||
{
|
{
|
||||||
mandatoryObject("model", classz);
|
mandatoryObject("model", classz);
|
||||||
mandatoryObject("jsonObject", json);
|
mandatoryObject("jsonObject", json);
|
||||||
|
|
||||||
ObjectMapper mapper = new ObjectMapper();
|
ObjectMapper mapper = new ObjectMapper();
|
||||||
|
|
||||||
T obj = null;
|
T obj = null;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@@ -123,7 +125,7 @@ public class PojoUtility
|
|||||||
LOGGER.error("Unable to convert the json into a java object.", e.toString());
|
LOGGER.error("Unable to convert the json into a java object.", e.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
return (T) obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -59,7 +59,7 @@ public class RMAuditAPI extends BaseAPI
|
|||||||
private static final String RM_AUDIT_LOG_API = RM_AUDIT_API + "?{1}";
|
private static final String RM_AUDIT_LOG_API = RM_AUDIT_API + "?{1}";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a list of audit entries audit of Records Management events. .
|
* Returns a list of rm audit entries .
|
||||||
*
|
*
|
||||||
* @param user The username of the user to use.
|
* @param user The username of the user to use.
|
||||||
* @param password The password of the user.
|
* @param password The password of the user.
|
||||||
@@ -72,7 +72,7 @@ public class RMAuditAPI extends BaseAPI
|
|||||||
String parameters = null;
|
String parameters = null;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
parameters = "size=" + size + (event != null ? "&event=" + URLEncoder.encode(event, "UTF-8"): null );
|
parameters = "size=" + size + (event != null ? "&event=" + URLEncoder.encode(event, "UTF-8"):"");
|
||||||
}
|
}
|
||||||
catch (UnsupportedEncodingException e)
|
catch (UnsupportedEncodingException e)
|
||||||
{
|
{
|
||||||
@@ -85,7 +85,7 @@ public class RMAuditAPI extends BaseAPI
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Clear the list of audit entries audit of Records Management events. .
|
* Clear the list of audit entries.
|
||||||
*
|
*
|
||||||
* @param username The username of the user to use.
|
* @param username The username of the user to use.
|
||||||
* @param password The password of the user.
|
* @param password The password of the user.
|
||||||
@@ -96,7 +96,7 @@ public class RMAuditAPI extends BaseAPI
|
|||||||
JSONObject deleteStatus = doDeleteRequest(username, password, RM_AUDIT_API);
|
JSONObject deleteStatus = doDeleteRequest(username, password, RM_AUDIT_API);
|
||||||
|
|
||||||
assertTrue(deleteStatus != null
|
assertTrue(deleteStatus != null
|
||||||
//audit clear and audit login returned
|
//audit clear and login events are returned
|
||||||
&& getRMAuditLog(username, password, 100, null).size() == 2);
|
&& getRMAuditLog(username, password, 100, null).size() == 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user