public class OwUIGenericAccessRightsModul extends OwUIAccessRightsModul
Generic access rights module. Displays two navigation tabs (policies and privileges) the permissions of a given object. In case that only one of the navigation tabs should be displayed, no tabs are rendered. Also uses the underlying objects and permissions methods to perform the editing of the given permissions.
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 int |
BOTH |
static int |
POLICIES_ONLY |
static int |
PRIVILEGES_ONLY |
CURRENT_MODULE_KEY, FORMULAR_PLACEHOLDER_END_DELIMITER, FORMULAR_PLACEHOLDER_START_DELIMITER, m_externalFormEventTargetEMPTY_STRING| Constructor and Description |
|---|
OwUIGenericAccessRightsModul(OwNetwork network_p,
OwObject object_p) |
OwUIGenericAccessRightsModul(OwNetwork network_p,
OwObject object_p,
int views_p)
Constructor
|
OwUIGenericAccessRightsModul(OwNetwork network_p,
OwObject object_p,
String policyViewTitle_p,
String privilegesViewTitle_p,
int views_p)
Constructor
|
OwUIGenericAccessRightsModul(OwNetwork network_p,
OwObject object_p,
String policyViewTitle_p,
String privilegesViewTitle_p,
Map<String,String> privilegeDisplayNames_p,
int views_p)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected OwSubNavigationView |
createNavigationView()
(overridable)
OwSubNavigationView factory method. |
protected OwPolicyLevelView |
createPolicyLevelView()
(overridable)
OwPolicyLevelView factory method. |
protected OwPrivilegesView |
createPrivilegesView()
(overridable)
OwPrivilegesView factory method. |
OwPermissionsDocument |
getDocument()
gets the reference to the document
|
OwMenu |
getMenu()
get the menu of the access rights module
|
protected OwObject |
getObject()
Deprecated.
since 4.0.0.0 use the view's
OwPermissionsDocument |
protected Map<String,String> |
getPrivilegeDisplayNames()
Return the display names which represents the
native privilege to display names.
|
protected void |
init()
init the target after the context is set.
|
void |
init(OwNetwork theNetwork_p)
set the base URL to the page
|
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 form action handler
|
void |
setACLViewMessage(String message_p)
Setter for
OwPrivilegesView message |
void |
setPolicyViewMessage(String message_p)
Setter for
OwPolicyLevelView message |
void |
setReadOnly(boolean readOnly_p)
make the access rights view read-only
|
protected String |
usesFormWithAttributes()
to get additional form attributes used for the form
override if your view needs a form.
|
getLiveUpdate, setLiveUpdategetNetworkactivate, 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, showNormalattach, disableRequestListener, enableRequestListener, getAjaxEventURL, getContext, getEventURL, getFormEventFunction, getFormEventURL, getID, onExternalRequest, onFormEvent, onRequest, updateExternalFormTargetpublic static final int POLICIES_ONLY
public static final int PRIVILEGES_ONLY
public static final int BOTH
public OwUIGenericAccessRightsModul(OwNetwork network_p, OwObject object_p) throws OwException
OwExceptionpublic OwUIGenericAccessRightsModul(OwNetwork network_p, OwObject object_p, int views_p) throws OwException
network_p - the OwNetwork of this moduleobject_p - the OwObject to display and/or edit the permissions for.views_p - one of POLICIES_ONLY, PRIVILEGES_ONLY or BOTHOwExceptionpublic OwUIGenericAccessRightsModul(OwNetwork network_p, OwObject object_p, String policyViewTitle_p, String privilegesViewTitle_p, int views_p) throws OwException
network_p - the OwNetwork of this moduleobject_p - the OwObject to display and/or edit the permissions for.policyViewTitle_p - title of the policy tabprivilegesViewTitle_p - tite of the privileges view tabviews_p - one of POLICIES_ONLY, PRIVILEGES_ONLY or BOTHOwExceptionpublic OwUIGenericAccessRightsModul(OwNetwork network_p, OwObject object_p, String policyViewTitle_p, String privilegesViewTitle_p, Map<String,String> privilegeDisplayNames_p, int views_p) throws OwException
network_p - the OwNetwork of this moduleobject_p - the OwObject to display and/or edit the permissions for.policyViewTitle_p - title of the policy tabprivilegesViewTitle_p - tite of the privileges view tabviews_p - one of POLICIES_ONLY, PRIVILEGES_ONLY or BOTHprivilegeDisplayNames_p - display name of privileges mapped by name (can be null)OwExceptionpublic void init(OwNetwork theNetwork_p) throws OwException
OwUISubModulinit in class OwUISubModultheNetwork_p - reference to the ECM AdapterOwExceptionprotected void init()
throws Exception
OwViewpublic void setReadOnly(boolean readOnly_p)
OwUIAccessRightsModulsetReadOnly in class OwUIAccessRightsModulreadOnly_p - true = user can only view the access rights, false = user can edit the access rights (default)protected OwPolicyLevelView createPolicyLevelView() throws Exception
OwPolicyLevelView factory method.OwPolicyLevelView to be used within this moduleExceptionprotected OwPrivilegesView createPrivilegesView() throws Exception
OwPrivilegesView factory method.OwPrivilegesView to be used within this moduleExceptionprotected OwSubNavigationView createNavigationView()
OwSubNavigationView factory method.OwSubNavigationView to be used within this module to display the policies and the privileges viewsprotected String usesFormWithAttributes()
OwViewusesFormWithAttributes in class OwViewpublic OwMenu getMenu()
OwUIAccessRightsModulgetMenu in class OwUIAccessRightsModulprotected void onRender(Writer w_p) throws Exception
OwViewpublic void onSave(javax.servlet.http.HttpServletRequest request_p,
Object reason_p)
throws Exception
request_p - reason_p - Exceptionpublic void setPolicyViewMessage(String message_p)
OwPolicyLevelView messagemessage_p - - the messagepublic void setACLViewMessage(String message_p)
OwPrivilegesView messagemessage_p - - the messageprotected Map<String,String> getPrivilegeDisplayNames()
public OwPermissionsDocument getDocument()
OwViewgetDocument in class OwViewprotected final OwObject getObject()
OwPermissionsDocumentCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.