|
||||||||||
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.ecm.ui.OwUISubModul<N>
com.wewebu.ow.server.ecm.ui.OwUIAccessRightsModul
com.wewebu.ow.server.dmsdialogs.views.OwUIGenericAccessRightsModul
public class OwUIGenericAccessRightsModul
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
Field Summary | |
---|---|
static int |
BOTH
|
static int |
POLICIES_ONLY
|
static int |
PRIVILEGES_ONLY
|
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 | |
---|---|
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 |
Method Summary | |
---|---|
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. |
Methods inherited from class com.wewebu.ow.server.ecm.ui.OwUIAccessRightsModul |
---|
getLiveUpdate, setLiveUpdate |
Methods inherited from class com.wewebu.ow.server.ecm.ui.OwUISubModul |
---|
getNetwork |
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 |
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 |
Field Detail |
---|
public static final int POLICIES_ONLY
public static final int PRIVILEGES_ONLY
public static final int BOTH
Constructor Detail |
---|
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
Method Detail |
---|
public void init(OwNetwork theNetwork_p) throws OwException
OwUISubModul
init
in class OwUISubModul
theNetwork_p
- reference to the ECM Adapter
OwException
protected void init() throws Exception
OwView
init
in class OwView
Exception
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 module
Exception
protected OwPrivilegesView createPrivilegesView() throws Exception
OwPrivilegesView
factory method.
OwPrivilegesView
to be used within this module
Exception
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
onRender
in class OwView
w_p
- Writer object to write HTML to
Exception
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
message
message_p
- - the messagepublic void setACLViewMessage(String message_p)
OwPrivilegesView
message
message_p
- - the messageprotected Map<String,String> getPrivilegeDisplayNames()
public OwPermissionsDocument getDocument()
OwView
getDocument
in class OwView
protected final OwObject getObject()
OwPermissionsDocument
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |