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

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


    {
        context.checking(new Expectations()
        {
            {
                oneOf(actionContext).getParams();
                will(returnValue(new RemoveConsumerTokenRequest(securityToken, consumerInfo, "serviceName", // \n
                        "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 RemoveConsumerTokenRequest(securityToken, consumerInfo, "serviceName", // \n
                        "tokenName")));

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

     * {@inheritDoc}. Remove the OAuth Token based on the supplied token.
     */
    @Override
    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

    public void removeToken(final SecurityToken securityToken, final ConsumerInfo consumerInfo,
            final String serviceName, final String tokenName) throws GadgetException
    {
        try
        {
            RemoveConsumerTokenRequest request = new RemoveConsumerTokenRequest(securityToken, consumerInfo,
                    serviceName, tokenName);
            ServiceActionContext currentContext = new ServiceActionContext(request, null);
            actionController.execute(currentContext, removeConsumerTokenAction);
        }
        catch (ExecutionException ex)
View Full Code Here

TOP

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

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.