|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wewebu.ow.server.ui.OwEventTarget
com.wewebu.ow.server.ui.OwView
com.wewebu.ow.server.dmsdialogs.views.OwPrivilegesView
public class OwPrivilegesView
Displays and edits the privileges of a given OwPermissionCollection
.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
Field Summary | |
---|---|
static String |
PRIVILEGES_PARAM
|
Fields inherited from class com.wewebu.ow.server.ui.OwView |
---|
CURRENT_MODULE_KEY, FORMULAR_PLACEHOLDER_END_DELIMITER, FORMULAR_PLACEHOLDER_START_DELIMITER, m_externalFormEventTarget |
Fields inherited from interface com.wewebu.ow.server.ui.OwBaseView |
---|
EMPTY_STRING |
Constructor Summary | |
---|---|
OwPrivilegesView(OwUIGenericAccessRightsModul accessRightsView_p,
boolean forceLiveUpdate_p)
|
|
OwPrivilegesView(OwUIGenericAccessRightsModul accessRightsView_p,
Map<String,String> privilegeDisplayNames_p,
boolean forceLiveUpdate_p)
|
Method Summary | |
---|---|
protected OwAddPrivilegeDialog |
createAddPrivilegeDialog()
(overridable) Create a dialog which provide the possibility to create new privilege entry. |
protected OwPrivilegesDocument |
createPrivilegesDocument(OwPermissionsDocument permissionsDocument_p,
Map<String,String> privilegeDisplayNames_p)
(overridable) Factory method to create the document which will be used by the current instance. |
OwPrivilegesDocument |
getDocument()
gets the reference to the document |
String |
getMessage()
Get the message which should be displayed. |
protected void |
init()
init the target after the context is set. |
boolean |
isReadOnly()
|
boolean |
liveUpdate()
Return if live update is enabled or not. |
void |
onDialogClose(OwDialog dialogView_p)
called if the Dialog that was opened by this view closes |
void |
onOpenAddDialog(javax.servlet.http.HttpServletRequest request_p)
Handler to open add privilege dialog, called from JSP. |
void |
onRemovePrivileges(javax.servlet.http.HttpServletRequest request_p)
|
protected void |
onRender(Writer w_p)
called when the view should create its HTML content to be displayed |
void |
onSave(javax.servlet.http.HttpServletRequest request_p,
Object reason_p)
OnSave OwUIGenericAccessRightsModul delegate for non live updating privileges views. |
void |
setMessage(String message_p)
Set the message to be displayed in the message region. |
void |
setReadOnly(boolean readOnly_p)
|
Methods inherited from class com.wewebu.ow.server.ui.OwView |
---|
activate, addView, detach, getBreadcrumbPart, getExternalFormEventTarget, getFormName, getFormTarget, getIcon, getIterator, getMaximizeView, getParent, getRenderedNamedRegion, getRenderedRegion, getTitle, getViewList, isFormTargetExternal, isNamedRegion, isRegion, isShowMaximized, isShowMinimized, isShowNormal, onActivate, onUpdate, render, renderHTMLFormular, renderNamedRegion, renderRegion, serverSideDesignInclude, serverSideInclude, setDocument, setExternalFormTarget, setMaximizeView, setParent, showMaximized, showMinimized, showNormal, usesFormWithAttributes |
Methods inherited from class com.wewebu.ow.server.ui.OwEventTarget |
---|
attach, disableRequestListener, enableRequestListener, getAjaxEventURL, getContext, getEventURL, getFormEventFunction, getFormEventURL, getID, onExternalRequest, onFormEvent, onRequest, updateExternalFormTarget |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.wewebu.ow.server.ui.OwUpdateTarget |
---|
onUpdate |
Field Detail |
---|
public static final String PRIVILEGES_PARAM
Constructor Detail |
---|
public OwPrivilegesView(OwUIGenericAccessRightsModul accessRightsView_p, boolean forceLiveUpdate_p)
public OwPrivilegesView(OwUIGenericAccessRightsModul accessRightsView_p, Map<String,String> privilegeDisplayNames_p, boolean forceLiveUpdate_p)
Method Detail |
---|
protected OwPrivilegesDocument createPrivilegesDocument(OwPermissionsDocument permissionsDocument_p, Map<String,String> privilegeDisplayNames_p)
permissionsDocument_p
- privilegeDisplayNames_p
-
protected void init() throws Exception
OwView
init
in class OwView
Exception
public OwPrivilegesDocument getDocument()
OwView
getDocument
in class OwView
public void onSave(javax.servlet.http.HttpServletRequest request_p, Object reason_p) throws OwException
OwUIGenericAccessRightsModul
delegate for non live updating privileges views.
request_p
- reason_p
-
OwException
public final void setReadOnly(boolean readOnly_p)
readOnly_p
- true if the privileges view should be read-only, false otherwise.public boolean isReadOnly()
public void setMessage(String message_p)
message_p
- - the message (can be null - nothing is displayed).public String getMessage()
protected void onRender(Writer w_p) throws Exception
OwView
onRender
in class OwView
w_p
- Writer object to write HTML to
Exception
public void onRemovePrivileges(javax.servlet.http.HttpServletRequest request_p) throws Exception
Exception
public void onOpenAddDialog(javax.servlet.http.HttpServletRequest request_p) throws OwException
request_p
- a HttpServletRequest object
OwException
- if could not create or open dialogprotected OwAddPrivilegeDialog createAddPrivilegeDialog() throws OwException
OwException
public void onDialogClose(OwDialog dialogView_p) throws Exception
OwDialog.OwDialogListener
onDialogClose
in interface OwDialog.OwDialogListener
dialogView_p
- the Dialog that closed.
Exception
public boolean liveUpdate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |