Skip to content

Commit

Permalink
BUG su attiva file
Browse files Browse the repository at this point in the history
  • Loading branch information
mspasiano committed Jul 9, 2016
1 parent 147c98c commit 6e73d20
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
Expand Up @@ -53,6 +53,10 @@ public String parseFilename(String file) {
public boolean isNodePresent(){
return getDocument() == null;
}

public boolean isNodeNotPresent(){
return !isNodePresent();
}

public Document getDocument() {
return node;
Expand Down
Expand Up @@ -58,6 +58,10 @@ public boolean isNodePresent(){
return nodeRef != null;
}

public boolean isNodeNotPresent(){
return !isNodePresent();
}

public Document getDocument(SiglaCMISService service) throws ApplicationException {
if (!isNodePresent())
return null;
Expand Down
Expand Up @@ -49,7 +49,7 @@
enabledOnSearch="false"
enabledOnInsert="false"
enabledOnView="true"
readonlyProperty="nodePresent"
readonlyProperty="nodeNotPresent"
img="img/import24.gif"
href="javascript:doScaricaAllegato()"
label="Apri File" />
Expand Down
Expand Up @@ -49,7 +49,7 @@
enabledOnSearch="false"
enabledOnInsert="false"
enabledOnView="true"
readonlyProperty="nodePresent"
readonlyProperty="nodeNotPresent"
img="img/import24.gif"
href="javascript:doScaricaFile()"
label="Apri File" />
Expand Down

0 comments on commit 6e73d20

Please sign in to comment.