Examples of OAuthConsumerRequest


Examples of org.eurekastreams.server.persistence.mappers.requests.opensocial.OAuthConsumerRequest

        SetConsumerTokenInfoRequest request = (SetConsumerTokenInfoRequest) inActionContext.getParams();

        SecurityToken securityToken = request.getSecurityToken();
        TokenInfo tokenInfo = request.getTokenInfo();

        OAuthConsumer consumer = consumerMapper.execute(new OAuthConsumerRequest(request.getServiceName(),
                securityToken.getAppUrl()));
        if (consumer != null)
        {
            OAuthToken token = new OAuthToken(consumer, securityToken.getViewerId(), securityToken.getOwnerId(),
                    tokenInfo.getAccessToken(), tokenInfo.getTokenSecret());
View Full Code Here

Examples of org.eurekastreams.server.persistence.mappers.requests.opensocial.OAuthConsumerRequest

     */
    @Override
    public Serializable execute(final PrincipalActionContext inActionContext) throws ExecutionException
    {
        GetConsumerInfoRequest request = (GetConsumerInfoRequest) inActionContext.getParams();
        OAuthConsumer oauthConsumer = consumerMapper.execute(new OAuthConsumerRequest(request.getServiceName(), request
                .getSecurityToken().getAppUrl()));
        if (oauthConsumer == null)
        {
            throw new ExecutionException("OAuth Consumer was not found");
        }
View Full Code Here

Examples of org.eurekastreams.server.persistence.mappers.requests.opensocial.OAuthConsumerRequest

    public Serializable execute(final PrincipalActionContext inActionContext) throws ExecutionException
    {
        RemoveConsumerTokenRequest request = (RemoveConsumerTokenRequest) inActionContext.getParams();

        SecurityToken securityToken = request.getSecurityToken();
        OAuthConsumer consumer = consumerMapper.execute(new OAuthConsumerRequest(request.getServiceName(),
                securityToken.getAppUrl()));
        if (consumer != null)
        {
            tokenDeleteMapper.execute(new OAuthTokenRequest(consumer, securityToken.getViewerId(), securityToken
                    .getOwnerId()));
View Full Code Here

Examples of org.eurekastreams.server.persistence.mappers.requests.opensocial.OAuthConsumerRequest

     */
    @Test
    public void testFindConsumerByServiceNameAndGadgetUrl()
    {
        OAuthConsumer consumer = sut
                .execute(new OAuthConsumerRequest("provider1", "http://www.example.com/gadget2.xml"));

        assertTrue(
                "No Consumer found for serviceName of 'provider1' and gadget url of http://www.example.com/gadget1.xml",
                consumer != null);

View Full Code Here

Examples of org.eurekastreams.server.persistence.mappers.requests.opensocial.OAuthConsumerRequest

     * Test not finding a consumer.
     */
    @Test
    public void testNullFindConsumerByServiceNameAndGadgetUrl()
    {
        OAuthConsumer consumer = sut.execute(new OAuthConsumerRequest("providerX",
                "http://localhost:4040/some/path/gadgetX.xml"));

        assertTrue("Consumer found for serviceName of 'providerX' and gadget url of /some/path/gadgetX.xml",
                consumer == null);

View Full Code Here

Examples of org.eurekastreams.server.persistence.mappers.requests.opensocial.OAuthConsumerRequest

    public Serializable execute(final PrincipalActionContext inActionContext) throws ExecutionException
    {
        GetConsumerTokenInfoRequest request = (GetConsumerTokenInfoRequest) inActionContext.getParams();
        SecurityToken securityToken = request.getSecurityToken();

        OAuthConsumer consumer = consumerMapper.execute(new OAuthConsumerRequest(request.getServiceName(),
                securityToken.getAppUrl()));
        if (consumer == null)
        {
            throw new ExecutionException("OAuth Consumer was not found");
        }
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.