|
||||||||||
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<OwCMISNetwork>
com.wewebu.ow.server.ecmimpl.opencmis.ui.OwCMISAccessRightsModule
public class OwCMISAccessRightsModule
OwCMISAccessRightsModule which will provide depending on the configuration what selection will be available.
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 | |
---|---|
protected static List<String> |
DEFAULT_HEADERS
Default list of Headers which will be rendered |
static String |
EDIT_ROW
Name of property for selected rows |
static String |
HEADER_ACE
|
static String |
HEADER_ISDIRECT
|
static String |
HEADER_PRINCIPAL
|
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 | |
---|---|
OwCMISAccessRightsModule(com.wewebu.ow.server.ecm.OwObject object)
|
Method Summary | |
---|---|
protected void |
createActions(com.wewebu.ow.server.ui.OwMenu menu)
|
protected OwCMISPrivilegeSetEditor |
createEditor()
(overridable) Create an editor which will be used for adding or modifying PrivilegeSet's. |
protected OwCMISPrivilegeEditorDocument |
createEditorDocument(OwCMISPermissionCollection perms,
List<com.wewebu.ow.server.ecm.OwPrivilegeSet> modifySet)
(overridable) Create document for editor instance. |
protected List<String> |
getHeaderList()
List of header names/id's, defining also order of the values. |
com.wewebu.ow.server.ui.OwMenu |
getMenu()
|
protected com.wewebu.ow.server.ecm.OwObject |
getObject()
Get the Object where permission will be modified/viewed. |
protected OwCMISPermissionCollection |
getPermissions()
Get the permission collection which is handled currently. |
protected List<String> |
getPreviousSelectedPrincipals()
Get the principals which where previously selected. |
void |
init()
|
boolean |
isReadOnly()
|
void |
onAdd(javax.servlet.http.HttpServletRequest req,
Object reason)
Handling method for Add/Create events |
void |
onDelete(javax.servlet.http.HttpServletRequest req,
Object reason)
Handling method for PrivilegeSet deletion event. |
void |
onDialogClose(com.wewebu.ow.server.ui.OwDialog dialogView_p)
|
void |
onModify(javax.servlet.http.HttpServletRequest req,
Object reason)
Modify handler method |
protected void |
onRender(Writer w_p)
|
void |
onSave(javax.servlet.http.HttpServletRequest req,
Object reason)
Handling method for Save events |
protected void |
renderRowValue(Writer w_p,
com.wewebu.ow.server.ecm.OwPrivilegeSet set,
String header,
int colIdx,
int rowIdx)
|
protected void |
renderSelectionColumn(Writer w_p,
com.wewebu.ow.server.ecm.OwPrivilegeSet set,
int rowIdx)
|
void |
setReadOnly(boolean readOnly_p)
|
protected String |
usesFormWithAttributes()
|
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, init |
Methods inherited from class com.wewebu.ow.server.ui.OwView |
---|
activate, addView, detach, getBreadcrumbPart, getDocument, 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 |
Methods inherited from interface com.wewebu.ow.server.ui.OwUpdateTarget |
---|
onUpdate |
Field Detail |
---|
public static final String HEADER_PRINCIPAL
public static final String HEADER_ACE
public static final String HEADER_ISDIRECT
protected static final List<String> DEFAULT_HEADERS
public static final String EDIT_ROW
Constructor Detail |
---|
public OwCMISAccessRightsModule(com.wewebu.ow.server.ecm.OwObject object) throws com.wewebu.ow.server.exceptions.OwException
com.wewebu.ow.server.exceptions.OwException
Method Detail |
---|
public void init() throws Exception
init
in class com.wewebu.ow.server.ui.OwView
Exception
public void setReadOnly(boolean readOnly_p)
setReadOnly
in class com.wewebu.ow.server.ecm.ui.OwUIAccessRightsModul<OwCMISNetwork>
public boolean isReadOnly()
protected void onRender(Writer w_p) throws Exception
onRender
in class com.wewebu.ow.server.ui.OwView
Exception
protected void renderSelectionColumn(Writer w_p, com.wewebu.ow.server.ecm.OwPrivilegeSet set, int rowIdx) throws IOException
IOException
protected void renderRowValue(Writer w_p, com.wewebu.ow.server.ecm.OwPrivilegeSet set, String header, int colIdx, int rowIdx) throws IOException
IOException
protected void createActions(com.wewebu.ow.server.ui.OwMenu menu) throws Exception
Exception
public com.wewebu.ow.server.ui.OwMenu getMenu()
getMenu
in class com.wewebu.ow.server.ecm.ui.OwUIAccessRightsModul<OwCMISNetwork>
protected OwCMISPermissionCollection getPermissions()
getObject()
protected com.wewebu.ow.server.ecm.OwObject getObject()
protected String usesFormWithAttributes()
usesFormWithAttributes
in class com.wewebu.ow.server.ui.OwView
protected List<String> getHeaderList()
Will return DEFAULT_HEADERS
list by default.
public void onSave(javax.servlet.http.HttpServletRequest req, Object reason) throws com.wewebu.ow.server.exceptions.OwException
req
- HttpServletRequest of save eventreason
- Object (optional parameter can be null)
com.wewebu.ow.server.exceptions.OwException
public void onAdd(javax.servlet.http.HttpServletRequest req, Object reason) throws com.wewebu.ow.server.exceptions.OwException
req
- HttpServletRequest of add/create eventreason
- Object (optional parameter can be null)
com.wewebu.ow.server.exceptions.OwException
public void onModify(javax.servlet.http.HttpServletRequest req, Object reason) throws com.wewebu.ow.server.exceptions.OwException
req
- HttpServletRequest of modify eventreason
- Object (optional parameter can be null)
com.wewebu.ow.server.exceptions.OwException
public void onDelete(javax.servlet.http.HttpServletRequest req, Object reason) throws com.wewebu.ow.server.exceptions.OwException
req
- HttpServletRequest of delete eventreason
- Object (optional parameter can be null)
com.wewebu.ow.server.exceptions.OwException
protected OwCMISPrivilegeSetEditor createEditor()
protected OwCMISPrivilegeEditorDocument createEditorDocument(OwCMISPermissionCollection perms, List<com.wewebu.ow.server.ecm.OwPrivilegeSet> modifySet) throws Exception
perms
- OwCMISPermissionCollection current permission collectionmodifySet
- List of PrivilegeSet-objects (can be null)
Exception
public void onDialogClose(com.wewebu.ow.server.ui.OwDialog dialogView_p) throws Exception
onDialogClose
in interface com.wewebu.ow.server.ui.OwDialog.OwDialogListener
Exception
protected List<String> getPreviousSelectedPrincipals()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |