org.clazzes.util.http.sec
Interface CheckLoginService


public interface CheckLoginService

A base interface for remote services to check for logged in persons.


Method Summary
 String checkLogin()
           
 boolean checkPermission(String contextUrl)
          Check the permission of the logged in user on the given context URL.
 String getLoginUrl()
           
 void logout()
          Remove all login properties from the HTTP session and log the user out.
 

Method Detail

checkLogin

String checkLogin()
                  throws LoginRequiredException
Returns:
The logged in user.
Throws:
LoginRequiredException - if no user is logged in.

getLoginUrl

String getLoginUrl()
Returns:
The URL of the login servlet inside the login iframe.

checkPermission

boolean checkPermission(String contextUrl)
Check the permission of the logged in user on the given context URL.

Parameters:
contextUrl - The context Url.
Returns:
Whether the user is allowed to operate on the given context URL.

logout

void logout()
Remove all login properties from the HTTP session and log the user out.



Copyright © 2012. All Rights Reserved.