当前位置: 首页>>代码示例>>Java>>正文


Java Bookmark.toString方法代码示例

本文整理汇总了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));
}
 
开发者ID:estatio,项目名称:estatio,代码行数:22,代码来源:PaperclipRepository.java

示例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));
}
 
开发者ID:estatio,项目名称:estatio,代码行数:22,代码来源:PaperclipRepository.java

示例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));
}
 
开发者ID:estatio,项目名称:estatio,代码行数:27,代码来源:PaperclipRepository.java

示例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
                ));
}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-audit,代码行数:12,代码来源:AuditingServiceRepository.java

示例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);
}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-audit,代码行数:38,代码来源:AuditingServiceRepository.java

示例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));
}
 
开发者ID:estatio,项目名称:estatio,代码行数:11,代码来源:ClassificationRepository.java

示例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));
}
 
开发者ID:estatio,项目名称:estatio,代码行数:16,代码来源:PaperclipRepository.java

示例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();
}
 
开发者ID:isisaddons,项目名称:isis-app-kitchensink,代码行数:7,代码来源:SomeViewModel.java


注:本文中的org.apache.isis.applib.services.bookmark.Bookmark.toString方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。