Package com.opensymphony.xwork

Examples of com.opensymphony.xwork.ActionContext


    }

    private boolean operationAllowed( String permission, String repoid )
    {
        ActionContext context = ActionContext.getContext();
        SecuritySession securitySession = (SecuritySession) context.get( SecuritySession.ROLE );

        AuthorizationResult authzResult;
        try
        {
            authzResult = securitySystem.authorize( securitySession, permission, repoid );
View Full Code Here


        dbg.append( "\n    .namespace  =" ).append( proxy.getNamespace() );
        dbg.append( "\n    .actionName =" ).append( proxy.getActionName() );
        dbg.append( "\n    .method     =" ).append( proxy.getMethod() );
        dbg.append( "\n    .execute result =" ).append( proxy.getExecuteResult() );

        ActionContext context = invocation.getInvocationContext();
        dbg.append( "\n InvocationContext=" ).append( context.getClass().getName() );
        appendMap( "\n    .session=", dbg, context.getSession() );
        appendMap( "\n    .parameters=", dbg, context.getParameters() );

        String result = invocation.invoke();

        dbg.append( "\n ... result=\"" ).append( result ).append( "\"" );
        dbg.append( ", code=" ).append( invocation.getResultCode() );
View Full Code Here

public class ArchivaXworkUser
    implements ArchivaUser
{
    private Map<String, Object> getContextSession()
    {
        ActionContext context = ActionContext.getContext();
        Map<String, Object> sessionMap = context.getSession();
        if ( sessionMap == null )
        {
            sessionMap = new HashMap<String, Object>();
        }
View Full Code Here

    }

    private boolean isAuthorized( ProjectSummary project )
    {
        // do the authz bit
        ActionContext context = ActionContext.getContext();

        PlexusContainer container = (PlexusContainer) context.getApplication().get( PlexusLifecycleListener.KEY );
        SecuritySession securitySession =
            (SecuritySession) context.getSession().get( SecuritySystemConstants.SECURITY_SESSION_KEY );

        try
        {
            SecuritySystem securitySystem = (SecuritySystem) container.lookup( SecuritySystem.ROLE );
View Full Code Here

    }

    private boolean isAuthorized( ProjectSummary project )
    {
        // do the authz bit
        ActionContext context = ActionContext.getContext();

        PlexusContainer container = (PlexusContainer) context.getApplication().get( PlexusLifecycleListener.KEY );
        SecuritySession securitySession =
            (SecuritySession) context.getSession().get( SecuritySystemConstants.SECURITY_SESSION_KEY );

        try
        {
            SecuritySystem securitySystem = (SecuritySystem) container.lookup( SecuritySystem.ROLE );
View Full Code Here

TOP

Related Classes of com.opensymphony.xwork.ActionContext

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.