return schedulerHelper.deleteAllCompletedJobs();
}
public String getNodeURLByIdentifier(String servlet, String identifier, Date versionDate, String versionLabel, String workspace,
String locale) throws GWTJahiaServiceException {
final JCRSessionWrapper session = retrieveCurrentSession(workspace != null ? workspace : getWorkspace(),
locale != null ? LanguageCodeConverters.languageCodeToLocale(locale) : getLocale(), false);
try {
JCRNodeWrapper nodeByIdentifier = session.getNodeByIdentifier(identifier);
if(nodeByIdentifier.isFile()) {
String url = nodeByIdentifier.getUrl();
if (versionDate != null) {
url += "?v=" + (versionDate.getTime());
if (versionLabel != null) {
url += "&l=" + versionLabel;
}
}
return url;
} else {
return getResponse().encodeURL(this.navigation.getNodeURL(servlet, nodeByIdentifier, versionDate, versionLabel, session.getWorkspace().getName(),
session.getLocale()));
}
} catch (RepositoryException e) {
throw new GWTJahiaServiceException(e);
}
}