Examples of CollectionOptionsFactory


Examples of org.apache.shindig.social.opensocial.spi.CollectionOptionsFactory

         "'gadgets.features':{opensocial:" +
           "{supportedFields: {mediaItem: ['id', 'language', 'title']}}" +
         "}}}");

    containerConfig = new JsonContainerConfig(config, Expressions.forTesting());
    handler = new MediaItemHandler(mediaService, containerConfig, new CollectionOptionsFactory());

    registry = new DefaultHandlerRegistry(null, converter,
        new HandlerExecutionListener.NoOpHandler());
    registry.addHandlers(ImmutableSet.<Object>of(handler));
    request = new SocialRequestItem(
View Full Code Here

Examples of org.apache.shindig.social.opensocial.spi.CollectionOptionsFactory

         "'gadgets.features':{opensocial:" +
           "{supportedFields: {activity: ['id', 'title']}}" +
         "}}}");

    containerConfig = new JsonContainerConfig(config, Expressions.forTesting());
    handler = new ActivityHandler(activityService, containerConfig, new CollectionOptionsFactory());
    registry = new DefaultHandlerRegistry(null, converter,
        new HandlerExecutionListener.NoOpHandler());
    registry.addHandlers(ImmutableSet.<Object>of(handler));
  }
View Full Code Here

Examples of org.apache.shindig.social.opensocial.spi.CollectionOptionsFactory

         "'gadgets.features':{opensocial:" +
           "{supportedFields: {person: ['id', {name: 'familyName'}]}}" +
         "}}}");

    containerConfig = new JsonContainerConfig(config, Expressions.forTesting());
    handler = new PersonHandler(personService, containerConfig, new CollectionOptionsFactory());
    registry = new DefaultHandlerRegistry(null, converter,
        new HandlerExecutionListener.NoOpHandler());
    registry.addHandlers(ImmutableSet.<Object>of(handler));
  }
View Full Code Here

Examples of org.apache.shindig.social.opensocial.spi.CollectionOptionsFactory

         "'gadgets.features':{opensocial:" +
           "{supportedFields: {album: ['id', 'title', 'location']}}" +
         "}}}");

    containerConfig = new JsonContainerConfig(config, Expressions.forTesting());
    handler = new AlbumHandler(albumService, containerConfig, new CollectionOptionsFactory());

    registry = new DefaultHandlerRegistry(null, converter,
        new HandlerExecutionListener.NoOpHandler());
    registry.addHandlers(ImmutableSet.<Object>of(handler));
  }
View Full Code Here

Examples of org.apache.shindig.social.opensocial.spi.CollectionOptionsFactory

         "'gadgets.features':{opensocial:" +
           "{supportedFields: {activityEntry: ['id', 'title']}}" +
         "}}}");

    containerConfig = new JsonContainerConfig(config, Expressions.forTesting());
    handler = new ActivityStreamHandler(service, containerConfig, new CollectionOptionsFactory());
    registry = new DefaultHandlerRegistry(null, converter,
        new HandlerExecutionListener.NoOpHandler());
    registry.addHandlers(ImmutableSet.<Object>of(handler));
  }
View Full Code Here

Examples of org.apache.shindig.social.opensocial.spi.CollectionOptionsFactory

    messageService = EasyMock.createMock(MessageService.class);
    converter = EasyMock.createMock(BeanJsonConverter.class);
    sender = new UserId(UserId.Type.userId, "message.sender");
    recipients = ImmutableList.of("second.recipient", "first.recipient");

    handler = new MessageHandler(messageService, new CollectionOptionsFactory());
    registry = new DefaultHandlerRegistry(null, converter,
        new HandlerExecutionListener.NoOpHandler());
    registry.addHandlers(ImmutableSet.<Object>of(handler));
  }
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.