// Injected known AppWorkbenchServices: order is important, first found
// result will be returned by the various methods.
private List<AppService> knownAppServices;
@Override
// Injected known AppWorkbenchServices: order is important, first found
// result will be returned by the various methods.
private List<AppService> knownAppServices;
@Override
- public Node createEntity(Node parent, String nodeType, Node srcNode, boolean removeSrcNode)
+ public Node publishEntity(Node parent, String nodeType, Node srcNode, boolean removeSrcNode)
throws RepositoryException {
for (AppService appService : knownAppServices) {
if (appService.isKnownType(nodeType))
throws RepositoryException {
for (AppService appService : knownAppServices) {
if (appService.isKnownType(nodeType))
- return appService.createEntity(parent, nodeType, srcNode, removeSrcNode);
+ return appService.publishEntity(parent, nodeType, srcNode, removeSrcNode);
if (appService.isKnownType(entity))
return appService.saveEntity(entity, publish);
}
if (appService.isKnownType(entity))
return appService.saveEntity(entity, publish);
}