本文整理了Java中org.nuxeo.ecm.platform.actions.Action.getProperties()
方法的一些代码示例,展示了Action.getProperties()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Action.getProperties()
方法的具体详情如下:
包路径:org.nuxeo.ecm.platform.actions.Action
类名称:Action
方法名:getProperties
[英]Returns an aggregate of #localProperties and #properties set via descriptors.
[中]返回通过描述符设置的#localProperties和#properties的集合。
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-actions-core
protected String getStringProperty(String prop) {
Map<String, Serializable> props = getProperties();
if (props != null && props.containsKey(prop)) {
Object obj = props.get(prop);
if (obj instanceof String) {
return (String) obj;
}
}
return null;
}
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-actions-core
public boolean isImmediate() {
if (immediate == null) {
Map<String, Serializable> props = getProperties();
if (props != null && props.containsKey("immediate")) {
Object obj = props.get("immediate");
if (obj instanceof String) {
return Boolean.valueOf((String) obj).booleanValue();
} else if (obj instanceof Boolean) {
return ((Boolean) obj).booleanValue();
}
}
return false;
}
return immediate.booleanValue();
}
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-search-ui
@Override
public List<ContentViewHeader> getContentViewHeaders(ActionContext actionContext, DocumentModel doc) {
ActionManager actionService = Framework.getService(ActionManager.class);
List<Action> actions = actionService.getActions(SEARCH_CONTENT_VIEWS_CATEGORY, actionContext);
List<String> contentViewNames = new ArrayList<>();
for (Action action : actions) {
String contentViewName = (String) action.getProperties().get(CONTENT_VIEW_NAME_PROPERTY);
if (contentViewName != null) {
contentViewNames.add(contentViewName);
}
}
contentViewNames = filterContentViewNames(contentViewNames, doc);
ContentViewService contentViewService = Framework.getService(ContentViewService.class);
List<ContentViewHeader> contentViewHeaders = new ArrayList<>();
for (String contentViewName : contentViewNames) {
ContentViewHeader contentViewHeader = contentViewService.getContentViewHeader(contentViewName);
if (contentViewHeader != null) {
contentViewHeaders.add(contentViewHeader);
}
}
return contentViewHeaders;
}
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-document-routing-web
String buttonId = (String) taskAction.getProperties().get("buttonId");
Map<String, Serializable> formVariables = (Map<String, Serializable>) taskAction.getProperties().get(
"formVariables");
if (formVariables != null) {
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-webapp-core
public String importDocuments() {
Map<String, Serializable> importOptionProperties = selectedImportOption.getProperties();
String chainOrOperationId = null;
if (importOptionProperties.containsKey("chainId")) {
代码示例来源:origin: acaren-nuxeo-base/acaren-nuxeo-base-core
Map<String, Serializable> properties = action.getProperties();
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-actions-jsf
props.putAll(actionInstance.getProperties());
if ("template".equals(wtype)) {
fullOnclick.append(confirm).append(";");
String onclick = (String) actionInstance.getProperties().get("onclick");
if (!StringUtils.isEmpty(onclick)) {
fullOnclick.append(onclick).append(";");
内容来源于网络,如有侵权,请联系作者删除!