org.apache.isis.applib.Identifier.toNameParmsIdentityString()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(3.4k)|赞(0)|评价(0)|浏览(119)

本文整理了Java中org.apache.isis.applib.Identifier.toNameParmsIdentityString()方法的一些代码示例,展示了Identifier.toNameParmsIdentityString()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Identifier.toNameParmsIdentityString()方法的具体详情如下:
包路径:org.apache.isis.applib.Identifier
类名称:Identifier
方法名:toNameParmsIdentityString

Identifier.toNameParmsIdentityString介绍

暂无

代码示例

代码示例来源:origin: org.apache.isis.core/isis-core-viewer-wicket-model

private static String determineActionId(final ObjectAction objectAction) {
  final Identifier identifier = objectAction.getIdentifier();
  if (identifier != null) {
    return identifier.toNameParmsIdentityString();
  }
  // fallback (used for action sets)
  return objectAction.getId();
}

代码示例来源:origin: org.apache.isis.viewer/isis-viewer-wicket-model

private static String determineActionId(final ObjectAction objectAction) {
  final Identifier identifier = objectAction.getIdentifier();
  if (identifier != null) {
    return identifier.toNameParmsIdentityString();
  }
  // fallback (used for action sets)
  return objectAction.getId();
}

代码示例来源:origin: org.apache.isis.viewer/wicket-model

private static String determineActionId(final ObjectAction noAction) {
  final Identifier identifier = noAction.getIdentifier();
  if (identifier != null) {
    return identifier.toNameParmsIdentityString();
  }
  // fallback (used for action sets)
  return noAction.getId();
}

代码示例来源:origin: org.apache.isis.core/metamodel

private ObjectAction getAction(final List<ObjectAction> availableActions, final ActionType type, final String id) {
  if (id == null) {
    return null;
  }
  outer: for (int i = 0; i < availableActions.size(); i++) {
    final ObjectAction action = availableActions.get(i);
    if (action.getActions().size() > 0) {
      // deal with action set
      final ObjectAction a = getAction(action.getActions(), type, id);
      if (a != null) {
        return a;
      }
    } else {
      // regular action
      if (!type.matchesTypeOf(action)) {
        continue outer;
      }
      if (id.equals(action.getIdentifier().toNameParmsIdentityString())) {
        return action;
      }
      if (id.equals(action.getIdentifier().toNameIdentityString())) {
        return action;
      }
      continue outer;
    }
  }
  return null;
}

代码示例来源:origin: org.apache.isis.viewer/wicket-model

public ActionMemento(final ObjectAction action) {
  this(new SpecMemento(action.getOnType()), action.getType(), action.getIdentifier().toNameParmsIdentityString());
  this.action = action;
}

代码示例来源:origin: org.apache.isis.core/isis-core-viewer-wicket-model

public ActionMemento(
    final ObjectSpecId owningType,
    final ActionType actionType,
    final String nameParmsId,
    final SpecificationLoader specificationLoader) {
  this(owningType, actionType, nameParmsId, actionFor(owningType, actionType, nameParmsId, specificationLoader));
}

代码示例来源:origin: org.apache.isis.viewer/isis-viewer-wicket-model

public ActionMemento(
    final ObjectSpecId owningType,
    final ActionType actionType,
    final String nameParmsId,
    final SpecificationLoader specificationLoader) {
  this(owningType, actionType, nameParmsId, actionFor(owningType, actionType, nameParmsId, specificationLoader));
}

代码示例来源:origin: org.apache.isis.runtimes.dflt.remoting/common

ExecuteServerActionResponse response;
try {
  final ExecuteServerActionRequest request = new ExecuteServerActionRequest(getAuthenticationSession(), ActionType.USER, objectAction.getIdentifier().toNameParmsIdentityString(), targetReference, parameterObjectData);
  response = serverFacade.executeServerAction(request);

代码示例来源:origin: org.apache.isis.core/isis-core-runtime

final String oidStr = OID_MARSHALLER.marshal(adapterOid);
final Identifier actionIdentifier = objectAction.getIdentifier();
final String title = oidStr + ": " + actionIdentifier.toNameParmsIdentityString();

相关文章