public class OwPolicyLevelView extends OwView
Displays and edits the policies 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 | Class and Description |
---|---|
class |
OwPolicyLevelView.OwPolicyViewItem
List box item policy item.Used to provide unique IDs for
OwPolicy objects |
Modifier and Type | Field and Description |
---|---|
static int |
MESSAGE_REGION |
static int |
SELECT_ALL_POLICIES_REGION |
CURRENT_MODULE_KEY, FORMULAR_PLACEHOLDER_END_DELIMITER, FORMULAR_PLACEHOLDER_START_DELIMITER, m_externalFormEventTarget
EMPTY_STRING
Constructor and Description |
---|
OwPolicyLevelView(OwUIGenericAccessRightsModul accessRightsView_p,
OwUserInfo userInfo_p,
boolean readonly_p)
Constructor
|
OwPolicyLevelView(OwUIGenericAccessRightsModul accessRightsView_p,
OwUserInfo userInfo_p,
boolean readonly_p,
boolean forceLiveUpdate_p)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
canAddMultiPolicy() |
boolean |
canSetPolicies() |
void |
clearOwnedItems()
Clears the HTML policy items this view owns and reinitializes the unique ID generator index
m_lastItemId |
String |
createAddEventURL() |
protected OwPolicyLevelView.OwPolicyViewItem |
createPolicyItem(OwPolicy policy_p,
boolean selected_p) |
protected List |
createPolicyItems(Collection policies_p,
Collection selectedPolicies_p) |
protected OwPolicyLevelDocument |
createPolicyLevelDocument(OwPermissionsDocument permissionsDocument_p)
(overridable)
|
String |
createRemoveEventURL() |
String |
getAllListId() |
List |
getAllPolicyItems() |
String |
getAvailableListId() |
List |
getAvailablePolicyItems() |
OwPolicyLevelDocument |
getDocument()
gets the reference to the document
|
String |
getEffectiveListId() |
List |
getEffectivePolicyItems() |
protected OwPermissionCollection |
getPermissions() |
boolean |
isForceLiveUpdate() |
boolean |
isReadonly() |
void |
onAdd(javax.servlet.http.HttpServletRequest request_p) |
void |
onRemove(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 policy views. |
protected void |
renderMessageRegion(Writer w_p)
Render the message.
|
void |
renderRegion(Writer w_p,
int region_p)
render only a region in the view, used by derived classes
|
void |
renderSelectAllPolicies(Writer w_p)
Renders a HTML select for all available policies using the context defined
combo renderer.
|
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, init, isFormTargetExternal, isNamedRegion, isRegion, isShowMaximized, isShowMinimized, isShowNormal, onActivate, onUpdate, render, renderHTMLFormular, renderNamedRegion, serverSideDesignInclude, serverSideInclude, setDocument, setExternalFormTarget, setMaximizeView, setParent, showMaximized, showMinimized, showNormal, usesFormWithAttributes
attach, disableRequestListener, enableRequestListener, getAjaxEventURL, getContext, getEventURL, getFormEventFunction, getFormEventURL, getID, onExternalRequest, onFormEvent, onRequest, updateExternalFormTarget
public static final int SELECT_ALL_POLICIES_REGION
public static final int MESSAGE_REGION
public OwPolicyLevelView(OwUIGenericAccessRightsModul accessRightsView_p, OwUserInfo userInfo_p, boolean readonly_p)
accessRightsView_p
- userInfo_p
- readonly_p
- true
if this policies can't be editedpublic OwPolicyLevelView(OwUIGenericAccessRightsModul accessRightsView_p, OwUserInfo userInfo_p, boolean readonly_p, boolean forceLiveUpdate_p)
accessRightsView_p
- userInfo_p
- forceLiveUpdate_p
- if true the policy view will update the server data using its
own triggers (not through save menu buttons)readonly_p
- true
if this policies can't be editedprotected OwPolicyLevelDocument createPolicyLevelDocument(OwPermissionsDocument permissionsDocument_p)
permissionsDocument_p
- public boolean isForceLiveUpdate()
public OwPolicyLevelDocument getDocument()
OwView
getDocument
in class OwView
protected OwPermissionCollection getPermissions()
public boolean canSetPolicies()
public boolean canAddMultiPolicy()
public List getEffectivePolicyItems()
public List getAvailablePolicyItems()
public List getAllPolicyItems()
protected List createPolicyItems(Collection policies_p, Collection selectedPolicies_p)
protected OwPolicyLevelView.OwPolicyViewItem createPolicyItem(OwPolicy policy_p, boolean selected_p)
public void clearOwnedItems()
m_lastItemId
public String createAddEventURL()
public String createRemoveEventURL()
public void onAdd(javax.servlet.http.HttpServletRequest request_p) throws Exception
Exception
public void onRemove(javax.servlet.http.HttpServletRequest request_p) throws Exception
Exception
public String getEffectiveListId()
public String getAvailableListId()
public String getAllListId()
protected void onRender(Writer w_p) throws Exception
OwView
public void renderSelectAllPolicies(Writer w_p) throws Exception
w_p
- Exception
public void renderRegion(Writer w_p, int region_p) throws Exception
OwView
renderRegion
in interface OwBaseView
renderRegion
in class OwView
w_p
- Writer object to write HTML toregion_p
- ID of the region to renderException
protected void renderMessageRegion(Writer w_p) throws Exception
w_p
- - the writerException
public final boolean isReadonly()
public final void setReadOnly(boolean readOnly_p)
readOnly_p
- true if the policy view should be read-only, false otherwise.public void onSave(javax.servlet.http.HttpServletRequest request_p, Object reason_p) throws OwException
OwUIGenericAccessRightsModul
delegate for non live updating policy views.request_p
- reason_p
- OwException
public void setMessage(String message_p)
message_p
- - the message (can be null - nothing is displayed).Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.