|
||||||||||
| 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.dmsdialogs.views.OwPolicyLevelView
public class OwPolicyLevelView
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
| Nested Class Summary | |
|---|---|
class |
OwPolicyLevelView.OwPolicyViewItem
List box item policy item.Used to provide unique IDs for OwPolicy objects |
| Field Summary | |
|---|---|
static int |
MESSAGE_REGION
|
static int |
SELECT_ALL_POLICIES_REGION
|
| 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 | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
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)
|
| 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, init, isFormTargetExternal, isNamedRegion, isRegion, isShowMaximized, isShowMinimized, isShowNormal, onActivate, onUpdate, render, renderHTMLFormular, renderNamedRegion, serverSideDesignInclude, serverSideInclude, setDocument, setExternalFormTarget, setMaximizeView, setParent, showMaximized, showMinimized, showNormal, usesFormWithAttributes |
| 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 SELECT_ALL_POLICIES_REGION
public static final int MESSAGE_REGION
| Constructor Detail |
|---|
public OwPolicyLevelView(OwUIGenericAccessRightsModul accessRightsView_p,
OwUserInfo userInfo_p,
boolean readonly_p)
accessRightsView_p - userInfo_p - readonly_p - true if this policies can't be edited
public 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 edited| Method Detail |
|---|
protected OwPolicyLevelDocument createPolicyLevelDocument(OwPermissionsDocument permissionsDocument_p)
permissionsDocument_p -
public boolean isForceLiveUpdate()
public OwPolicyLevelDocument getDocument()
OwView
getDocument in class OwViewprotected 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
Exceptionpublic String getEffectiveListId()
public String getAvailableListId()
public String getAllListId()
protected void onRender(Writer w_p)
throws Exception
OwView
onRender in class OwVieww_p - Writer object to write HTML to
Exception
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 OwBaseViewrenderRegion in class OwVieww_p - Writer object to write HTML toregion_p - ID of the region to render
Exception
protected void renderMessageRegion(Writer w_p)
throws Exception
w_p - - the writer
Exceptionpublic 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 -
OwExceptionpublic void setMessage(String message_p)
message_p - - the message (can be null - nothing is displayed).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||