Package org.eurekastreams.server.action.request.opensocial

Examples of org.eurekastreams.server.action.request.opensocial.GetConsumerTokenInfoRequest


    {
        context.checking(new Expectations()
        {
            {
                oneOf(actionContext).getParams();
                will(returnValue(new GetConsumerTokenInfoRequest(securityToken, consumerInfo, "serviceName",
                        "tokenName")));

                oneOf(securityToken).getAppUrl();
                will(returnValue("http://localhost:4040/some/path"));
View Full Code Here


    {
        context.checking(new Expectations()
        {
            {
                oneOf(actionContext).getParams();
                will(returnValue(new GetConsumerTokenInfoRequest(securityToken, consumerInfo, "serviceName",
                        "tokenName")));

                OAuthConsumer consumer = new OAuthConsumer("", "", "", "", "");
                OAuthToken token = new OAuthToken(consumer, "", "", "", "");
                token.setTokenExpireMillis(0L);
View Full Code Here

    {
        context.checking(new Expectations()
        {
            {
                oneOf(actionContext).getParams();
                will(returnValue(new GetConsumerTokenInfoRequest(securityToken, consumerInfo, "serviceName",
                        "tokenName")));

                oneOf(securityToken).getAppUrl();
                will(returnValue("http://localhost:4040/some/path"));
View Full Code Here

            final String serviceName, final String tokenName) throws GadgetException
    {
        TokenInfo tokenInfo = null;
        try
        {
            GetConsumerTokenInfoRequest request = new GetConsumerTokenInfoRequest(securityToken, consumerInfo,
                    serviceName, tokenName);
            ServiceActionContext currentContext = new ServiceActionContext(request, null);
            TokenInfoResponse response = (TokenInfoResponse) actionController.execute(currentContext,
                    getConsumerTokenInfoAction);
            if (response != null)
View Full Code Here

     * {@inheritDoc}. Get the OAuth consumer token info.
     */
    @Override
    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

Related Classes of org.eurekastreams.server.action.request.opensocial.GetConsumerTokenInfoRequest

Copyright © 2018 www.massapicom. 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.