public class OwPrivilegesView extends OwView implements OwDialog.OwDialogListener
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
Modifier and Type | Field and Description |
---|---|
static String |
PRIVILEGES_PARAM |
CURRENT_MODULE_KEY, FORMULAR_PLACEHOLDER_END_DELIMITER, FORMULAR_PLACEHOLDER_START_DELIMITER, m_externalFormEventTarget
EMPTY_STRING
Constructor and Description |
---|
OwPrivilegesView(OwUIGenericAccessRightsModul accessRightsView_p,
boolean forceLiveUpdate_p) |
OwPrivilegesView(OwUIGenericAccessRightsModul accessRightsView_p,
Map<String,String> privilegeDisplayNames_p,
boolean forceLiveUpdate_p) |
Modifier and Type | Method and Description |
---|---|
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) |
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
attach, disableRequestListener, enableRequestListener, getAjaxEventURL, getContext, getEventURL, getFormEventFunction, getFormEventURL, getID, onExternalRequest, onFormEvent, onRequest, updateExternalFormTarget
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onUpdate
public static final String PRIVILEGES_PARAM
public OwPrivilegesView(OwUIGenericAccessRightsModul accessRightsView_p, boolean forceLiveUpdate_p)
public OwPrivilegesView(OwUIGenericAccessRightsModul accessRightsView_p, Map<String,String> privilegeDisplayNames_p, boolean forceLiveUpdate_p)
protected OwPrivilegesDocument createPrivilegesDocument(OwPermissionsDocument permissionsDocument_p, Map<String,String> privilegeDisplayNames_p)
permissionsDocument_p
- privilegeDisplayNames_p
- protected void init() throws Exception
OwView
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
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 objectOwException
- 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()
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.