com.wewebu.ow.server.dmsdialogs.views
Class OwPrivilegeSetEditor

java.lang.Object
  extended by com.wewebu.ow.server.ui.OwEventTarget
      extended by com.wewebu.ow.server.ui.OwView
          extended by com.wewebu.ow.server.dmsdialogs.views.OwPrivilegeSetEditor
All Implemented Interfaces:
OwBaseView, OwDialog.OwDialogListener, OwUpdateTarget, EventListener

public class OwPrivilegeSetEditor
extends OwView
implements OwDialog.OwDialogListener

OwPrivilegeSet editor view for set-user and privilege selection to be used with OwPrivilegesView.

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

Since:
3.2.0.0

Field Summary
static String PRIVILEGES_PARAMETER
           
 
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
OwPrivilegeSetEditor(OwPrivilegesDocument privilegesDocument_p, OwDialog dialog_p)
           
 
Method Summary
protected  OwUserSelectDialog createOwUserSelectDialog(int[] filter, boolean multiSelect)
          (overridable) Factory methods for user select dialog, can be overwritten if needed.
 OwPrivilegeSetEditorDocument getDocument()
          gets the reference to the document
 List<String> getRecentRoleNames()
           
 void onAddPrivilege(javax.servlet.http.HttpServletRequest request_p)
           
 void onChangeToRecentRole(javax.servlet.http.HttpServletRequest request_p)
          called from JSP to change to a recent role
 void onDialogClose(OwDialog dialogView_p)
          called if the Dialog that was opened by this view closes
 void onOpenRoleDialog(javax.servlet.http.HttpServletRequest request_p)
          called from JSP to get role from role dialogue
protected  void onRender(Writer w_p)
          called when the view should create its HTML content to be displayed
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.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, 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

PRIVILEGES_PARAMETER

public static final String PRIVILEGES_PARAMETER
See Also:
Constant Field Values
Constructor Detail

OwPrivilegeSetEditor

public OwPrivilegeSetEditor(OwPrivilegesDocument privilegesDocument_p,
                            OwDialog dialog_p)
Method Detail

getDocument

public OwPrivilegeSetEditorDocument getDocument()
Description copied from class: OwView
gets the reference to the document

Overrides:
getDocument in class OwView
Returns:
document instance

onRender

protected void onRender(Writer w_p)
                 throws Exception
Description copied from class: OwView
called when the view should create its HTML content to be displayed

Overrides:
onRender in class OwView
Parameters:
w_p - Writer object to write HTML to
Throws:
Exception

getRecentRoleNames

public List<String> getRecentRoleNames()

onChangeToRecentRole

public void onChangeToRecentRole(javax.servlet.http.HttpServletRequest request_p)
                          throws Exception
called from JSP to change to a recent role

Parameters:
request_p - a HttpServletRequest object
Throws:
Exception

onOpenRoleDialog

public void onOpenRoleDialog(javax.servlet.http.HttpServletRequest request_p)
                      throws Exception
called from JSP to get role from role dialogue

Parameters:
request_p - a HttpServletRequest object
Throws:
Exception

createOwUserSelectDialog

protected OwUserSelectDialog createOwUserSelectDialog(int[] filter,
                                                      boolean multiSelect)
                                               throws OwException
(overridable) Factory methods for user select dialog, can be overwritten if needed. This will be called by onOpenRoleDialog(HttpServletRequest) if a selection was triggered.

Parameters:
filter - int array of OwUIUserSelectModul.TYPE_...
multiSelect - boolean allow multi selection
Returns:
OwUserSelectDialog
Throws:
OwException - if could not instantiate dialog

onDialogClose

public void onDialogClose(OwDialog dialogView_p)
                   throws Exception
Description copied from interface: OwDialog.OwDialogListener
called if the Dialog that was opened by this view closes

Specified by:
onDialogClose in interface OwDialog.OwDialogListener
Parameters:
dialogView_p - the Dialog that closed.
Throws:
Exception

usesFormWithAttributes

protected String usesFormWithAttributes()
Description copied from class: OwView
to get additional form attributes used for the form override if your view needs a form. Base class will then render a form automatically

Overrides:
usesFormWithAttributes in class OwView
Returns:
String with form attributes, or null if view does not render a form

onAddPrivilege

public void onAddPrivilege(javax.servlet.http.HttpServletRequest request_p)
                    throws Exception
Throws:
Exception


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.