本文整理汇总了Java中org.apache.isis.applib.services.bookmark.Bookmark.toString方法的典型用法代码示例。如果您正苦于以下问题:Java Bookmark.toString方法的具体用法?Java Bookmark.toString怎么用?Java Bookmark.toString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.isis.applib.services.bookmark.Bookmark
的用法示例。
在下文中一共展示了Bookmark.toString方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: findByAttachedToAndRoleName
import org.apache.isis.applib.services.bookmark.Bookmark; //导入方法依赖的package包/类
@Programmatic
public List<Paperclip> findByAttachedToAndRoleName(
final Object attachedTo,
final String roleName) {
if(attachedTo == null) {
return null;
}
if(roleName == null) {
return null;
}
final Bookmark bookmark = bookmarkService.bookmarkFor(attachedTo);
if(bookmark == null) {
return null;
}
final String attachedToStr = bookmark.toString();
return repositoryService.allMatches(
new QueryDefault<>(Paperclip.class,
"findByAttachedToAndRoleName",
"attachedToStr", attachedToStr,
"roleName", roleName));
}
示例2: findByDocumentAndAttachedTo
import org.apache.isis.applib.services.bookmark.Bookmark; //导入方法依赖的package包/类
@Programmatic
public List<Paperclip> findByDocumentAndAttachedTo(
final DocumentAbstract<?> document,
final Object attachedTo) {
if(document == null) {
return null;
}
if(attachedTo == null) {
return null;
}
final Bookmark bookmark = bookmarkService.bookmarkFor(attachedTo);
if(bookmark == null) {
return null;
}
final String attachedToStr = bookmark.toString();
return repositoryService.allMatches(
new QueryDefault<>(Paperclip.class,
"findByDocumentAndAttachedTo",
"document", document,
"attachedToStr", attachedToStr));
}
示例3: findByDocumentAndAttachedToAndRoleName
import org.apache.isis.applib.services.bookmark.Bookmark; //导入方法依赖的package包/类
@Programmatic
public Paperclip findByDocumentAndAttachedToAndRoleName(
final DocumentAbstract<?> document,
final Object attachedTo,
final String roleName) {
if(document == null) {
return null;
}
if(attachedTo == null) {
return null;
}
if(roleName == null) {
return null;
}
final Bookmark bookmark = bookmarkService.bookmarkFor(attachedTo);
if(bookmark == null) {
return null;
}
final String attachedToStr = bookmark.toString();
return repositoryService.firstMatch(
new QueryDefault<>(Paperclip.class,
"findByDocumentAndAttachedToAndRoleName",
"document", document,
"attachedToStr", attachedToStr,
"roleName", roleName));
}
示例4: findRecentByTargetAndPropertyId
import org.apache.isis.applib.services.bookmark.Bookmark; //导入方法依赖的package包/类
public List<AuditEntry> findRecentByTargetAndPropertyId(
final Bookmark target,
final String propertyId) {
final String targetStr = target.toString();
return repositoryService.allMatches(
new QueryDefault<>(AuditEntry.class,
"findRecentByTargetAndPropertyId",
"targetStr", targetStr,
"propertyId", propertyId
));
}
示例5: findByTargetAndFromAndTo
import org.apache.isis.applib.services.bookmark.Bookmark; //导入方法依赖的package包/类
@Programmatic
public List<AuditEntry> findByTargetAndFromAndTo(
final Bookmark target,
final LocalDate from,
final LocalDate to) {
final String targetStr = target.toString();
final Timestamp fromTs = toTimestampStartOfDayWithOffset(from, 0);
final Timestamp toTs = toTimestampStartOfDayWithOffset(to, 1);
final Query<AuditEntry> query;
if(from != null) {
if(to != null) {
query = new QueryDefault<>(AuditEntry.class,
"findByTargetAndTimestampBetween",
"targetStr", targetStr,
"from", fromTs,
"to", toTs);
} else {
query = new QueryDefault<>(AuditEntry.class,
"findByTargetAndTimestampAfter",
"targetStr", targetStr,
"from", fromTs);
}
} else {
if(to != null) {
query = new QueryDefault<>(AuditEntry.class,
"findByTargetAndTimestampBefore",
"targetStr", targetStr,
"to", toTs);
} else {
query = new QueryDefault<>(AuditEntry.class,
"findByTarget",
"targetStr", targetStr);
}
}
return repositoryService.allMatches(query);
}
示例6: findByClassified
import org.apache.isis.applib.services.bookmark.Bookmark; //导入方法依赖的package包/类
@Programmatic
public List<Classification> findByClassified(
final Object classifiable) {
final Bookmark bookmark = bookmarkService.bookmarkFor(classifiable);
final String classifiedStr = bookmark.toString();
return repositoryService.allMatches(
new QueryDefault<>(Classification.class,
"findByClassified",
"classifiedStr", classifiedStr));
}
示例7: findByAttachedTo
import org.apache.isis.applib.services.bookmark.Bookmark; //导入方法依赖的package包/类
@Programmatic
public List<Paperclip> findByAttachedTo(final Object attachedTo) {
if(attachedTo == null) {
return null;
}
final Bookmark bookmark = bookmarkService.bookmarkFor(attachedTo);
if(bookmark == null) {
return null;
}
final String attachedToStr = bookmark.toString();
return repositoryService.allMatches(
new QueryDefault<>(Paperclip.class,
"findByAttachedTo",
"attachedToStr", attachedToStr));
}
示例8: getBookmark
import org.apache.isis.applib.services.bookmark.Bookmark; //导入方法依赖的package包/类
@MemberOrder(sequence = "4")
@Property(editing = Editing.DISABLED)
public String getBookmark() {
Bookmark bookmark = bookmarkService.bookmarkFor(this);
return bookmark.toString();
}