Java Doc for CmsJspLoginBean.java in  » Content-Management-System » opencms » org » opencms » jsp » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Content Management System » opencms » org.opencms.jsp 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.opencms.jsp.CmsJspBean
      org.opencms.jsp.CmsJspActionElement
         org.opencms.jsp.CmsJspLoginBean

All known Subclasses:   org.opencms.workplace.CmsLogin,
CmsJspLoginBean
public class CmsJspLoginBean extends CmsJspActionElement (Code)
Provides convenient wrappers useful to create user login pages.

Initialize this bean at the beginning of your JSP like this:

 <jsp:useBean id="cmslogin" class="org.opencms.jsp.CmsJspLoginBean">
 <% cmslogin.init(pageContext, request, response); %>
 </jsp:useBean>
 


author:
   Alexander Kandzior
version:
   $Revision: 1.24 $
since:
   6.0.0




Constructor Summary
public  CmsJspLoginBean()
    
public  CmsJspLoginBean(PageContext context, HttpServletRequest req, HttpServletResponse res)
    

Method Summary
public  StringgetFormLink()
    
public  CmsExceptiongetLoginException()
     Returns the exception that was thrown after login, or null if no Exception was thrown (i.e.
public  CmsUsergetUser()
    
public  StringgetUserName()
    
public  booleanisLoggedIn()
     Returns true if the current user is not the guest user, i.e.
public  booleanisLoginSuccess()
    
public  voidlogin(String userName, String password)
    
public  voidlogin(String userName, String password, String projectName)
    
public  voidlogin(String userName, String password, String projectName, String redirectUri)
    
public  voidlogout()
     Logs a user out, i.e.


Constructor Detail
CmsJspLoginBean
public CmsJspLoginBean()(Code)
Empty constructor, required for every JavaBean.




CmsJspLoginBean
public CmsJspLoginBean(PageContext context, HttpServletRequest req, HttpServletResponse res)(Code)
Constructor, with parameters.


Parameters:
  context - the JSP page context object
Parameters:
  req - the JSP request
Parameters:
  res - the JSP response





Method Detail
getFormLink
public String getFormLink()(Code)
Returns the link to the form that contains the login element.

the link to the form that contains the login element




getLoginException
public CmsException getLoginException()(Code)
Returns the exception that was thrown after login, or null if no Exception was thrown (i.e. login was successful or not attempted).

the exception thrown after login




getUser
public CmsUser getUser()(Code)
Returns the currently logged in user.

the currently logged in user




getUserName
public String getUserName()(Code)
Returns the user name of the currently logged in user.

the user name of the currently logged in user




isLoggedIn
public boolean isLoggedIn()(Code)
Returns true if the current user is not the guest user, i.e. if he already has logged in with some other user account.

true if the current user is already logged in




isLoginSuccess
public boolean isLoginSuccess()(Code)
Indicates if a login was successful or not.

true if the login was successful




login
public void login(String userName, String password)(Code)
Logs a system user in to OpenCms.


Parameters:
  userName - the users name
Parameters:
  password - the password




login
public void login(String userName, String password, String projectName)(Code)
Logs a system user into OpenCms.

Note that if a login project name is provided, this project must exist, otherwise the login is regarded as a failure even if the user data was correct.


Parameters:
  userName - the users name
Parameters:
  password - the password
Parameters:
  projectName - the project to switch to after login (if null project is not switched)




login
public void login(String userName, String password, String projectName, String redirectUri) throws IOException(Code)
Logs a system user in to OpenCms.

Note that if a login project name is provided, this project must exist, otherwise the login is regarded as a failure even if the user data was correct.


Parameters:
  userName - the users name
Parameters:
  password - the password
Parameters:
  projectName - the project to switch to after login (if null project is not switched)
Parameters:
  redirectUri - the URI to redirect to after login (if null the current URI is used)
throws:
  IOException - in case redirect after login was not successful




logout
public void logout() throws IOException(Code)
Logs a user out, i.e. destroys the current users session, after that the current page will be redirected to itself one time to ensure that the users session is truly destroyed.


throws:
  IOException - if redirect after logout fails




Fields inherited from org.opencms.jsp.CmsJspActionElement
final public static CmsMessageContainer NOT_INITIALIZED(Code)(Java Doc)

Methods inherited from org.opencms.jsp.CmsJspActionElement
public void editable(boolean isEditable) throws JspException(Code)(Java Doc)
public void editable(boolean isEditable, String filename) throws JspException(Code)(Java Doc)
public void editable(String provider, String mode, String filename) throws JspException(Code)(Java Doc)
public void editableManualClose(boolean needsClose) throws JspException(Code)(Java Doc)
public boolean editableManualOpen() throws JspException(Code)(Java Doc)
public String getContent(String target)(Code)(Java Doc)
public String getContent(String target, String element, Locale locale)(Code)(Java Doc)
public CmsMessages getMessages(String bundleName, Locale locale)(Code)(Java Doc)
public CmsMessages getMessages(String bundleName, String language)(Code)(Java Doc)
public CmsMessages getMessages(String bundleName, String language, String defaultLanguage)(Code)(Java Doc)
public CmsMessages getMessages(String bundleName, String language, String country, String variant, String defaultLanguage)(Code)(Java Doc)
public CmsJspNavBuilder getNavigation()(Code)(Java Doc)
public String img(String target, CmsImageScaler scaler, Map attributes)(Code)(Java Doc)
public String img(String target, CmsImageScaler scaler, Map attributes, boolean partialTag)(Code)(Java Doc)
public void include(String target) throws JspException(Code)(Java Doc)
public void include(String target, String element) throws JspException(Code)(Java Doc)
public void include(String target, String element, boolean editable) throws JspException(Code)(Java Doc)
public void include(String target, String element, boolean editable, Map parameterMap) throws JspException(Code)(Java Doc)
public void include(String target, String element, Map parameterMap) throws JspException(Code)(Java Doc)
public void includeSilent(String target, String element)(Code)(Java Doc)
public void includeSilent(String target, String element, boolean editable)(Code)(Java Doc)
public void includeSilent(String target, String element, boolean editable, Map parameterMap)(Code)(Java Doc)
public void includeSilent(String target, String element, Map parameterMap)(Code)(Java Doc)
public String info(String property)(Code)(Java Doc)
public String label(String label)(Code)(Java Doc)
public String link(String target)(Code)(Java Doc)
public Map properties()(Code)(Java Doc)
public Map properties(String file)(Code)(Java Doc)
public String property(String name)(Code)(Java Doc)
public String property(String name, String file)(Code)(Java Doc)
public String property(String name, String file, String defaultValue)(Code)(Java Doc)
public String property(String name, String file, String defaultValue, boolean escapeHtml)(Code)(Java Doc)
public boolean template(String element)(Code)(Java Doc)
public boolean template(String elementlist, boolean checkall)(Code)(Java Doc)
public boolean template(String element, String elementlist, boolean checkall)(Code)(Java Doc)
public String toAbsolute(String target)(Code)(Java Doc)
public String user(String property)(Code)(Java Doc)

Methods inherited from org.opencms.jsp.CmsJspBean
public CmsObject getCmsObject()(Code)(Java Doc)
protected CmsFlexController getController()(Code)(Java Doc)
public PageContext getJspContext()(Code)(Java Doc)
protected String getMessage(CmsMessageContainer container)(Code)(Java Doc)
public HttpServletRequest getRequest()(Code)(Java Doc)
public CmsRequestContext getRequestContext()(Code)(Java Doc)
public HttpServletResponse getResponse()(Code)(Java Doc)
protected void handleException(Throwable t)(Code)(Java Doc)
public void init(PageContext context, HttpServletRequest req, HttpServletResponse res)(Code)(Java Doc)
protected boolean isNotInitialized()(Code)(Java Doc)
public boolean isSupressingExceptions()(Code)(Java Doc)
public void setContentType(String type)(Code)(Java Doc)
public void setStatus(int status)(Code)(Java Doc)
public void setSupressingExceptions(boolean value)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.