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_externalFormEventTargetEMPTY_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, usesFormWithAttributesattach, disableRequestListener, enableRequestListener, getAjaxEventURL, getContext, getEventURL, getFormEventFunction, getFormEventURL, getID, onExternalRequest, onFormEvent, onRequest, updateExternalFormTargetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonUpdatepublic 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
OwViewpublic OwPrivilegesDocument getDocument()
OwViewgetDocument in class OwViewpublic 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 - OwExceptionpublic 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
OwViewpublic void onRemovePrivileges(javax.servlet.http.HttpServletRequest request_p)
throws Exception
Exceptionpublic 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
OwExceptionpublic void onDialogClose(OwDialog dialogView_p) throws Exception
OwDialog.OwDialogListeneronDialogClose in interface OwDialog.OwDialogListenerdialogView_p - the Dialog that closed.Exceptionpublic boolean liveUpdate()
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.