01: /*
02: * JFolder, Copyright 2001-2006 Gary Steinmetz
03: *
04: * Distributable under LGPL license.
05: * See terms of license at gnu.org.
06: */
07:
08: package org.jfolder.security.lifecycle;
09:
10: //base classes
11: import javax.servlet.http.HttpServletRequest;
12:
13: //project specific classes
14: import org.jfolder.common.utils.web.ParameterSet;
15: import org.jfolder.common.web.template.ConsoleTemplateContext;
16: import org.jfolder.common.web.template.SubmitActionContext;
17: import org.jfolder.security.model.GroupHolder;
18: import org.jfolder.security.model.UserHolder;
19: import org.jfolder.security.model.UserHolderContext;
20:
21: //other classes
22:
23: public interface SecurityLifecycle {
24:
25: public String getSecurityType();
26:
27: public UserHolder getUser(UserHolderContext inContext);
28:
29: public boolean isUserInGroup(UserHolder inUser, GroupHolder inGroup);
30:
31: public GroupHolder getSystemGroup(String inGroup);
32:
33: public ConsoleTemplateContext getFailedLoginPage(
34: HttpServletRequest inRequest, ParameterSet inPs,
35: SubmitActionContext inSac, UserHolder inUser);
36: }
|