@Override protected boolean deRegisterListener() { return clientEngine.getProxyService().removeProxyListener(parameters.registrationId); }
@Override protected boolean deRegisterListener() { return clientEngine.getProxyService().removeProxyListener(parameters.registrationId); }
@Override public Permission getRequiredPermission() { ProxyService proxyService = clientEngine.getProxyService(); Collection<String> distributedObjectNames = proxyService.getDistributedObjectNames(parameters.serviceName); if (distributedObjectNames.contains(parameters.name)) { return null; } return ActionConstants.getPermission(parameters.name, parameters.serviceName, ActionConstants.ACTION_CREATE); }
@Override public Permission getRequiredPermission() { ProxyService proxyService = clientEngine.getProxyService(); Collection<String> distributedObjectNames = proxyService.getDistributedObjectNames(parameters.serviceName); if (distributedObjectNames.contains(parameters.name)) { return null; } return ActionConstants.getPermission(parameters.name, parameters.serviceName, ActionConstants.ACTION_CREATE); }
@Override protected Object call() throws Exception { final ProxyService proxyService = clientEngine.getProxyService(); final String registrationId = proxyService.addProxyListener(this); endpoint.addDestroyAction(registrationId, new Callable() { @Override public Boolean call() { return proxyService.removeProxyListener(registrationId); } }); return registrationId; }
@Override protected Object call() throws Exception { final ProxyService proxyService = clientEngine.getProxyService(); final String registrationId = proxyService.addProxyListener(this); endpoint.addDestroyAction(registrationId, new Callable() { @Override public Boolean call() { return proxyService.removeProxyListener(registrationId); } }); return registrationId; }
@Override protected Object call() throws Exception { Collection<DistributedObject> distributedObjects = clientEngine.getProxyService().getAllDistributedObjects(); List<DistributedObjectInfo> coll = new ArrayList<DistributedObjectInfo>(distributedObjects.size()); for (DistributedObject distributedObject : distributedObjects) { String name = DistributedObjectUtil.getName(distributedObject); coll.add(new DistributedObjectInfo(distributedObject.getServiceName(), name)); } return coll; }
@Override protected Object call() throws Exception { Collection<DistributedObject> distributedObjects = clientEngine.getProxyService().getAllDistributedObjects(); List<DistributedObjectInfo> coll = new ArrayList<DistributedObjectInfo>(distributedObjects.size()); for (DistributedObject distributedObject : distributedObjects) { String name = DistributedObjectUtil.getName(distributedObject); coll.add(new DistributedObjectInfo(distributedObject.getServiceName(), name)); } return coll; }