projects
/
gpl
/
argeo-suite.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adapt after SystemApp interfaces addition
[gpl/argeo-suite.git]
/
org.argeo.suite.core
/
src
/
org
/
argeo
/
suite
/
core
/
DefaultSuiteAppService.java
diff --git
a/org.argeo.suite.core/src/org/argeo/suite/core/DefaultSuiteAppService.java
b/org.argeo.suite.core/src/org/argeo/suite/core/DefaultSuiteAppService.java
index 52a9867cc7168bb1f4c710e9b6eb9b71621bd6b6..ea5dc23e53996bda065ea034a876320630825387 100644
(file)
--- a/
org.argeo.suite.core/src/org/argeo/suite/core/DefaultSuiteAppService.java
+++ b/
org.argeo.suite.core/src/org/argeo/suite/core/DefaultSuiteAppService.java
@@
-6,9
+6,11
@@
import javax.jcr.Node;
import javax.jcr.RepositoryException;
import org.argeo.connect.AppService;
import javax.jcr.RepositoryException;
import org.argeo.connect.AppService;
+import org.argeo.connect.SystemAppService;
import org.argeo.suite.SuiteConstants;
import org.argeo.suite.SuiteConstants;
+import org.argeo.suite.SuiteException;
-public class DefaultSuiteAppService implements AppService {
+public class DefaultSuiteAppService implements
System
AppService {
// Injected known AppWorkbenchServices: order is important, first found
// result will be returned by the various methods.
// Injected known AppWorkbenchServices: order is important, first found
// result will be returned by the various methods.
@@
-64,7
+66,8
@@
public class DefaultSuiteAppService implements AppService {
if (appService.isKnownType(entity))
return appService.saveEntity(entity, publish);
}
if (appService.isKnownType(entity))
return appService.saveEntity(entity, publish);
}
- return AppService.super.saveEntity(entity, publish);
+ throw new SuiteException("Unknown NodeType for " + entity + ". Cannot save");
+ // return AppService.super.saveEntity(entity, publish);
}
@Override
}
@Override