/** * Return base DN of this directory context */ @RemoteMethod public String getBaseDN() { return baseDN; }
@RemoteMethod public String getContent() { return content; }
@RemoteMethod public String getTitle() { return title; }
@RemoteMethod public String getObjectId() { return objectId; }
@RemoteMethod public String getAction() { return "gotoUrl"; }
@RemoteMethod public boolean isReplace() { return this.replace; }
@RemoteMethod public String getAction() { return "download"; }
@RemoteMethod public String processGeometry(JAXBElement<AbstractGeometryType> geometryElement) throws Exception { final StringWriter stringWriter = new StringWriter(); final Marshaller marshaller = context.createMarshaller(); marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE); marshaller.marshal(geometryElement, stringWriter); return stringWriter.toString(); } }
@RemoteMethod public String getCurrentContainerProperty(String containerId, String propertyKey){ ContainerSystemInfo systemInfo = configuration.containerSystem; List<ContainerInfo> containerInfos = systemInfo.containers; for (ContainerInfo containerInfo : containerInfos) { containerId = replaceEscapes(containerId); if (containerInfo.id.equals(containerId)) { return containerInfo.properties.getProperty(propertyKey); } } return null; }
@RemoteMethod public Collection<String> getBrokenLinks(String url) { return BrokenLink.findBrokenLinksOnPage(url); }
@RemoteMethod public CommandResult handleInput(String key, String formKey, List<ListItem> items, HttpServletRequest request, HttpServletResponse response) { Form form = (Form) request.getSession().getAttribute(formKey); return new CommandContextHandler(this, key, request) .handleDialogInput(form); }
/** * Returns the value of the given property. */ @RemoteMethod public String getText(String contentId, String property) { ContentMap content = Content.loadFragment(contentId); Object value = content.get(property); return value != null ? value.toString() : null; }
@RemoteMethod public List<ComponentMetaData> getComponentMetaData(String[] types) { List<ComponentMetaData> result = Generics.newArrayList(); for (int i = 0; i < types.length; i++) { result.add(metaDataProvider.getMetaData(types[i])); } return result; }
@Override @RemoteMethod public Point getSnapPoint(String layerId, double resolution, Point newCoordinate, HttpSession session) { return snappingResolverProvider.getSnappingResolver(layerId).getSnapPoint(resolution, newCoordinate); }
@RemoteMethod public String saveGeneratedPlan(HttpServletRequest request, String plan) { return getEarConfigData(request).setDeploymentPlan(plan); } /*@RemoteMethod
@RemoteMethod public ListModel getModel(String key, String expandedId, HttpServletRequest request) { return new ListModelBuilder(this, key, request).buildModel(expandedId); }
@RemoteMethod public List<CommandButton> getFormCommands(String key, ListItem item, HttpServletRequest request) { return new CommandContextHandler(this, key, request).createFormButtons(item); }
@RemoteMethod public CommandResult execCommand(String key, String commandId, List<ListItem> items, HttpServletRequest request, HttpServletResponse response) throws Exception { return new ChooserCommandHandler(this, key, request) .execCommand(commandId, items); }
@RemoteMethod public List<String> getEnabledCommands(String key, List<ListItem> items, HttpServletRequest request, HttpServletResponse response) { return new ChooserCommandHandler(this, key, request) .getEnabledCommands(items); }
@RemoteMethod public List<ListItem> getChildren(String key, String parentId, HttpServletRequest request) { return new ListItemLoader(this, key, request).getChildren(parentId); }