本文整理了Java中org.apache.isis.applib.Identifier.toClassAndNameIdentityString()
方法的一些代码示例,展示了Identifier.toClassAndNameIdentityString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Identifier.toClassAndNameIdentityString()
方法的具体详情如下:
包路径:org.apache.isis.applib.Identifier
类名称:Identifier
方法名:toClassAndNameIdentityString
暂无
代码示例来源:origin: org.apache.isis.core/isis-core-applib
@Override
public String toIdentityString(final Identifier identifier) {
return identifier.toClassAndNameIdentityString();
}
},
代码示例来源:origin: org.apache.isis/applib
@Override
public String toIdentityString(final Identifier identifier) {
return identifier.toClassAndNameIdentityString();
}
},
代码示例来源:origin: org.apache.isis/applib
public String toClassAndNameIdentityString() {
return toClassAndNameIdentityString(new StringBuilder()).toString();
}
代码示例来源:origin: org.apache.isis.core/isis-core-applib
public String toClassAndNameIdentityString() {
return toClassAndNameIdentityString(new StringBuilder()).toString();
}
代码示例来源:origin: org.apache.isis.core/isis-core-runtime
public String getMemberId() {
return property.getIdentifier().toClassAndNameIdentityString();
}
代码示例来源:origin: org.apache.isis.core/isis-core-runtime
private static ObjectAction findActionElseNull(
final ObjectSpecification specification,
final String actionId) {
final List<ObjectAction> objectActions = specification.getObjectActions(Contributed.INCLUDED);
for (final ObjectAction objectAction : objectActions) {
if(objectAction.getIdentifier().toClassAndNameIdentityString().equals(actionId)) {
return objectAction;
}
}
return null;
}
代码示例来源:origin: org.apache.isis.module/isis-module-background
private ObjectAction findAction(final ObjectSpecification specification, final String actionId) {
final List<ObjectAction> objectActions = specification.getObjectActions(Contributed.INCLUDED);
for (final ObjectAction objectAction : objectActions) {
if(objectAction.getIdentifier().toClassAndNameIdentityString().equals(actionId)) {
return objectAction;
}
}
return null;
}
代码示例来源:origin: org.apache.isis.core/isis-core-runtime
private static OneToOneAssociation findOneToOneAssociationElseNull(
final ObjectSpecification specification,
final String propertyId) {
final List<ObjectAssociation> associations = specification.getAssociations(Contributed.INCLUDED);
for (final ObjectAssociation association : associations) {
if( association.getIdentifier().toClassAndNameIdentityString().equals(propertyId) &&
association instanceof OneToOneAssociation) {
return (OneToOneAssociation) association;
}
}
return null;
}
代码示例来源:origin: org.apache.isis.viewer/scimpi-dispatcher
@Override
public void process(final Request request) {
final RequestContext context = request.getContext();
if (context.isDebugDisabled()) {
return;
}
final Identifier identifier = (Identifier) context.getVariable("_security-identifier");
final List<String> roles = (List<String>) context.getVariable("_security-roles");
final StringBuffer roleList = new StringBuffer();
for (final String role : roles) {
if (roleList.length() > 0) {
roleList.append("|");
}
roleList.append(role);
}
request.appendHtml("<pre>");
request.appendHtml(identifier.toClassIdentityString() + ":" + roleList + "\n");
request.appendHtml(identifier.toClassAndNameIdentityString() + ":" + roleList + "\n");
request.appendHtml(identifier.toFullIdentityString() + ":" + roleList + "\n");
request.appendHtml("</pre>");
}
代码示例来源:origin: org.apache.isis.core/isis-core-runtime
@Override @Programmatic
public ActionInvocationDto asActionInvocationDto(
final ObjectAction objectAction,
final ObjectAdapter targetAdapter,
final List<ObjectAdapter> argumentAdapters) {
final Interaction interaction = interactionContext.getInteraction();
final UUID transactionId = interaction.getTransactionId();
final int nextEventSequence = interaction.next(Interaction.Sequence.INTERACTION.id());
final Object targetPojo = targetAdapter.getObject();
final Bookmark targetBookmark = bookmarkService.bookmarkFor(targetPojo);
final String actionIdentifier = objectAction.getIdentifier().toClassAndNameIdentityString();
final String actionId = actionIdentifier.substring(actionIdentifier.indexOf('#')+1);
final String targetTitle = targetBookmark.toString() + ": " + actionId;
final String currentUser = userService.getUser().getName();
final ActionDto actionDto = new ActionDto();
commandDtoServiceInternal.addActionArgs(
objectAction, actionDto, argumentAdapters.toArray(new ObjectAdapter[]{}));
final List<ParamDto> parameterDtos = CommandDtoUtils.parametersFor(actionDto).getParameter();
final String transactionIdStr = transactionId.toString();
return InteractionDtoUtils.newActionInvocation(
nextEventSequence, targetBookmark, targetTitle,
actionDto.getMemberIdentifier(),
parameterDtos, currentUser
);
}
代码示例来源:origin: org.apache.isis.core/isis-core-runtime
@Override @Programmatic
public PropertyEditDto asPropertyEditDto(
final OneToOneAssociation property,
final ObjectAdapter targetAdapter,
final ObjectAdapter newValueAdapterIfAny) {
final Interaction interaction = interactionContext.getInteraction();
final int nextEventSequence = interaction.next(Interaction.Sequence.INTERACTION.id());
final Object targetPojo = targetAdapter.getObject();
final Bookmark targetBookmark = bookmarkService.bookmarkFor(targetPojo);
final String propertyIdentifier = property.getIdentifier().toClassAndNameIdentityString();
final String propertyId = propertyIdentifier.substring(propertyIdentifier.indexOf('#')+1);
final String targetTitle = targetBookmark.toString() + ": " + propertyId;
final String currentUser = userService.getUser().getName();
final PropertyDto propertyDto = new PropertyDto();
commandDtoServiceInternal.addPropertyValue(property, propertyDto, newValueAdapterIfAny);
final ValueWithTypeDto newValue = propertyDto.getNewValue();
return InteractionDtoUtils.newPropertyEdit(
nextEventSequence, targetBookmark, targetTitle,
propertyDto.getMemberIdentifier(),
newValue, currentUser
);
}
内容来源于网络,如有侵权,请联系作者删除!