Skip to content

Commit

Permalink
Eliminata la cache CMIS via path
Browse files Browse the repository at this point in the history
        sessionParameters.put(SessionParameter.CACHE_PATH_OMIT,String.valueOf(Boolean.TRUE));
  • Loading branch information
mspasiano committed Feb 9, 2016
1 parent 0dce470 commit 0312dc4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Expand Up @@ -147,7 +147,7 @@ private Session createSession(String userName, String password){
sessionParameters.put(SessionParameter.LOCALE_ISO3166_COUNTRY, Locale.ITALY.getCountry());
sessionParameters.put(SessionParameter.LOCALE_ISO639_LANGUAGE, Locale.ITALY.getLanguage());
sessionParameters.put(SessionParameter.LOCALE_VARIANT, Locale.ITALY.getVariant());

sessionParameters.put(SessionParameter.CACHE_PATH_OMIT,String.valueOf(Boolean.TRUE));
return sessionFactory.createSession(sessionParameters);
}

Expand All @@ -166,6 +166,7 @@ private BindingSession createBindingSession(){
}
sessionParameters.put(SessionParameter.AUTH_HTTP_BASIC, "true");
sessionParameters.put(SessionParameter.AUTH_SOAP_USERNAMETOKEN, "false");
sessionParameters.put(SessionParameter.CACHE_PATH_OMIT,String.valueOf(Boolean.TRUE));
for (Map.Entry<String, String> entry : sessionParameters.entrySet()) {
session.put(entry.getKey(), entry.getValue());
}
Expand Down
Expand Up @@ -10,7 +10,7 @@ script:{
service = cnrutils.getBean('mimetypeService');
estensione = "." + service.getExtension(nodoDoc.mimetype);
if (nodoDoc.name.indexOf(estensione) === -1) {
nameDoc = nameDoc + estenzione;
nameDoc = nameDoc + estensione;
}
nameDocFirmato = nameDoc + ".p7m";
//crea il doc firmato
Expand Down

0 comments on commit 0312dc4

Please sign in to comment.