|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.portlet.JBossPortlet
org.jboss.portal.core.ui.portlet.user.UserPortlet
public class UserPortlet
This portlet aims at managing users
Field Summary | |
---|---|
static org.jboss.logging.Logger |
log
The class logger. |
static java.lang.String |
OP_ACTIVATEUSER
Activate the user via email link |
static java.lang.String |
OP_DELETEUSER
Deletes the user |
static java.lang.String |
OP_SHOWADDROLESTOUSER
Render operation to show the screen to assign roles to a user. |
static java.lang.String |
OP_SHOWLISTUSERS
Render operation to show the list of users. |
static java.lang.String |
OP_SHOWLOGIN
Render operation to show the login screen. |
static java.lang.String |
OP_SHOWMENU
Render operation to show the user menu screen. |
static java.lang.String |
OP_SHOWPROFILE
Render operation to show the user profile to edit. |
static java.lang.String |
OP_SHOWREGISTER
Render operation to show the register screen. |
static java.lang.String |
OP_SHOWREGISTER_TY
Render operation to show the register thankyou screen. |
static java.lang.String |
OP_USERLOGOUT
Logout the user. |
static java.lang.String |
OP_VIEWPROFILE
Render operation to show a user profile. |
static short |
UNDEFINED_TIMEZONE
|
Constructor Summary | |
---|---|
UserPortlet()
|
Method Summary | |
---|---|
void |
addRolesToUser(JBossActionRequest request,
JBossActionResponse response)
DOCUMENT_ME |
void |
deleteUser(JBossActionRequest request,
JBossActionResponse response)
|
void |
destroy()
Called by the portlet container to indicate to a portlet that the portlet is being taken out of service. |
protected void |
doView(JBossRenderRequest req,
JBossRenderResponse resp)
doView method |
java.lang.String |
getDefaultOperation()
Return the string main, it can be overriden to return another value by subclasses. |
void |
init()
init method of the portlet, Setting up the diffrent modules used. |
void |
showListUsers(JBossActionRequest actionRequest,
JBossActionResponse actionResponse)
|
void |
storeProfile(JBossActionRequest req,
JBossActionResponse resp)
DOCUMENT_ME |
void |
userLogout(JBossActionRequest req,
JBossActionResponse resp)
Performs a log out. |
void |
userRegister(JBossActionRequest req,
JBossActionResponse resp)
Action when a user register |
Methods inherited from class org.jboss.portlet.JBossPortlet |
---|
doAdmin, doDispatch, doEdit, doHelp, getInitParameter, getInitParameterNames, getOperationName, getPortletConfig, getPortletContext, getPortletName, getResourceBundle, getTitle, init, processAction, processAction, processAdmin, processDispatch, processEdit, processHelp, processView, render, render |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final org.jboss.logging.Logger log
public static final java.lang.String OP_SHOWLOGIN
public static final java.lang.String OP_SHOWREGISTER
public static final java.lang.String OP_SHOWREGISTER_TY
public static final java.lang.String OP_SHOWMENU
public static final java.lang.String OP_SHOWPROFILE
public static final java.lang.String OP_VIEWPROFILE
public static final java.lang.String OP_SHOWADDROLESTOUSER
public static final java.lang.String OP_SHOWLISTUSERS
public static final java.lang.String OP_USERLOGOUT
public static final java.lang.String OP_DELETEUSER
public static final java.lang.String OP_ACTIVATEUSER
public static final short UNDEFINED_TIMEZONE
Constructor Detail |
---|
public UserPortlet()
Method Detail |
---|
public void init() throws PortletException
init
in class JBossPortlet
PortletException
- If a module cannot be looked up.public void destroy()
Portlet
This method enables the portlet to do the following:
destroy
in interface Portlet
destroy
in class JBossPortlet
public java.lang.String getDefaultOperation()
JBossPortlet
getDefaultOperation
in class JBossPortlet
protected void doView(JBossRenderRequest req, JBossRenderResponse resp) throws PortletException, PortletSecurityException, java.io.IOException
doView
in class JBossPortlet
req
- Render requestresp
- render response
PortletException
- DOCUMENT_ME
PortletSecurityException
- DOCUMENT_ME
java.io.IOException
- DOCUMENT_MEpublic void showListUsers(JBossActionRequest actionRequest, JBossActionResponse actionResponse) throws java.io.IOException, WindowStateException
java.io.IOException
WindowStateException
public void userLogout(JBossActionRequest req, JBossActionResponse resp) throws java.io.IOException
java.io.IOException
public void userRegister(JBossActionRequest req, JBossActionResponse resp)
req
- JBoss action requestresp
- JBoss action responsepublic void storeProfile(JBossActionRequest req, JBossActionResponse resp) throws PortletException
req
- DOCUMENT_MEresp
- DOCUMENT_ME
PortletException
public void addRolesToUser(JBossActionRequest request, JBossActionResponse response)
request
- DOCUMENT_MEresponse
- DOCUMENT_MEpublic void deleteUser(JBossActionRequest request, JBossActionResponse response)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |