protected static DocumentModel getCurrentDocModelFromCsid(CoreSessionInterface session, String csid) {
DocumentModelList docModelList = null;
+ if (Tools.isEmpty(csid)) {
+ return null;
+ }
+
try {
final String query = "SELECT * FROM "
+ NuxeoUtils.BASE_DOCUMENT_TYPE
if (failed) {
triggerShutdown(isInit, server);
} else if (!isInit) {
- logger.log(Level.INFO, "CollectionSpace Startup successful.");
+ logger.log(Level.INFO, "CollectionSpace Startup successful." + "\007" + "\007" + "\007");
}
}
}
return BatchCommon.class;
}
- /**
// other resource methods and use the getRepositoryClient() methods.
@Override
protected AbstractCommonList getCommonList(UriInfo ui) {
if (csid != null) {
result = "ecm:name = " + "\'" + csid + "\'";
+ } else {
+ logger.error("Call to NuxeoUtils.getByNameWhereClause() with null valued CSID.");
}
-
+
return result;
}