mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-01 14:41:46 +00:00
[MNT-24127] Added Endpoint to Calculate Size of the folder with Integration Test Cases [ags][tas]
This commit is contained in:
@@ -29,11 +29,11 @@ import org.alfresco.api.AlfrescoPublicApi;
|
||||
import org.alfresco.service.namespace.QName;
|
||||
|
||||
@AlfrescoPublicApi
|
||||
public interface FolderSizeModel {
|
||||
public class FolderSizeModel {
|
||||
|
||||
/** Folder Model URI */
|
||||
String SIZE_MODEL_1_0_URI = "http://www.alfresco.org/model/size/1.0";
|
||||
private static final String SIZE_MODEL_1_0_URI = "http://www.alfresco.org/model/size/1.0";
|
||||
|
||||
QName PROP_STATUS = QName.createQName(SIZE_MODEL_1_0_URI, "status");
|
||||
QName PROP_OUTPUT = QName.createQName(SIZE_MODEL_1_0_URI, "result");
|
||||
public static final QName PROP_STATUS = QName.createQName(SIZE_MODEL_1_0_URI, "status");
|
||||
public static final QName PROP_OUTPUT = QName.createQName(SIZE_MODEL_1_0_URI, "result");
|
||||
}
|
||||
|
@@ -36,8 +36,8 @@ import org.alfresco.service.cmr.repository.StoreRef;
|
||||
import org.alfresco.service.cmr.search.ResultSet;
|
||||
import org.alfresco.service.cmr.search.SearchParameters;
|
||||
import org.alfresco.service.cmr.search.SearchService;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.Instant;
|
||||
@@ -65,7 +65,7 @@ public class NodeSizeActionExecuter extends ActionExecuterAbstractBase
|
||||
/**
|
||||
* The logger
|
||||
*/
|
||||
private static final Log LOGGER = LogFactory.getLog(NodeSizeActionExecuter.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(NodeSizeActionExecuter.class);
|
||||
|
||||
/**
|
||||
* Set the node service
|
||||
@@ -150,7 +150,7 @@ public class NodeSizeActionExecuter extends ActionExecuterAbstractBase
|
||||
}
|
||||
catch (RuntimeException ex)
|
||||
{
|
||||
LOGGER.error("Exception occured in NodeSizeActionExecutor:results "+ex.getMessage());
|
||||
LOG.error("Exception occured in NodeSizeActionExecutor:results {}", ex.getMessage());
|
||||
}
|
||||
|
||||
final LocalDateTime eventTimestamp = LocalDateTime.ofInstant(Instant.now(), ZoneId.systemDefault());
|
||||
|
Reference in New Issue
Block a user