- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.hippoecm.repository.api.WorkflowDescriptor.getAttribute()
方法的一些代码示例,展示了WorkflowDescriptor.getAttribute()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WorkflowDescriptor.getAttribute()
方法的具体详情如下:
包路径:org.hippoecm.repository.api.WorkflowDescriptor
类名称:WorkflowDescriptor
方法名:getAttribute
[英]Method to access extra information that might be associated with this workflow. An example is the plugin class name to be used by a frontend application to access the workflow.
[中]方法来访问可能与此工作流关联的额外信息。例如,前端应用程序用于访问工作流的插件类名。
代码示例来源:origin: org.onehippo.cms7/hippo-repository-connector
public String getAttribute(String name) throws RepositoryException, RemoteException {
return descriptor.getAttribute(name);
}
代码示例来源:origin: org.onehippo.cms7/hippo-repository-engine
RemoteWorkflowDescriptor(WorkflowDescriptor workflowDescriptor, String category, String identifier) throws RepositoryException {
this.category = category;
this.identifier = identifier;
this.display = workflowDescriptor.getDisplayName();
this.attributes = new TreeMap<String, String>();
for (String attributeKey : workflowDescriptor.getAttribute(null).split(" "))
this.attributes.put(attributeKey, workflowDescriptor.getAttribute(attributeKey));
this.hints = workflowDescriptor.hints();
try {
Class<Workflow>[] workflowInterfaces = workflowDescriptor.getInterfaces();
if (workflowInterfaces != null) {
this.interfaces = new String[workflowInterfaces.length];
for (int i = 0; i < workflowInterfaces.length; i++) {
this.interfaces[i] = workflowInterfaces[i].getName();
}
} else {
this.interfaces = null;
}
} catch (ClassNotFoundException ex) {
this.interfaces = null;
}
}
}
代码示例来源:origin: org.onehippo.cms7/hippo-cms-workflowmenu
private Panel createPluginForWorkflow(WorkflowDescriptorModel pluginModel) throws RepositoryException {
WorkflowDescriptor descriptor = pluginModel.getObject();
String pluginRenderer = descriptor.getAttribute(FrontendNodeType.FRONTEND_RENDERER);
if (pluginRenderer == null) {
log.warn("No plugin renderer configured.");
return null;
}
pluginRenderer = pluginRenderer.trim();
if (!pluginRenderer.startsWith("/")) {
log.warn("The frontend:pluginrenderer property is no longer supported, only a child node of type frontend:plugin or frontend:plugincluster.");
return null;
} else {
Node node = UserSession.get().getJcrSession().getNode(pluginRenderer);
final JcrNodeModel nodeModel = new JcrNodeModel(node);
if (node.isNodeType(FrontendNodeType.NT_PLUGINCLUSTER)) {
JcrClusterConfig jcrPluginConfig = new JcrClusterConfig(nodeModel);
return (Panel) plugins.startRenderer(jcrPluginConfig, pluginModel);
} else {
JcrPluginConfig jcrPluginConfig = new JcrPluginConfig(nodeModel);
return (Panel) plugins.startRenderer(jcrPluginConfig, pluginModel);
}
}
}
本文整理了Java中org.hippoecm.repository.api.WorkflowDescriptor.getInterfaces()方法的一些代码示例,展示了WorkflowDescrip
本文整理了Java中org.hippoecm.repository.api.WorkflowDescriptor.getDisplayName()方法的一些代码示例,展示了WorkflowDescri
本文整理了Java中org.hippoecm.repository.api.WorkflowDescriptor.getAttribute()方法的一些代码示例,展示了WorkflowDescript
本文整理了Java中org.hippoecm.repository.api.WorkflowDescriptor.hints()方法的一些代码示例,展示了WorkflowDescriptor.hint
我是一名优秀的程序员,十分优秀!