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

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.OwMultipanelAccessRightsView
All Implemented Interfaces:
OwBaseView, OwMultipanel, OwUpdateTarget

public class OwMultipanelAccessRightsView
extends OwView
implements OwMultipanel

Access rights view. Implementing the OwMutlipanel interface, so it will work also in sub menu structures.

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.1.0.0

Field Summary
protected  OwUIAccessRightsModul m_AccessRightsSubModul
          reference to the DMS specific AccessRights UI
protected  boolean m_fReadOnly
          read only flag
protected  int m_iNextButtonIndex
          index of the next button in the menu
protected  OwMenu m_MainMenu
          main menu of ECM Adapters AccessReightsUI
protected  OwView m_NextActiveView
          OwMultipanel implementation next view reference
protected  OwObject m_ObjectRef
          object reference the view is working on
protected  OwView m_PrevActiveView
          OwMultipanel implementation previous view reference
 
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
OwMultipanelAccessRightsView()
           
 
Method Summary
 String getFormName()
          get the form used for the edit fields
 OwObject getObjectRef()
          get the object, the access rights view is working on
 boolean isValidated()
          check if view has validated its data and the next view can be enabled
protected  void onActivate(int index_p, Object reason_p)
          activate the target from a navigation module.
 void onNext(javax.servlet.http.HttpServletRequest request_p, Object oReason_p)
          Event called when user clicked Next button in menu
protected  void onRender(Writer w_p)
          render the view and all contained views
 void setNextActivateView(OwView nextView_p)
          set the view that is next to this view, displays a next button to activate
 void setObjectRef(OwObject obj_p)
          set the object, the access rights view is working on
 void setPrevActivateView(OwView prevView_p)
          set the view that is prev to this view, displays a prev button to activate
 void setReadOnly(boolean fReadOnly_p)
          set the view read-only
 
Methods inherited from class com.wewebu.ow.server.ui.OwView
activate, addView, detach, getBreadcrumbPart, getDocument, getExternalFormEventTarget, getFormTarget, getIcon, getIterator, getMaximizeView, getParent, getRenderedNamedRegion, getRenderedRegion, getTitle, getViewList, init, isFormTargetExternal, isNamedRegion, isRegion, isShowMaximized, isShowMinimized, isShowNormal, onUpdate, render, renderHTMLFormular, renderNamedRegion, renderRegion, 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

m_AccessRightsSubModul

protected OwUIAccessRightsModul m_AccessRightsSubModul
reference to the DMS specific AccessRights UI


m_ObjectRef

protected OwObject m_ObjectRef
object reference the view is working on


m_MainMenu

protected OwMenu m_MainMenu
main menu of ECM Adapters AccessReightsUI


m_iNextButtonIndex

protected int m_iNextButtonIndex
index of the next button in the menu


m_fReadOnly

protected boolean m_fReadOnly
read only flag


m_PrevActiveView

protected OwView m_PrevActiveView
OwMultipanel implementation previous view reference


m_NextActiveView

protected OwView m_NextActiveView
OwMultipanel implementation next view reference

Constructor Detail

OwMultipanelAccessRightsView

public OwMultipanelAccessRightsView()
Method Detail

onActivate

protected void onActivate(int index_p,
                          Object reason_p)
                   throws Exception
Description copied from class: OwView
activate the target from a navigation module. Called when menu item was pressed for this target.

Overrides:
onActivate in class OwView
Parameters:
index_p - int tab iIndex of Navigation
reason_p - User Object which was submitted when target was attached to the navigation module
Throws:
Exception

getFormName

public String getFormName()
get the form used for the edit fields

Overrides:
getFormName in class OwView
Returns:
String form name

setReadOnly

public void setReadOnly(boolean fReadOnly_p)
set the view read-only


getObjectRef

public OwObject getObjectRef()
get the object, the access rights view is working on

Returns:
OwObject

setObjectRef

public void setObjectRef(OwObject obj_p)
                  throws Exception
set the object, the access rights view is working on

Parameters:
obj_p - OwObject
Throws:
Exception

onRender

protected void onRender(Writer w_p)
                 throws Exception
render the view and all contained views

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

isValidated

public boolean isValidated()
                    throws Exception
Description copied from interface: OwMultipanel
check if view has validated its data and the next view can be enabled

Specified by:
isValidated in interface OwMultipanel
Returns:
boolean true = can forward to next view, false = view has not yet validated
Throws:
Exception

setNextActivateView

public void setNextActivateView(OwView nextView_p)
                         throws Exception
Description copied from interface: OwMultipanel
set the view that is next to this view, displays a next button to activate

Specified by:
setNextActivateView in interface OwMultipanel
Parameters:
nextView_p - OwView
Throws:
Exception

setPrevActivateView

public void setPrevActivateView(OwView prevView_p)
                         throws Exception
Description copied from interface: OwMultipanel
set the view that is prev to this view, displays a prev button to activate

Specified by:
setPrevActivateView in interface OwMultipanel
Parameters:
prevView_p - OwView
Throws:
Exception

onNext

public void onNext(javax.servlet.http.HttpServletRequest request_p,
                   Object oReason_p)
            throws Exception
Event called when user clicked Next button in menu

Parameters:
oReason_p - Optional reason object submitted in addMenuItem
request_p - a HttpServletRequest
Throws:
Exception


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.