Examples of user()


Examples of se.caboo.beast.model.Post.user()

    Post randomPost = topicPosts.lastObject();
    System.out.println("Application.Application: Fetching the topic for a post (this will break if topic is not already fetched)");
    System.out.println("Application.Application:   " + randomPost.topic().title());
   
    System.out.println("Application.Application: Fetch author of post");
    User postedByUser = randomPost.user();
    System.out.println("Application.Application:   " + postedByUser.displayName());
   
    System.out.println("Application.Application: Fetching posts by author");
    NSArray<Post> userPosts = postedByUser.posts();
    for (Post post : userPosts) {
View Full Code Here

Examples of se.caboo.beast.model.Topic.user()

    System.out.println("Application.Application: Refetching single topic w/ PK");
    Topic singleTopic = Topic.fetchRequiredTopic(editingContext, Topic.FORUM.eq(singleForum).and(ERXQ.equals("id", 633)));
    System.out.println("Application.Application:   " + singleTopic.title());
   
    System.out.println("Application.Application: Fetching topic user");
    User user = singleTopic.user();
    System.out.println("Application.Application:   " + user.displayName());

    System.out.println("Application.Application: Fetching posts for topic (composite pk, which is kind of interesting)");
    NSArray<Post> topicPosts = singleTopic.posts();
    for (Post post : topicPosts) {
View Full Code Here

Examples of securesocial.core.authenticator.Authenticator.user()

                new F.Function<Option<Authenticator>, F.Promise<Result>>() {
                    @Override
                    public F.Promise<Result> apply(Option<Authenticator> authenticatorOption) throws Throwable {
                        if (authenticatorOption.isDefined() && authenticatorOption.get().isValid()) {
                            final Authenticator authenticator = authenticatorOption.get();
                            Object user = authenticator.user();
                            if (authorizationInstance.isAuthorized(user, configuration.params())) {
                                return F.Promise.wrap(authenticator.touch()).flatMap(new F.Function<Authenticator, F.Promise<Result>>() {
                                    @Override
                                    public F.Promise<Result> apply(Authenticator touched) throws Throwable {
                                        ctx.args.put(SecureSocial.USER_KEY, touched.user());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.