本文整理了Java中org.nuxeo.ecm.platform.actions.Action.getId()
方法的一些代码示例,展示了Action.getId()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Action.getId()
方法的具体详情如下:
包路径:org.nuxeo.ecm.platform.actions.Action
类名称:Action
方法名:getId
暂无
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-actions-core
@Override
public String getContributionId(Action contrib) {
return contrib.getId();
}
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-webapp-core
public void setSelectedImportOptionId(String id) {
for (Action importOption : importOptions) {
if (importOption.getId().equals(id)) {
selectedImportOption = importOption;
break;
}
}
}
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-webapp-core
public String getSelectedImportOptionId() {
if (selectedImportOption == null) {
selectedImportOption = importOptions != null && importOptions.size() > 0 ? importOptions.get(0) : null;
}
return selectedImportOption != null ? selectedImportOption.getId() : null;
}
代码示例来源:origin: opentoutatice-ecm.platform/opentoutatice-ecm-platform-web
private String getVirtualActionName(Action action) {
String name = null;
Matcher matcher = pattern.matcher(action.getId());
if (matcher.find() && (2 == matcher.groupCount())) {
name = matcher.group(2);
} else {
log.debug("Failed to get the virtual action associated to the action id='"+ action.getId() +"' (pattern '...@VIRTUAL_ACTION_...' not fitted");
}
return name;
}
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-webapp-base
@Override
public String getCurrentTabId(String category) {
Action action = getCurrentTabAction(category);
if (action != null) {
return action.getId();
}
return null;
}
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-webapp-base
@Override
public String getCurrentSubTabId() {
Action currentSubTab = getCurrentSubTabAction();
if (currentSubTab != null) {
return currentSubTab.getId();
}
return null;
}
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-webapp-base
@Override
public String getCurrentTabId() {
Action currentTab = getCurrentTabAction();
if (currentTab != null) {
return currentTab.getId();
}
return null;
}
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-admin-center-jsf
public String getCurrentViewId() {
return getCurrentView().getId();
}
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-user-center
public String getCurrentViewId() {
return getCurrentView().getId();
}
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-admin-center
public String getCurrentViewId() {
return getCurrentView().getId();
}
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-webapp-base
@Override
public void setCurrentSubTabAction(Action tabAction) {
if (tabAction != null) {
String[] categories = tabAction.getCategories();
if (categories == null || categories.length == 0) {
log.error("Cannot set subtab with id '" + tabAction.getId()
+ "' as this action does not hold any category");
return;
}
if (categories.length != 1) {
log.error("Setting subtab with id '" + tabAction.getId() + "' with category '" + categories[0]
+ "': use webActions#setCurrentTabAction(action, category) to specify another category");
}
setCurrentTabAction(categories[0], tabAction);
}
}
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-actions-core
private boolean checkFilters(ActionContext context, Action action) {
if (action == null) {
return false;
}
if (log.isTraceEnabled()) {
log.trace(String.format("Checking access for action '%s'...", action.getId()));
}
boolean granted = checkFilters(action, action.getFilterIds(), context);
if (granted) {
if (log.isTraceEnabled()) {
log.trace(String.format("Granting access for action '%s'", action.getId()));
}
} else {
if (log.isTraceEnabled()) {
log.trace(String.format("Denying access for action '%s'", action.getId()));
}
}
return granted;
}
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-webapp-core
@WebRemote
public List<String> getAvailableActionId(String popupDocId) {
List<Action> availableActions = getAvailablePopupActions(popupDocId);
List<String> availableActionsIds = new ArrayList<String>(availableActions.size());
for (Action act : availableActions) {
availableActionsIds.add(act.getId());
}
return availableActionsIds;
}
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-user-center
@Factory(value = "currentUserCenterSubViewId", scope = ScopeType.EVENT)
public String getCurrentSubViewId() {
return getCurrentSubView().getId();
}
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-admin-center
@Factory(value = "currentAdminSubViewId", scope = ScopeType.EVENT)
public String getCurrentSubViewId() {
return getCurrentSubView().getId();
}
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-admin-center-jsf
@Factory(value = "currentAdminSubViewId", scope = ScopeType.EVENT)
public String getCurrentSubViewId() {
return getCurrentSubView().getId();
}
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-webapp-base
public String getViewFor(Action mainTabAction) {
if (!mainTabAction.getId().equals(WebActions.DOCUMENTS_MAIN_TAB_ID)) {
return mainTabAction.getLink();
}
DocumentModel doc = getDocumentFor(mainTabAction.getId(), navigationContext.getCurrentDocument());
if (doc != null) {
TypeInfo typeInfo = doc.getAdapter(TypeInfo.class);
return typeInfo.getDefaultView();
}
return DEFAULT_VIEW;
}
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-webapp-base
@Override
public void setCurrentSubTabId(String tabId) {
if (tabId != null) {
// do not reset tab when not set as this method
// is used for compatibility in default url pattern
Action action = getCurrentTabAction();
if (action != null) {
setCurrentTabId(TabActionsSelection.getSubTabCategory(action.getId()), tabId);
}
}
}
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-webapp-base
@Override
@Factory(value = "currentSubTabAction", scope = EVENT)
public Action getCurrentSubTabAction() {
Action action = getCurrentTabAction();
if (action != null) {
return getCurrentTabAction(TabActionsSelection.getSubTabCategory(action.getId()));
}
return null;
}
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-webapp-base
@Override
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) {
DirectoryTreeDescriptor descriptor = (DirectoryTreeDescriptor) contribution;
registry.removeContribution(descriptor);
getActionService().removeAction(descriptor.getAction().getId());
}
内容来源于网络,如有侵权,请联系作者删除!