/** * Handle all unhandled set attribute requests * * @param writeAttributeResults * the result set * @param attributes * the attributes to set * @return the final result */ protected WriteAttributeResults handleUnhandledAttributes ( final WriteAttributeResults writeAttributeResults, final Map<String, Variant> attributes ) { return WriteAttributesHelper.errorUnhandled ( writeAttributeResults, attributes ); }
@Override public NotifyFuture<WriteAttributeResults> startSetAttributes ( final Map<String, Variant> attributes, final OperationParameters operationParameters ) { return new InstantFuture<WriteAttributeResults> ( WriteAttributesHelper.errorUnhandled ( null, attributes ) ); }
/** * Perform requests from the hive to update the items attributes <br> * This method actually. Reacting to attribute set requests is * implementation dependent. So you will need to subclass from * DataItemInputCommon and override this method. <br> * If you simple need a memory container that simply stores what you write * into it consider using the MemoryDataItem. <br> * If you are implementing a data item based on this item and wish to change * the data items attributes use {@link #getAttributeManager()} to get the * attribute manager which allows you so tweak the * items attributes from the side of the item implementation. */ @Override public NotifyFuture<WriteAttributeResults> startSetAttributes ( final Map<String, Variant> attributes, final OperationParameters operationParameters ) { return new InstantFuture<WriteAttributeResults> ( WriteAttributesHelper.errorUnhandled ( null, attributes ) ); }