Package net.sf.jportlet.portlet

Examples of net.sf.jportlet.portlet.User


        Portlet.Mode mode = request.getMode(  );
        id.append( '/' ).append( mode ).append( '/' ).append( request.getWindow(  ).getState(  ) );

        if ( !cache.isShared(  ) )
        {
            User usr = request.getUser(  );
            if ( usr == null )
            {
                id.append( '/' ).append( ANONYMOUS_ID );
            }
            else
            {
                id.append( '/' ).append( usr.getId(  ) );
            }
        }

        return id.toString(  );
    }
View Full Code Here


        if ( descr == null )
        {
            return Interceptor.CONTINUE;
        }

        User usr = request.getUser(  );

        /* Anonymous user */
        if ( usr == null )
        {
            return descr.isAllowAnonymous(  )
View Full Code Here

        id.append( '/' ).append( mode ).append( '/' ).append( request.getWindow(  ).getState(  ) );

        if ( !cache.isShared(  ) )
        {
            User usr = request.getUser(  );
            if ( usr == null )
            {
                id.append( '/' ).append( ANONYMOUS_ID );
            }
            else
            {
                id.append( '/' ).append( usr.getId(  ) );
            }
        }

        return id.toString(  );
    }
View Full Code Here

            }

            UserService usrv = ( UserService ) _serviceContext.getPortletService( UserService.NAME );
            try
            {
                User usr = usrv.getUser( userId );
                if ( usr.matchPassword( password ) )
                {
                    /* Start the session */
                    ( ( PortletRequestImpl ) request ).startSession( usr );

                    /* Notify all the portlets */
 
View Full Code Here

     * @see net.sf.jportlet.portlet.PortletRequest#getUser()
     */
    public User getUser(  )
    {
        /* Load the user chached in the HttpServletRequest */
        User usr = ( User ) _httpRequest.getAttribute( USER_KEY );

        if ( usr != null )
        {
            return usr;
        }
View Full Code Here

    }

    public void userChanged( User user )
    {
        Locale locale = user.getLocale(  );
        User   old = ( User ) _httpRequest.getAttribute( USER_KEY );
        if ( ( old != null ) && ( old.getId(  ).equals( user.getId(  ) ) ) )
        {
            _httpRequest.setAttribute( USER_KEY, user );

            if ( locale != null )
            {
View Full Code Here

    {
        String id = request.getParameter( "id" ).trim(  );
        String title = request.getParameter( "title" ).trim(  );
        String description = request.getParameter( "description" ).trim(  );
        String url = request.getParameter( "url" ).trim(  );
        User   user = request.getUser(  );

        if ( !validate( title, url, description, event ) )
        {
            BookmarkImpl bookmark = new BookmarkImpl( id, title, url, description, user );
            request.setAttribute( "bookmark", bookmark );
View Full Code Here

                              PortletRequest request )
        throws PortletException
    {
        if ( request.getAttribute( "user" ) == null )
        {
            User user = request.getUser(  );
            if ( user == null )
            {
                doSignin( event, request );
                return;
            }
View Full Code Here

TOP

Related Classes of net.sf.jportlet.portlet.User

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.