xava.default-controllers.xml Maven / Gradle / Ivy
<?xml version = "1.0" encoding = "ISO-8859-1"?> <!DOCTYPE controllers SYSTEM "dtds/controllers.dtd"> <!-- default-controllers.xml: OpenXava core controllers In your project use the name 'controllers.xml' or 'controladores.xml' If you have to override some of this controller for you application, you only need to create a controller in your application with the same name of the controller here that you want to override. --> <controllers> <env-var name="XAVA_SEARCH_ACTION" value="CRUD.searchByViewKey"/> <env-var name="XAVA_LIST_ACTION" value="List.viewDetail"/> <env-var name="XAVA_CALENDAR_VIEWEVENT_ACTION" value="Calendar.viewDetail"/> <object name="xava_view" class="org.openxava.view.View"/> <object name="xava_referenceSubview" class="org.openxava.view.View"/> <object name="xava_tab" class="org.openxava.tab.Tab"/> <object name="xava_mainTab" class="org.openxava.tab.Tab"/> <object name="xava_customizingTab" class="org.openxava.tab.Tab"/> <object name="xava_myReport" class="org.openxava.session.MyReport"/> <object name="xava_chart" class="org.openxava.session.Chart"/> <object name="xava_row" class="java.lang.Integer" value="-1"/> <object name="xava_currentCollectionLabel" class="java.lang.String"/> <object name="xava_collectionViewObject" class="java.lang.String"/> <object name="xava_previousControllers" class="java.util.Stack"/> <object name="xava_previousViews" class="java.util.Stack"/> <object name="xava_previousCustomViews" class="java.util.Stack"/> <object name="xava_defaultSchema" class="java.lang.String" scope="global"/> <object name="xava_persistenceUnit" class="java.lang.String" scope="global"/> <object name="xava_currentModule" class="java.lang.String" /> <object name="xava_treeViewParser" class="org.openxava.util.TreeViewParser" /> <object name="xava_treeViewNodeFullPath" class="java.lang.String" /> <object name="xava_metaActionsInList" class="java.util.Collection"/> <object name="xava_newFileProperty" class="java.lang.String" /> <object name="xava_newFilesetProperty" class="java.lang.String" /> <object name="xava_newIconProperty" class="java.lang.String"/> <object name="xava_cutCollectionElements" class="org.openxava.session.CutCollectionElements" scope="global"/> <object name="naviox_locked" class="java.lang.Boolean" value="false" scope="global"/> <object name="naviox_locking" class="java.lang.Boolean" value="false"/> <controller name="Typical"> <!-- If you modify this controller revise the other Typical controllers below --> <extends controller="Navigation"/> <extends controller="CRUD"/> <extends controller="Print"/> <extends controller="ImportData"/> </controller> <controller name="Void"/> <controller name="CRUD"> <action name="new" class="org.openxava.actions.NewAction" image="new.gif" icon="library-plus" keystroke="Control N" loses-changed-data="true"> <set property="restoreModel" value="true"/> </action> <action name="save" mode="detail" by-default="if-possible" class="org.openxava.actions.SaveAction" image="save.gif" icon="content-save" keystroke="Control S"/> <action name="refresh" mode="detail" class="org.openxava.actions.SearchAction" image="refresh.gif" icon="refresh" keystroke="control B"/> <action name="delete" mode="detail" confirm="true" class="org.openxava.actions.DeleteAction" image="delete.gif" icon="delete" available-on-new="false" keystroke="Control D"/> <action name="searchByViewKey" hidden="true" class="org.openxava.actions.SearchByViewKeyAction"/> <action name="searchExecutingOnChange" hidden="true" class="org.openxava.actions.SearchExecutingOnChangeAction"/> <action name="searchReadOnly" hidden="true" class="org.openxava.actions.SearchReadOnlyAction"/> <action name="deleteSelected" mode="list" confirm="true" process-selected-items="true" image="delete.gif" icon="delete" class="org.openxava.actions.DeleteSelectedAction" keystroke="Control D"/> <action name="deleteRow" mode="NONE" confirm="true" class="org.openxava.actions.DeleteSelectedAction" image="delete.gif" icon="delete" in-each-row="true"/> </controller> <controller name="Print"> <action name="generatePdf" mode="list" class="org.openxava.actions.GenerateReportAction" image="pdf.gif" icon="file-pdf" keystroke="Control Alt P"> <set property="type" value="pdf"/> </action> <action name="generateExcel" mode="list" class="org.openxava.actions.GenerateReportAction" image="excel.gif" icon="file-excel" keystroke="Control Alt X"> <set property="type" value="csv"/> </action> </controller> <controller name="ExtendedPrint"> <extends controller="Print"/> <action name="myReports" mode="list" class="org.openxava.actions.MyReportsAction" image="reports.png" icon="library-books"> </action> </controller> <controller name="ImportData"> <action name="importData" icon="import" image="import.png" mode="list" class="org.openxava.actions.ImportDataAction"/> </controller> <controller name="ConfigureImport"> <action name="configureImport" class="org.openxava.actions.ConfigureImportAction"/> <action name="cancel" class="org.openxava.actions.CancelAction"/> </controller> <controller name="Import"> <action name="import" takes-long="true" class="org.openxava.actions.ImportAction"/> <action name="cancel" class="org.openxava.actions.CancelToDefaultControllersAction"/> </controller> <controller name="SignIn"> <action name="init" on-init="true" hidden="true" class="com.openxava.naviox.actions.InitSignInAction"/> <action name="signIn" class="com.openxava.naviox.actions.SignInAction"/> </controller> <controller name="MyReport"> <action name="generatePdf" class="org.openxava.actions.GenerateMyReportAction" keystroke="Control Alt P"> <set property="type" value="pdf"/> </action> <action name="generateExcel" class="org.openxava.actions.GenerateMyReportAction" image="excel.gif" keystroke="Control Alt X"> <set property="type" value="csv"/> </action> <action name="cancel" class="org.openxava.actions.CancelDialogAction"/> <action name="columnUp" hidden="true" class="org.openxava.actions.MoveMyReportColumnAction" icon="menu-up" image="descending.gif"> <set property="increment" value="-1"/> </action> <action name="columnDown" hidden="true" class="org.openxava.actions.MoveMyReportColumnAction" icon="menu-down" image="ascending.gif"> <set property="increment" value="1"/> </action> <action name="removeColumn" hidden="true" in-each-row="true" class="org.openxava.actions.RemoveMyReportColumnAction" icon="delete" image="delete.gif"/> <action name="saveColumn" hidden="true" class="org.openxava.actions.SaveMyReportColumnAction"/> <action name="newColumn" hidden="true" class="org.openxava.actions.CreateNewMyReportColumnAction" icon="table-column-plus-after" image="create_new.gif" /> <action name="editColumn" hidden="true" class="org.openxava.actions.EditMyReportColumnAction" icon="pencil" image="edit.gif"/> <action name="createNew" hidden="true" class="org.openxava.actions.CreateNewMyReportAction" icon="library-plus" image="create_new.gif"/> <action name="remove" hidden="true" confirm="true" class="org.openxava.actions.RemoveMyReportAction" icon="delete" image="delete.gif"/> <action name="share" hidden="true" image="shared-reports.png" icon="share-variant" class="org.openxava.actions.ShareMyReportAction"/> </controller> <controller name="Chart"> <action name="init" hidden="true" class="org.openxava.actions.InitChartAction"/> <action name="release" hidden="true" class="org.openxava.actions.ReleaseChartAction"/> <action name="selectType" hidden="true" class="org.openxava.actions.SelectChartTypeAction"/> <action name="removeColumn" hidden="true" in-each-row="true" class="org.openxava.actions.RemoveChartColumnAction" icon="delete" image="delete.gif"/> </controller> <controller name="TypicalNotResetOnSave"> <extends controller="Typical"/> <action name="save" mode="detail" class="org.openxava.actions.SaveAction" image="save.gif" icon="content-save" by-default="if-possible" keystroke="control S"> <set property="resetAfter" value="false"/> </action> </controller> <controller name="TypicalNewOnInit"> <extends controller="Typical"/> <action name="new" on-init="true" class="org.openxava.actions.NewAction" image="new.gif" icon="library-plus" keystroke="Control N"> <set property="restoreModel" value="true"/> </action> </controller> <controller name="TypicalRealExcel"> <extends controller="Typical"/> <action name="generateExcel" mode="list" class="org.openxava.actions.GenerateReportAction" image="excel.gif" icon="file-excel" keystroke="Control Alt X"> <set property="type" value="xls"/> </action> </controller> <controller name="TypicalExtendedPrint"> <extends controller="Navigation"/> <extends controller="CRUD"/> <extends controller="ExtendedPrint"/> <extends controller="ImportData"/> </controller> <controller name="TypicalWithSearch"> <extends controller="Typical"/> <extends controller="SearchForCRUD"/> </controller> <controller name="SearchForCRUD"> <action name="search" mode="detail" class="org.openxava.actions.OpenSearchDialogAction" image="find.gif" icon="magnify" keystroke="control B"/> </controller> <controller name="DetailOnly"> </controller> <controller name="Mode"> <action name="list" icon="chevron-left" class="org.openxava.actions.GoListAction" keystroke="F9" loses-changed-data="true"/> <action name="detail" hidden="true" class="org.openxava.actions.GoDetailAction"/> <action name="initView" class="org.openxava.actions.InitViewAction" hidden="true" on-init="true"/> <action name="initList" on-init="true" class="org.openxava.actions.InitListAction" hidden="true"/> </controller> <controller name="Calendar"> <action name="viewDetail" class="org.openxava.actions.CalendarViewDetailAction" hidden="true" mode="list" image="edit.gif" icon="border-color"> <set property="nextAction" value="Mode.detail"/> </action> </controller> <controller name="List"> <action name="init" hidden="true" class="org.openxava.actions.SetOptimizeChunkSizeAction"> <set property="optimizeChunkSize" value="true"/> </action> <action name="release" hidden="true" class="org.openxava.actions.SetOptimizeChunkSizeAction"> <set property="optimizeChunkSize" value="false"/> </action> <action name="setPageRowCount" class="org.openxava.actions.SetPageRowCountAction" hidden="true"/> <action name="viewDetail" class="org.openxava.actions.ViewDetailAction" hidden="true" mode="list" image="edit.gif" icon="border-color"> <set property="nextAction" value="Mode.detail"/> </action> <action name="goPreviousPage" class="org.openxava.actions.GoPreviousPageAction" keystroke="Control A" hidden="true" mode="list" icon="menu-left"/> <action name="goPage" class="org.openxava.actions.GoPageAction" keystroke="Control I" hidden="true" mode="list"/> <action name="goNextPage" class="org.openxava.actions.GoNextPageAction" keystroke="Control S" hidden="true" mode="list" icon="menu-right"/> <action name="orderBy" class="org.openxava.actions.OrderByAction" hidden="true" mode="list"> </action> <action name="groupBy" class="org.openxava.actions.GroupByAction" hidden="true" mode="list"> </action> <action name="filter" by-default="almost-always" class="org.openxava.actions.FilterAction" hidden="true" mode="list" icon="play" image="filter.gif"> </action> <action name="deselectRows" class="org.openxava.actions.DeselectRowsAction" hidden="true" mode="list"> </action> <action name="addColumns" class="org.openxava.actions.GoAddColumnsAction" hidden="true" mode="list" icon="table-column-plus-after"/> <action name="hideRows" class="org.openxava.actions.HideRowsAction" hidden="true" mode="list"/> <action name="showRows" class="org.openxava.actions.ShowRowsAction" hidden="true" mode="list"/> <action name="sumColumn" class="org.openxava.actions.SumColumnAction" hidden="true" mode="list" icon="sigma" image="summation.gif"/> <action name="removeColumnSum" class="org.openxava.actions.RemoveColumnSumAction" hidden="true" mode="list" icon="close-circle" image="remove.gif"/> <action name="changeConfiguration" class="org.openxava.actions.GoChangeListConfigurationAction" hidden="true" mode="list" icon="rename-box"/> <action name="saveConfiguration" class="org.openxava.actions.GoSaveListConfigurationAction" hidden="true" mode="list"/> <action name="changeColumnName" class="org.openxava.actions.GoChangeColumnNameAction" hidden="true" mode="list" icon="rename-box"/> </controller> <controller name="ChangeListConfiguration"> <action name="change" class="org.openxava.actions.SaveListConfigurationNameAction"/> <action name="remove" class="org.openxava.actions.RemoveListConfigurationAction"/> <action name="cancel" class="org.openxava.actions.CancelAction"/> </controller> <controller name="SaveListConfiguration"> <action name="save" class="org.openxava.actions.SaveListConfigurationNameAction"/> <action name="cancel" class="org.openxava.actions.CancelAction"/> </controller> <controller name="ChangeColumnName"> <action name="change" class="org.openxava.actions.ChangeColumnNameAction"/> <action name="cancel" class="org.openxava.actions.CancelDialogAction"/> </controller> <controller name="Cards"> <action name="loadMoreCards" class="org.openxava.actions.LoadMoreCardsAction"/> </controller> <controller name="ListFormat"> <action name="select" class="org.openxava.actions.SelectListFormatAction"/> </controller> <controller name="NoCustomizeList"> <action name="disableCustomizeList" mode="list" hidden="true" on-init="true" class="org.openxava.actions.DisableCustomizeListAction"> </action> </controller> <controller name="Search"> <action name="search" class="org.openxava.actions.SearchDialogAction"/> <action name="cancel" class="org.openxava.actions.CancelDialogAction"/> </controller> <controller name="AddColumns"> <action name="addColumns" class="org.openxava.actions.AddColumnsAction"/> <action name="restoreDefault" class="org.openxava.actions.RestoreDefaultColumnsAction"> <!-- We left the use-object in order to test action-property attribute --> <use-object name="xava_customizingTab" action-property="tab"/> </action> <action name="cancel" class="org.openxava.actions.CancelAction"/> <action name="showMoreColumns" class="org.openxava.actions.ShowMoreColumnsAction" hidden="true"/> <action name="addColumn" mode="NONE" class="org.openxava.actions.AddColumnsAction"/> </controller> <controller name="Navigation"> <action name="first" mode="detail" image="home.gif" icon="skip-backward" class="org.openxava.actions.ViewDetailAction" by-default="never" keystroke="control alt HOME" loses-changed-data="true"> <set property="goFirst" value="true"/> </action> <action name="previous" mode="detail" image="previous.gif" icon="skip-previous" class="org.openxava.actions.ViewDetailAction" by-default="never" keystroke="control alt LEFT" loses-changed-data="true"> <set property="increment" value="-1"/> </action> <action name="next" mode="detail" image="next.gif" icon="skip-next" class="org.openxava.actions.ViewDetailAction" by-default="never" keystroke="control alt RIGHT" loses-changed-data="true"> <set property="increment" value="1"/> </action> </controller> <controller name="ImageEditor"> <action name="load" class="org.openxava.actions.LoadImageAction"/> <action name="remove" class="org.openxava.actions.SetPropertyToNullAction"/> </controller> <controller name="GalleryEditor"> <action name="load" class="org.openxava.actions.LoadImageIntoGalleryAction"/> <action name="remove" class="org.openxava.actions.RemoveImageFromGalleryAction"/> </controller> <controller name="FileItemEditor"> <action name="load" class="org.openxava.actions.LoadFileItemAction"/> <action name="remove" class="org.openxava.actions.SetPropertyToNullAction"/> </controller> <controller name="Dialog"> <action name="cancel" class="org.openxava.actions.CancelDialogAction"/> </controller> <controller name="Return"> <action name="return" class="org.openxava.actions.ReturnAction"/> </controller> <controller name="Close"> <action name="close" class="org.openxava.actions.CancelAction"/> </controller> <controller name="CloseFromCustomList"> <action name="close" class="org.openxava.actions.CancelFromCustomListAction"/> </controller> <controller name="Reference"> <action name="search" class="org.openxava.actions.ReferenceSearchAction" icon="magnify" image="search.gif"/> <action name="createNew" class="org.openxava.actions.CreateNewFromReferenceAction" icon="library-plus" image="create_new.gif"/> <action name="modify" class="org.openxava.actions.ModifyFromReferenceAction" icon="border-color" image="edit.gif"/> <action name="clear" class="org.openxava.actions.ClearReferenceAction" icon="eraser"/> </controller> <!-- This controller is using when create a new entity from a reference. If you need to overwrite, you can create your own controller with the name {MyEntity}Creation. For example PersonCreation for create Person. --> <controller name="NewCreation"> <!-- The action 'new' is execute automatically --> <action name="new" hidden="true" class="org.openxava.actions.NewAction" keystroke="F2"/> <action name="saveNew" by-default="almost-always" class="org.openxava.actions.SaveNewAction"/> <action name="cancel" class="org.openxava.actions.CancelAction"/> </controller> <!-- This controller is using when modifying an entity from a reference. If you need to overwrite, you can create your own controller with the name {MyEntity}Modification. For example PersonModification for create Person. --> <controller name="Modification"> <!-- The action 'search' is execute automatically --> <action name="search" hidden="true" class="org.openxava.actions.SearchByViewKeyAction" keystroke="F2"/> <action name="update" by-default="almost-always" class="org.openxava.actions.UpdateAction"/> <action name="cancel" class="org.openxava.actions.CancelAction"/> </controller> <controller name="ReferenceSearch"> <action name="choose" by-default="almost-always" class="org.openxava.actions.ChooseReferenceAction"/> <action name="cancel" class="org.openxava.actions.CancelFromCustomListAction"/> </controller> <controller name="AddToCollection"> <action name="add" class="org.openxava.actions.AddElementsToCollectionAction"/> <action name="cancel" class="org.openxava.actions.CancelFromCustomListAction"/> </controller> <controller name="Collection"> <action name="new" image="create_new.gif" icon="library-plus" class="org.openxava.actions.CreateNewElementInCollectionAction"/> <action name="add" image="create_new.gif" icon="table-row-plus-after" class="org.openxava.actions.GoAddElementsToCollectionAction"/> <action name="hideDetail" class="org.openxava.actions.HideDetailElementInCollectionAction"/> <action name="save" class="org.openxava.actions.SaveElementInCollectionAction"/> <action name="saveAndStay" class="org.openxava.actions.SaveAndStayElementInCollectionAction"/> <action name="remove" confirm="true" class="org.openxava.actions.RemoveElementFromCollectionAction"/> <action name="edit" image="edit.gif" icon="pencil" class="org.openxava.actions.EditElementInCollectionAction"/> <action name="next" image="next.gif" icon="skip-next" class="org.openxava.actions.EditElementInCollectionAction"> <set property="openDialog" value="false"/> <set property="nextValue" value="1"/> </action> <action name="previous" image="previous.gif" icon="skip-previous" class="org.openxava.actions.EditElementInCollectionAction"> <set property="openDialog" value="false"/> <set property="nextValue" value="-1"/> </action> <action name="view" image="view.gif" icon="eye" class="org.openxava.actions.ViewElementInCollectionAction"/> <action name="removeSelected" confirm="true" icon="table-row-remove" in-each-row="true" class="org.openxava.actions.RemoveSelectedInCollectionAction"/> <action name="deleteSelected" confirm="true" icon="delete" image="delete.gif" in-each-row="true" class="org.openxava.actions.DeleteSelectedInCollectionAction"/> </controller> <controller name="CollectionTotals"> <action name="sumColumn" class="org.openxava.actions.SumCollectionColumnAction" hidden="true" icon="sigma" image="summation.gif"/> <action name="removeColumnSum" class="org.openxava.actions.RemoveCollectionColumnSumAction" hidden="true" icon="close-circle" image="remove.gif"/> <action name="save" class="org.openxava.actions.SaveCollectionTotalsAction" hidden="true"/> </controller> <controller name="CollectionCopyPaste"> <action name="cut" icon="content-cut" image="cut.gif" in-each-row="true" class="org.openxava.actions.CutElementsFromCollectionAction"/> <action name="paste" icon="content-paste" image="paste.gif" class="org.openxava.actions.PasteElementsIntoCollectionAction"/> </controller> <controller name="ElementCollection"> <action name="refreshTotals" hidden="true" class="org.openxava.actions.EmptyAction"/> </controller> <controller name="CollectionOpenInNewTab"> <action name="openInNewTab" icon="open-in-new" in-each-row="true" class="org.openxava.actions.OpenCollectionElementInNewTabAction"/> </controller> <!-- These actions are optional to use with ManyToMany collection, they are not added by default. That is, you have to use @ListAction("ManyToMany.new") in your @ManyToMany collection --> <controller name="ManyToMany"> <action name="new" image="new.gif" hidden="true" icon="library-plus" class="org.openxava.actions.CreateNewElementInManyToManyCollectionAction"/> <action name="edit" image="edit.gif" hidden="true" icon="eye" class="org.openxava.actions.EditElementInManyToManyCollectionAction"> <set property="editable" value="true"/> <set property="keyEditable" value="false"/> </action> </controller> <controller name="ManyToManyNewElement"> <action name="save" class="org.openxava.actions.SaveElementInManyToManyCollectionAction"/> </controller> <controller name="ManyToManyUpdateElement"> <action name="save" class="org.openxava.actions.UpdateElementInManyToManyCollectionAction"/> </controller> <controller name="DefaultListActionsForCollections"> <extends controller="CollectionCopyPaste"/> <extends controller="Print"/> </controller> <controller name="DefaultRowActionsForCollections"> <extends controller="CollectionOpenInNewTab"/> </controller> <controller name="Sections"> <action name="change" class="org.openxava.actions.ChangeSectionAction" keystroke="Control 1..9"/> </controller> <!-- If you want that your module use the default schema in the object 'xava_defaultSchema' your module has to use this controller, or you controller has to extend from this one. --> <controller name="DefaultSchema"> <action name="setSchemaDefaultSchema" before-each-request="true" hidden="true" class="org.openxava.actions.SetDefaultSchemaAction"/> </controller> <!-- If you want that your module use the persistence unit in the object 'xava_persistenceUnit' your module has to use this controller, or you controller has to extend from this one. --> <controller name="PersistenceUnit"> <action name="setPersistenceUnit" before-each-request="true" hidden="true" class="org.openxava.actions.SetPersistenceUnitAction"/> </controller> <!-- You can add this controller to your application and you will be able to switch your locale by appending the `locale` parameter. Since v7.0.4 'schema' and 'user' parameters are no longer supported. All these actions rely on request.getParameter which depends on the presentation layer. Keep in mind that it is not recommended to based your application behavior on the presentation layer such as this approach. (Openxava is intended to be independent of the presentation layer). --> <controller name="UrlParameters"> <action name="setLocale" on-each-request="true" hidden="true" class="org.openxava.actions.SetLocaleAction"> </action> </controller> <!-- This controller integrates Treeview behavior to OpenXava --> <controller name="TreeView"> <action name="new" mode="list" image="create_new.gif" icon="library-plus" class="org.openxava.actions.NewTreeViewItemAction"> </action> <action name="save" class="org.openxava.actions.SaveElementInTreeViewAction" mode="detail"> </action> <action name="removeSelected" confirm="true" image="delete.gif" icon="delete" class="org.openxava.actions.RemoveSelectedTreeViewNodeAction"> </action> <action name="remove" class="org.openxava.actions.RemoveTreeViewNodeAction"> </action> </controller> <controller name="AttachedFileEditor"> <action name="load" class="org.openxava.actions.LoadAttachedFileAction"/> <action name="remove" class="org.openxava.actions.RemoveAttachedFileAction"/> </controller> <controller name="AttachedFilesEditor"> <action name="load" class="org.openxava.actions.LoadIntoAttachedFilesAction"/> <action name="remove" class="org.openxava.actions.RemoveFromAttachedFilesAction"/> </controller> <controller name="Icon"> <action name="add" class="org.openxava.actions.GoChooseIconAction"/> <action name="change" class="org.openxava.actions.GoChooseIconAction"/> <action name="remove" class="org.openxava.actions.RemoveIconAction" icon="close-circle"/> <action name="choose" class="org.openxava.actions.ChooseIconAction"/> </controller> <controller name="EmailNotifications"> <action name="subscribe" icon="rss" class="org.openxava.actions.SubscribeToEmailNotificationsAction"> <set property="subscribe" value="true" /> </action> <action name="unsubscribe" icon="rss" class="org.openxava.actions.SubscribeToEmailNotificationsAction"> <set property="subscribe" value="false" /> </action> </controller> <controller name="InitModelWithNewInstance"> <action name="initModelWithNewInstance" hidden="true" on-init="true" class="org.openxava.actions.SetViewModelWithNewInstanceAction"/> </controller> </controllers>