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_externalFormEventTarget
EMPTY_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, setLiveUpdate
getNetwork
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
attach, disableRequestListener, enableRequestListener, getAjaxEventURL, getContext, getEventURL, getFormEventFunction, getFormEventURL, getID, onExternalRequest, onFormEvent, onRequest, updateExternalFormTarget
public 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
OwException
public 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 BOTH
OwException
public 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 BOTH
OwException
public 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 BOTH
privilegeDisplayNames_p
- display name of privileges mapped by name (can be null)OwException
public void init(OwNetwork theNetwork_p) throws OwException
OwUISubModul
init
in class OwUISubModul
theNetwork_p
- reference to the ECM AdapterOwException
protected void init() throws Exception
OwView
public void setReadOnly(boolean readOnly_p)
OwUIAccessRightsModul
setReadOnly
in class OwUIAccessRightsModul
readOnly_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 moduleException
protected OwPrivilegesView createPrivilegesView() throws Exception
OwPrivilegesView
factory method.OwPrivilegesView
to be used within this moduleException
protected OwSubNavigationView createNavigationView()
OwSubNavigationView
factory method.OwSubNavigationView
to be used within this module to display the policies and the privileges viewsprotected String usesFormWithAttributes()
OwView
usesFormWithAttributes
in class OwView
public OwMenu getMenu()
OwUIAccessRightsModul
getMenu
in class OwUIAccessRightsModul
protected void onRender(Writer w_p) throws Exception
OwView
public void onSave(javax.servlet.http.HttpServletRequest request_p, Object reason_p) throws Exception
request_p
- reason_p
- Exception
public 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()
OwView
getDocument
in class OwView
protected final OwObject getObject()
OwPermissionsDocument
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.