Package com.simplicite.util
Class ObjectServiceSimplicite
- java.lang.Object
-
- com.simplicite.util.ObjectCore
-
- com.simplicite.util.ObjectDB
-
- com.simplicite.util.ScriptedObjectDB
-
- com.simplicite.util.ObjectService
-
- com.simplicite.util.ObjectServiceSimplicite
-
- All Implemented Interfaces:
com.simplicite.util.engine.CacheInterface
,java.io.Serializable
public class ObjectServiceSimplicite extends ObjectService
This class is for remote Simplicité® objects.
This is used when the table name is set to "service-simplicite" (and the configuration details are stored as JSON in the search spec)- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.simplicite.util.ObjectDB
ObjectDB.SearchCallback<T>
-
-
Field Summary
-
Fields inherited from class com.simplicite.util.ScriptedObjectDB
SCRIPTED_HOOKS
-
Fields inherited from class com.simplicite.util.ObjectCore
CONTEXT_ACTION, CONTEXT_AGENDA, CONTEXT_ASSOCIATE, CONTEXT_COPY, CONTEXT_CREATE, CONTEXT_CROSSTAB, CONTEXT_DATAMAPSELECT, CONTEXT_DELETE, CONTEXT_EXPORT, CONTEXT_IMPORT, CONTEXT_LIST, CONTEXT_NONE, CONTEXT_PANELLIST, CONTEXT_PLACEMAP, CONTEXT_POSTVALIDATE, CONTEXT_PREVALIDATE, CONTEXT_PRINTTMPL, CONTEXT_REFSELECT, CONTEXT_SEARCH, CONTEXT_STATETRANSITION, CONTEXT_UPDATE, CONTEXT_UPDATEALL, DB_DERBY, DB_H2, DB_HSQLDB, DB_MSSQL, DB_MYSQL, DB_ORACLE, DB_POSTGRESQL, DB_UNKNOWN, DEL_CASCAD, DEL_IGNORE, DEL_NULL, DEL_RESTRICT, FORM_LAYOUT_COMPACT, FORM_LAYOUT_DEFAULT, LIST_EDIT_ADD, LIST_EDIT_ROWS, LIST_EDIT_UPSERT, PREDEF_SEARCH_NONE, PREDEF_SEARCH_ONLIST, PREDEF_SEARCH_USE_EDIT, PREDEF_SEARCH_USE_ONLY, SEARCH_DIALOG, SEARCH_DOCK, SEARCH_HIDE, SEARCH_LIST, TIMESTAMP_BLOKING, TIMESTAMP_NON_BLOKING, TIMESTAMP_NONE, TIMESTAMP_OPTIMISTIC, TYPE_QUERY, TYPE_SERVICE, TYPE_SERVICE_LDAP, TYPE_SERVICE_MONGODB, TYPE_SERVICE_OPENDATASOFT, TYPE_SERVICE_REST, TYPE_SERVICE_SALESFORCE, TYPE_SERVICE_SERVICENOW, TYPE_SERVICE_SIMPLICITE, VIEW_MODE_ACCORDION, VIEW_MODE_COLLAPSED, VIEW_MODE_EXTENDED, VIEW_MODE_TABS, VIEW_MODE_TABS_VERTICAL
-
-
Constructor Summary
Constructors Constructor Description ObjectServiceSimplicite()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
actionService(Action action)
Action servicelong
countService()
Count servicejava.lang.String
createService()
Create serviceDocumentDB
dbdocService(java.lang.String rowId, java.lang.String fieldName)
Document servicejava.lang.String
deleteService()
Delete servicevoid
initAgenda(Agenda agenda)
Hook to init an agendavoid
initAssociate(ObjectDB parent)
Hook to init the associationvoid
initCopy()
Hook to init the copyvoid
initCreate()
Hook to init the creationvoid
initCrosstab(java.lang.String crosstabName)
Hook to init a pivot tablevoid
initDataMapSelect(java.lang.String dataMapName, ObjectDB parent)
Hook to init the data mapping selectionvoid
initDelete()
Hook to init the Delete before delete dialogvoid
initExport()
Hook to init the Export before export dialogvoid
initList(ObjectDB parent)
Hook to init the listvoid
initPlaceMap(PlaceMap placemap)
Hook to init a place mapvoid
initPrintTemplate(java.lang.String printTemplateName)
Hook to init a publication templatevoid
initRefSelect(ObjectDB parent)
Hook to init the reference selectionvoid
initSearch()
Hook to init the searchvoid
initUpdate()
Hook to init the updatevoid
initUpdateAll()
Hook to init the blulk updatevoid
loadServiceConfig()
Load configuration hookjava.util.List<java.lang.String[]>
searchService(boolean pagine)
Search serviceboolean
selectService(java.lang.String rowId, boolean copy)
Select itemjava.lang.String
updateService()
Update service-
Methods inherited from class com.simplicite.util.ObjectService
actionService, indexSearchService, load, pingService, printService, serviceConfig
-
Methods inherited from class com.simplicite.util.ScriptedObjectDB
applyConstraints, applyFieldConstraints, applyObjectConstraints, applyStaticConstraints, applyTargetConstraints, canCreateOnLink, canFollowLink, canReference, canUpdateAll, checkExpression, checkObjectPropConstraints, customAlert, docuSign, evalExpression, fieldCompletion, getAgendaDay, getAgendaLabel, getAgendaSelector, getAgendaValue, getAgendaWeek, getCount, getCtxHelp, getDeadlineDate, getEmailRecipientType, getExportFileName, getGroupEmailRecipientType, getHelp, getImage, getImage, getImageTree, getMappedExportPath, getMappedFilePath, getPredefinedSearches, getSocialShareData, getStyle, getStyle, getStyleTree, getTargetObject, getUserKeyLabel, getUserKeySearch, initAction, initTimesheet, invokeAction, invokeCallback, invokeCallback, invokeMethod, invokePrint, isActionEnable, isCopyEnable, isCreateEnable, isCrosstabEnable, isDeleteEnable, isExportAllowed, isHistoric, isMergeEnable, isMergeMaster, isOpenEnable, isPrintTemplateEnable, isStateTransitionEnable, isUndoable, isUpdateEnable, postAlert, postCreate, postCrosstabSearch, postDelete, postDeleteAll, postExport, postImport, postLoad, postObjectSearch, postRedo, postSave, postSavePredefinedSearch, postSaveTimesheet, postSearch, postSearchRow, postSelect, postUndo, postUpdate, postUpdateAll, postUpdateAll, postValidate, postValidateSearch, preAlert, preCount, preCreate, preCrosstabSearch, preDelete, preDeleteAll, preExport, preImport, preObjectSearch, preRedo, preSave, preSavePredefinedSearch, preSaveTimesheet, preSearch, preSelect, preStateTransition, preUndo, preUpdate, preUpdateAll, preUpdateAll, preValidate, preValidateSearch, printed, spamEmail, spamGroup, unitTests
-
Methods inherited from class com.simplicite.util.ObjectDB
addLink, addLinkMetaObject, buildTreeList, canUpdateAllEnum, checkCreateConstraints, checkCreateVisibilities, checkDelete, checkDeleteConstraints, checkDeleteVisibilities, checkUpdateConstraints, checkUpdateVisibilities, clear, completeForeignKeys, completeForeignKeys, count, create, del, delete, delete, deleteTree, editTemplateUsage, evalCalculatedFields, evalCalculatedFields, evalNextRowId, evalObjectCalculatedFields, getAlert, getConsole, getCount, getCountGroupBy, getDirectURL, getFieldDefaultValue, getFileName, getFilePath, getFirstRowId, getInterface, getLastRowId, getNextRowId, getParentObject, getPreviousRowId, getQuery, getRefCalc, getRefCount, getSearchSpec, getStyle, getTool, getUserKeyList, hasFieldConstraints, hasTargetConstraints, init, initFromTable, insertTree, invokeAction, invokeAction, invokeAction, invokePrint, javascript, load, makeTree, merge, merge, populate, populate, populate, populateForeignKey, populateForeignKey, populateForeignKey, postAssociate, preAssociate, preLoad, prepareActionURL, redirect, resetParentContext, save, save, search, search, search, search, searchCrosstab, searchExport, searchExport, searchGroupBy, searchGroupBy, searchRowId, searchRowId, select, select, select, selectWithoutFilters, selectWithoutFilters, sendJavaScript, sendRedirect, setConsole, setConstraint, storeParentContext, storeParentContext, toCSV, toCSV, toTSV, toTSV, toXML, update, update, validate, validate, validateSearch
-
Methods inherited from class com.simplicite.util.ObjectCore
addAgenda, addCrosstab, addDataMap, addDefaultValues, addLinkDataMap, addListOperationField, addMenuListField, addMenuTrayField, addPlaceMap, addPredefinedSearch, addPrintTemplate, addReflexiveLink, addResource, addScript, addSharedScript, addTimesheet, buildInsertSQL, canClose, canCopy, canCreateOnLinks, canDeleteAll, canExport, canExportTimestamp, canFollowLink, canFollowLinks, canGroupByFields, canListAccessNewForm, canListAccessNewLine, canListAccessNewLoop, canPreview, canPrint, canSave, canSaveAndClose, canSaveAndCopy, canSaveAndNew, canSelectRow, canUpdateAll, clearMenuTrayFields, convertFilterToService, convertGuiToService, convertServiceToFilter, convertServiceToGui, destroy, enableGC, evalExpression, evalExpression, evalExpression, evalInputDisplayOldValue, evalInputDisplayValue, evalInputOldValue, evalInputValue, filtersToJson, freeListTree, garbageCollection, genAction, genCommonActions, getAction, getActions, getAgenda, getAgendas, getAlias, getBooleanParameter, getCacheFrom, getCacheKey, getCacheSelect, getClassName, getCode, getCodes, getConfig, getConfirmField, getConfirmFieldValue, getContext, getContextTitle, getCopyId, getCreatedBy, getCreatedDate, getCrosstab, getCrosstabs, getCtxHelps, getCurrentAction, getCurrentItem, getCurrentList, getCurrentPage, getCurrentPos, getCurrentRowId, getCurrentTransition, getCurrentView, getData, getDataMap, getDataSource, getDataSourceVendor, getDbField, getDBField, getDbIndex, getDBIndex, getDBName, getDefaultLink, getDefaultSearchSpec, getDesc, getDisplay, getDisplay, getDisplay, getDisplayFromDB, getDocFields, getDoubleParameter, getEndDateField, getField, getField, getField, getFieldArea, getFieldArea, getFieldAreas, getFieldAtIndex, getFieldByObjectFieldId, getFieldByTranslation, getFieldDisplayOldValue, getFieldDisplayOldValue, getFieldDisplayValue, getFieldDisplayValue, getFieldDisplayValue, getFieldFilter, getFieldFromColumn, getFieldFromColumn, getFieldIndex, getFieldIndex, getFieldOldValue, getFieldOldValue, getFieldOrder, getFields, getFields, getFieldsByType, getFieldsDocument, getFieldValue, getFieldValue, getFieldValue, getFieldValues, getFieldValues, getFilters, getFilters, getFlagParameter, getFloatParameter, getFonctId, getForeignKeys, getFormLayout, getFullInput, getFullInput, getFullInputIndex, getFullInputIndex, getFunctId, getGrant, getGroupByFields, getHistoricDBName, getHistoricName, getIconCode, getId, getImageField, getIndex, getIndex, getInheritedObjects, getInput, getInput, getInputAtIndex, getInputIndex, getInputIndex, getInstanceName, getIntParameter, getLabel, getLastUpdatedBy, getLastUpdatedDate, getLink, getLinkDataMap, getLinks, getListEditMode, getListOperationFields, getListSearchMode, getListSize, getListTree, getLock, getLongParameter, getMaxPage, getMaxRows, getMenuListFields, getMenuSearch, getMenuTrayFields, getMinRows, getModuleId, getModuleId, getModuleIdByName, getModuleName, getName, getNotification, getNotifications, getObjectId, getObjectLocation, getObjectName, getObjectParameter, getObjectTable, getOldStatus, getOldValues, getOldValues, getPageSize, getParameter, getParameter, getParameters, getParentField, getParentIdx, getParentObjectRefField, getParentValues, getPlaceMap, getPlaceMaps, getPluralDisplay, getPluralLabel, getPredefinedSearch, getPredefinedSearch, getPredefinedSearch, getPredefinedSearchIndex, getPredefinedSearchIndex, getPredefinedSearchSelected, getPredefSearch, getPrintTemplate, getPrintTemplates, getRefField, getRefFields, getReflexiveLink, getReflexiveLinks, getRefObjects, getResource, getResources, getRootField, getRowId, getRowId, getRowIdField, getRowIdFieldIndex, getScript, getScriptId, getScripts, getSearchLimit, getSearchSpec, getSelectedIds, getSharedScript, getSharedScripts, getStartDateField, getStatus, getStatus, getStatusField, getStatusIndex, getTable, getTableAlias, getTemplateId, getTemplateName, getTimesheet, getTimesheets, getTitle, getTitle, getUIMiniature, getUITemplate, getUserKeyValues, getUserKeyValues, getValues, getValues, getView, getView, getViewMode, getViews, hasChanged, hasField, hasFieldType, hasFullInput, hasIndexableFields, hasInput, hasMenuDashboard, hasMenuStates, hasMenuTray, hasMoreOnForm, hasMoreOnList, hasMoreOnSearch, hasSearchLimitError, haveMore, initLists, initLists, isAgendaInstance, isAjaxInstance, isAreaVisible, isAreaVisibleOnList, isBatchInstance, isBookmark, isChildOf, isChildOf, isCopied, isCronInstance, isCustomRowId, isDataMapInstance, isDataMappedFrom, isDate, isDistinct, isExportInstance, isFieldForbidden, isFieldSearchable, isFieldUpdatable, isFieldVisible, isFieldVisibleJSON, isFiltered, isHistoricLog, isHistoricPost, isHistoricRedoLog, isHomeInstance, isIDEInstance, isIndexable, isInstanceOf, isInternalRowId, isJavaImplemented, isLimit, isListEditable, isListSearch, isListSearchVisible, isListTree, isListUpsertable, isLoaded, isMainInstance, isMergeable, isMergeInstance, isModelerInstance, isMoreForm, isMoreFormEnable, isMoreListEnable, isMoreOnForm, isMoreOnList, isMoreRows, isMoreSearch, isNew, isOrdered, isPanelInstance, isPanelOf, isPanelOf, isPredefSearch, isPredefSearchOnList, isPrintInstance, isProcessInstance, isQuerySpecific, isReadOnly, isReadOnlyFields, isRefCount, isReferencedFrom, isReferencedFrom, isRefInstance, isScripted, isServiceSpecific, isSocial, isSocialInline, isSocialPopup, isSocialShare, isSortableOnList, isTimestampBlocking, isTimestampNonBlocking, isTimestampOptimistic, isTmpInstance, isTreeviewInstance, isUIInstance, isUndoableInstance, isUnique, isUnique, isWebServiceInstance, lastUsage, listSelectAll, listSelectId, listSelectId, listSelectPage, listUnselectAll, listUnselectId, parseDataSourceName, parseTableName, prepareExpression, preparePagination, prepareSQL, removeField, removeLink, removeParameter, removeParameters, removeView, resetAllFields, resetAllFieldsRequired, resetAllFieldsSearch, resetAllFieldsSearchRequired, resetAllFieldsUpdatable, resetContextDefaultValues, resetFilter, resetFilters, resetFilters, resetFiltersOrdersAndCalcDefaults, resetGroupBy, resetOrders, resetOrders, resetRequireds, resetSearchables, resetSelectedIds, resetUpdatables, resetValues, resetValues, resetValues, resetVisibilities, selectCurrentItemFromList, selectItemFromList, setAlias, setAllFieldsUpdatable, setAreaVisibleOnList, setBookmark, setCacheFrom, setCacheSelect, setClassName, setClose, setConfig, setConfirmFieldValue, setContext, setCopy, setCopy, setCopyId, setCreateOnLinks, setCrosstabVisibility, setCtxHelp, setCtxHelps, setCurrentAction, setCurrentList, setCurrentPage, setCurrentPos, setCurrentPos, setCurrentTransition, setCurrentView, setData, setDataSource, setDataSourceVendor, setDBName, setDefaultLink, setDefaultSearchSpec, setDeleteAll, setDeleteAll, setDesc, setDisplay, setDistinct, setEndDateField, setExport, setExport, setExportTimestamp, setFieldFilter, setFieldOldValue, setFieldOrder, setFields, setFieldValue, setFilters, setFilters, setFilters, setFilters, setFilters, setFilters, setFollowLinks, setForm, setFormLayout, setFunctId, setGrant, setGroupByFields, setHaveMore, setHelp, setHistoric, setHistoricLog, setHistoricPost, setHistoricRedoLog, setIconCode, setId, setIndexable, setInheritedObject, setInstanceName, setLabel, setLimit, setListAccessNewForm, setListAccessNewLine, setListAccessNewLine, setListEdit, setListEdit, setListEditable, setListEditable, setListEditMode, setListSearch, setListSearchMode, setListSearchVisible, setListSize, setListTree, setListUpsertable, setMaxPage, setMaxRows, setMenuDashboard, setMenuSearch, setMenuStates, setMenuTray, setMergeable, setMergeable, setMinRows, setModuleId, setModuleName, setMoreForm, setMoreOnForm, setMoreOnList, setMoreRows, setMoreSearch, setName, setOldValues, setOldValues, setOldValues, setPageSize, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParentObject, setParentObjectRefField, setParentValues, setPluralDisplay, setPluralLabel, setPredefinedSearchIndex, setPredefSearch, setPredefSearch, setPredefSearch, setPredefSearchOnList, setPrint, setPrintTemplateVisibility, setQuerySpecific, setQuerySpecific, setReadOnly, setRefCount, setRowId, setSave, setSaveAndClose, setSaveAndCopy, setSaveAndNew, setScriptId, setSearchCreatedBy, setSearchCreatedDate, setSearchLimit, setSearchLimitError, setSearchSpec, setSearchSpec, setSearchUpdatedBy, setSearchUpdatedDate, setSelectedIds, setSelectedIds, setSelectRow, setServiceSpecific, setServiceSpecific, setSocial, setSocial, setSortableOnList, setStartDateField, setStatus, setStatus, setStatus, setStatusField, setTable, setTimestamp, setTitle, setUIMiniature, setUITemplate, setUpdateAll, setUpdateAll, setUserKeyValues, setUserKeyValues, setValues, setValues, setValues, setValues, setValues, setValues, setValues, setValues, setValuesFromJSONObject, setValuesFromJSONObject, setViewMode, testData, testData, toHTML, toHTML, toHTML, toJSON, toJSON, toJSON, toJSON, toJSON, toJSON, toJSON, toJSON, toJSONArray, toJSONObject, toJSONObject, toJSONObject, toString, toString, useForm, useLimit, useTimestamp, useTimeStamp
-
-
-
-
Method Detail
-
loadServiceConfig
public void loadServiceConfig()
Load configuration hook- Overrides:
loadServiceConfig
in classObjectService
-
countService
public final long countService()
Description copied from class:ObjectService
Count service- Overrides:
countService
in classObjectService
- Returns:
- Count
-
searchService
public final java.util.List<java.lang.String[]> searchService(boolean pagine)
Description copied from class:ObjectService
Search service- Overrides:
searchService
in classObjectService
- Parameters:
pagine
- Pagine?- Returns:
- List of rows
-
selectService
public final boolean selectService(java.lang.String rowId, boolean copy)
Description copied from class:ObjectService
Select item- Overrides:
selectService
in classObjectService
- Parameters:
rowId
- Row IDcopy
- For copy?- Returns:
- True if item was found
-
dbdocService
public DocumentDB dbdocService(java.lang.String rowId, java.lang.String fieldName)
Description copied from class:ObjectService
Document service- Overrides:
dbdocService
in classObjectService
- Parameters:
rowId
- Row IDfieldName
- Document field ID- Returns:
- Document or null
-
createService
public final java.lang.String createService()
Description copied from class:ObjectService
Create service- Overrides:
createService
in classObjectService
- Returns:
- Error message or null
-
updateService
public final java.lang.String updateService()
Description copied from class:ObjectService
Update service- Overrides:
updateService
in classObjectService
- Returns:
- Error message or null
-
deleteService
public final java.lang.String deleteService()
Description copied from class:ObjectService
Delete service- Overrides:
deleteService
in classObjectService
- Returns:
- Error message or null
-
actionService
public final java.lang.Object actionService(Action action)
Description copied from class:ObjectService
Action service- Overrides:
actionService
in classObjectService
- Parameters:
action
- Action- Returns:
- Action result or error message
-
initSearch
public void initSearch()
Description copied from class:ObjectDB
Hook to init the search- Overrides:
initSearch
in classScriptedObjectDB
-
initList
public void initList(ObjectDB parent)
Description copied from class:ObjectDB
Hook to init the list- Overrides:
initList
in classScriptedObjectDB
- Parameters:
parent
- Optional parent object
-
initCreate
public void initCreate()
Description copied from class:ObjectDB
Hook to init the creation- Overrides:
initCreate
in classScriptedObjectDB
-
initCopy
public void initCopy()
Description copied from class:ObjectDB
Hook to init the copy- Overrides:
initCopy
in classScriptedObjectDB
-
initUpdate
public void initUpdate()
Description copied from class:ObjectDB
Hook to init the update- Overrides:
initUpdate
in classScriptedObjectDB
-
initDelete
public void initDelete()
Description copied from class:ObjectDB
Hook to init the Delete before delete dialog- Overrides:
initDelete
in classScriptedObjectDB
-
initRefSelect
public void initRefSelect(ObjectDB parent)
Description copied from class:ObjectDB
Hook to init the reference selection- Overrides:
initRefSelect
in classScriptedObjectDB
- Parameters:
parent
- Parent object (from which selection is made)
-
initDataMapSelect
public void initDataMapSelect(java.lang.String dataMapName, ObjectDB parent)
Description copied from class:ObjectDB
Hook to init the data mapping selection- Overrides:
initDataMapSelect
in classScriptedObjectDB
- Parameters:
dataMapName
- Data mapping nameparent
- Parent object (from which selection is made)
-
initUpdateAll
public void initUpdateAll()
Description copied from class:ObjectDB
Hook to init the blulk update- Overrides:
initUpdateAll
in classObjectDB
-
initAssociate
public void initAssociate(ObjectDB parent)
Description copied from class:ObjectDB
Hook to init the association- Overrides:
initAssociate
in classScriptedObjectDB
- Parameters:
parent
- Parent object (from which association is made)
-
initPrintTemplate
public void initPrintTemplate(java.lang.String printTemplateName)
Description copied from class:ObjectDB
Hook to init a publication template- Overrides:
initPrintTemplate
in classScriptedObjectDB
- Parameters:
printTemplateName
- Publication template name
-
initCrosstab
public void initCrosstab(java.lang.String crosstabName)
Description copied from class:ObjectDB
Hook to init a pivot table- Overrides:
initCrosstab
in classScriptedObjectDB
- Parameters:
crosstabName
- Pivot table name
-
initAgenda
public void initAgenda(Agenda agenda)
Description copied from class:ObjectDB
Hook to init an agenda- Overrides:
initAgenda
in classScriptedObjectDB
- Parameters:
agenda
- Agenda
-
initPlaceMap
public void initPlaceMap(PlaceMap placemap)
Description copied from class:ObjectDB
Hook to init a place map- Overrides:
initPlaceMap
in classScriptedObjectDB
- Parameters:
placemap
- Place map
-
initExport
public void initExport()
Description copied from class:ObjectDB
Hook to init the Export before export dialog- Overrides:
initExport
in classScriptedObjectDB
-
-