catch (Exception e) {
logger.error("ServletModuleLocalizer could not be initialized: " + e.getMessage());
}
-
-
}
+ /**
+ * Performs a localizer operation on an article.
+ *
+ * See also
+ * {@link mircoders.localizer.MirAdminInterfaceLocalizer#simpleArticleOperations()}
+ * {@link mircoders.localizer.MirAdminInterfaceLocalizer$MirSimpleEntityOperation()}
+ *
+ * @param aRequest The originating request
+ * @param anId The id of the article
+ * @param anOperation The identifier of the operation to perform
+ */
public void performCommentOperation(HttpServletRequest aRequest, String anId, String anOperation) {
MirAdminInterfaceLocalizer.MirSimpleEntityOperation operation;
EntityAdapter comment;
if (entity != null) {
MirGlobal.performArticleOperation(ServletHelper.getUser(aRequest), entity, anOperation);
logger.info("Operation " + anOperation + " successfully performed on article " + anId);
- logAdminUsage(aRequest, "article."+anId, "operation " + anOperation + " performed");
+ logAdminUsage(aRequest, "article." + anId, "operation " + anOperation + " performed");
}
else {
logger.error("Error while performing " + anOperation + " on article " + anId + ": article is null");