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

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

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

Identifier.getClassName介绍

暂无

代码示例

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

/**
 * As per {@link #getClassName()}, but naturalized.
 * 
 * @see #getIdentifier
 */
public String getClassName() {
  return identifier.getClassName();
}

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

/**
 * As per {@link #getClassName()}, but naturalized.
 * 
 * @see #getIdentifier
 */
public String getClassName() {
  return identifier.getClassName();
}

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

private boolean isPerspectiveMember(final Identifier identifier) {
  return (identifier.getClassName().equals(""));
}

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

public String getClassNaturalName() {
  final String className = getClassName();
  final String isolatedName = className.substring(className.lastIndexOf('.') + 1);
  return NameUtils.naturalName(isolatedName);
}

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

public String getClassNaturalName() {
  final String className = getClassName();
  final String isolatedName = className.substring(className.lastIndexOf('.') + 1);
  return NameUtils.naturalName(isolatedName);
}

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

private static String buildParameterTypeKey(final Identifier identifier, final String textType, final int paramNum) {
  return identifier.getClassName() + "." + MEMBER_TYPE_ACTION + "." + identifier.getMemberName() + "." + MEMBER_TYPE_PARAMETER + (paramNum + 1) + "." + textType;
}

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

private static String asPermissionsString(Identifier identifier) {
  String fullyQualifiedClassName = identifier.getClassName();
  int lastDot = fullyQualifiedClassName.lastIndexOf('.');
  String packageName;
  String className;
  if(lastDot > 0) {
    packageName =fullyQualifiedClassName.substring(0, lastDot);
    className = fullyQualifiedClassName.substring(lastDot+1);
  } else {
    packageName = "";
    className = fullyQualifiedClassName;
  }
  return packageName + ":" + className + ":" + identifier.getMemberName();
}

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

private static String buildMemberTypeKey(final Identifier identifier, final String textType, final String memberType) {
  final StringBuilder sb = new StringBuilder();
  sb.append(identifier.getClassName()).append(".");
  sb.append(memberType);
  final String memberName = identifier.getMemberName();
  if (!StringUtils.isNullOrEmpty(memberName)) {
    sb.append(".").append(memberName);
  }
  sb.append(".").append(textType);
  return sb.toString();
}

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

final String className = CLASS_PREFIX + identifier.getClassName().toLowerCase();
final String name = NAME_PREFIX + identifier.getMemberName().toLowerCase();

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

private String classNameOf(RootOid oid) {
  ObjectSpecId objectSpecId = oid.getObjectSpecId();
  return specificationLoader.lookupBySpecId(objectSpecId).getIdentifier().getClassName();
}

代码示例来源:origin: org.apache.isis.runtimes.dflt.objectstores/sql-impl

@Override
  protected String determineColumnName(final ObjectAssociation objectAssociation) {
    if (objectAssociation instanceof OneToManyAssociationImpl) {
      final OneToManyAssociationImpl fkAssoc = (OneToManyAssociationImpl) objectAssociation;
      final FacetedMethod peer = fkAssoc.getFacetedMethod();
      final String fullClassName = peer.getIdentifier().getClassName();
      final int lastPos = fullClassName.lastIndexOf('.');
      return fullClassName.substring(lastPos + 1) + "_" + fkAssoc.getId();
    } else {
      return objectAssociation.getSpecification().getShortIdentifier();
    }
  }
}

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

private String classNameOf(RootOid oid) {
  ObjectSpecId objectSpecId = oid.getObjectSpecId();
  return specificationLoader.lookupBySpecId(objectSpecId).getIdentifier().getClassName();
}

代码示例来源:origin: org.apache.isis.viewer/scimpi-dispatcher

private ForbiddenException(final Identifier identifier, final AuthenticationSession session, final boolean isVisibleAndUsabable) {
  super((identifier.getType() == Identifier.Type.PROPERTY_OR_COLLECTION ? "Field" : "Action") + " '" + identifier.getMemberName() + "' in " + identifier.getClassName() + " is not " + (isVisibleAndUsabable ? "visible/usable " : "visible") + " for " + session.getUserName() + " "
      + session.getRoles());
  this.identifier = identifier;
  this.session = session;
}

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

@Test
public void classIdentifierClassNameIsSet() {
  final Class<?> domainClass = SomeDomainClass.class;
  final String domainClassFullyQualifiedName = domainClass.getCanonicalName();
  identifier = Identifier.classIdentifier(domainClass);
  assertThat(identifier.getClassName(), is(domainClassFullyQualifiedName));
}

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

private ObjectMember getMember(final String memberName) {
  final Identifier id = Identifier.fromIdentityString(memberName);
  final ObjectSpecification specification = getSpecificationLoader().loadSpecification(id.getClassName());
  if (id.isPropertyOrCollection()) {
    return getAssociationElseThrowException(id, specification);
  } else {
    return getActionElseThrowException(id, specification);
  }
}

相关文章