Package com.storedobject.core
Interface ObjectSetter<T extends StoredObject>
- Type Parameters:
T
- Type of object accepted.
- All Superinterfaces:
Consumer<T>
- All Known Subinterfaces:
AbstractObjectInput<T>
,DelegatedIdInput<T>
,DelegatedObjectInput<T>
,IdInput<T>
,ItemInput<T>
,ObjectGridData<T,
,ROOT> ObjectInput<T>
,ObjectsSetter<T>
- All Known Implementing Classes:
AbstractCheckListForestBrowser
,AbstractInvoiceBrowser
,AbstractInvoiceEditor
,AbstractLinkGrid
,AbstractObjectField
,AbstractObjectForest
,AbstractReceiveMaterialReturned
,AbstractReceiveMaterialTransferred
,AbstractRequestMaterial
,AbstractReturnMaterial
,AbstractSale
,AbstractSendAndReceiveMaterial
,AbstractTextContentEditor
,AccountField
,ApplicationModuleEditor
,ApproveTransaction
,AssemblyItemField
,AssignStoresAndLocations
,BaseCustomerInvoiceBrowser
,BaseCustomerInvoiceEditor
,BaseObjectForest
,BaseProcessMaterialRequest
,BaseReceiveMaterialRequested
,BaseRequestMaterial
,BaseSupplierInvoiceBrowser
,BaseSupplierInvoiceEditor
,BinField
,BlockComboField
,BrowserDeviceLayoutEditor
,CheckListForestBrowser
,ControlScheduleEditor
,CrossServerManager
,CustomerInvoiceBrowser
,CustomerInvoiceEditor
,DataView
,DetailLinkGrid
,EditableObjectGrid
,EntityEditor
,EntityRoleEditor
,FileField
,FileManager
,FileViewer
,FileViewerGrid
,FlowDiagramEditor
,GRN
,GRNEditor
,GroupPermissionEditor
,ItemComboField
,ItemField
,ItemGetField
,ItemsSentForRepair
,ItemTypeEditor
,ItemTypeGetField
,JavaClassEditor
,JournalVoucherBrowser
,JournalVoucherEditor
,LocationField
,LocationMonitoring
,ManageBiometric
,ManageExternalUsers
,ManageMailSenders
,ManageMailSenders.ManageGMailSenders
,MediaFileEditor
,MemoSystem
,MemoSystem.MemoEditor
,MemoTypeEditor
,MessageEditor
,MQTTEditor
,ObjectBrowser
,ObjectBrowserEditor
,ObjectBrowserViewer
,ObjectCodeField
,ObjectComboField
,ObjectEditor
,ObjectField
,ObjectForest
,ObjectForestBrowser
,ObjectForestEditor
,ObjectForestViewer
,ObjectFormField
,ObjectGetField
,ObjectGrid
,ObjectLinkField
,ObjectListEditor
,ObjectListField
,ObjectSearchBrowser
,ObjectSearcherField
,ObjectSearchField
,ObjectTree
,ObjectTreeBrowser
,ObjectTreeEditor
,ObjectTreeViewer
,ObjectViewer
,PackingUnitBrowser
,PackingUnitEditor
,PermissionEditor
,PersonRoleEditor
,POBrowser
,POEditor
,POItemBrowser
,POItemEditor
,ProcessingLanguageEditor
,ProcessMaterialRequest
,ReceiveMaterialRequested
,ReceiveMaterialReturned
,ReceiveMaterialTransferred
,ReferenceLinkGrid
,ReportDefinitionEditor
,ReportEditor
,RequestMaterial
,RequestTool
,RestrictedSystemUserBrowser
,ReturnMaterial
,ReturnTool
,Sale
,SendItemsForRepair
,SerialConfiguratorEditor
,SerialPatternEditor
,SetPasswordPolicy
,SMSMessageEditor
,SteppedObjectForm
,SupplierInvoiceBrowser
,SupplierInvoiceEditor
,SupportSystem
,SystemUserEditor
,SystemUserGroupBrowser
,TableDefinitionEditor
,TemplateBrowser
,TemplateEditor
,TextContentBrowser
,TextContentEditor
,ToolMonitoring
,TransferMaterial
,UnitDefinitionBrowser
,UserField
,UserPermissionEditor
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Denotes consumer of an object.
- Author:
- Syam
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
Default implementation of theConsumer
interface - it invokessetObject(StoredObject)
.Class of the object accepted.default boolean
Check whether it allows objects of derived classes or not.default void
Set the object by specifying itsId
.void
Set the object.
-
Method Details
-
setObject
-
accept
Default implementation of theConsumer
interface - it invokessetObject(StoredObject)
.- Specified by:
accept
in interfaceConsumer<T extends StoredObject>
- Parameters:
object
- Object to set.
-
setObject
Set the object by specifying itsId
. The default implementation tries to retrieve the object from the database and invokessetObject(StoredObject)
.- Parameters:
objectId
-Id
of the object to set.
-
getObjectClass
-
isAllowAny
default boolean isAllowAny()Check whether it allows objects of derived classes or not. The default implementation returnsfalse
.- Returns:
- True/false.
-