com.khubla.pragmatach.plugin.adminapp
Class BaseAdminController

java.lang.Object
  extended by com.khubla.pragmatach.framework.controller.impl.AbstractController
      extended by com.khubla.pragmatach.framework.controller.impl.template.AbstractTemplateEngineController
          extended by com.khubla.pragmatach.framework.controller.impl.FormPostBeanBoundController
              extended by com.khubla.pragmatach.plugin.freemarker.FreemarkerController
                  extended by com.khubla.pragmatach.plugin.adminapp.BaseAdminController
All Implemented Interfaces:
BeanBoundController, PragmatachController
Direct Known Subclasses:
AdminLoginController, SecuredAdminController

@Controller(name="pragmatachBaseAdminController")
public class BaseAdminController
extends FreemarkerController

Author:
tome

Field Summary
static String PASSWORD
           
static String USERID
          the cookie names
 
Constructor Summary
BaseAdminController()
           
 
Method Summary
 boolean isLoggedIn()
          check if user is logged in
 Response logout()
          log out
 
Methods inherited from class com.khubla.pragmatach.plugin.freemarker.FreemarkerController
render, renderTemplate
 
Methods inherited from class com.khubla.pragmatach.framework.controller.impl.FormPostBeanBoundController
getPostFieldValues, populateController
 
Methods inherited from class com.khubla.pragmatach.framework.controller.impl.template.AbstractTemplateEngineController
getTemplate, getTemplateContext, getTemplateName, url_for
 
Methods inherited from class com.khubla.pragmatach.framework.controller.impl.AbstractController
bad, buildWildcardResourceURI, forward, getApplicationURL, getCacheHeaders, getConfigurationParameter, getControllerName, getControllerName, getPragmatachRoute, getRequest, getResource, getSessionScopedController, ok, redirect, setPragmatachRoute, setRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.khubla.pragmatach.framework.controller.PragmatachController
setPragmatachRoute, setRequest
 

Field Detail

USERID

public static final String USERID
the cookie names

See Also:
Constant Field Values

PASSWORD

public static final String PASSWORD
See Also:
Constant Field Values
Constructor Detail

BaseAdminController

public BaseAdminController()
Method Detail

isLoggedIn

public boolean isLoggedIn()
check if user is logged in


logout

@Route(uri="pragmatach/admin/logout")
public Response logout()
                throws PragmatachException
log out

Throws:
PragmatachException


Copyright © 2014 khubla.com. All rights reserved.