@Role
@Unstable
public interface LiveDataPropertyDescriptorStore
Modifier and Type | Method and Description |
---|---|
Collection<LiveDataPropertyDescriptor> |
get() |
default Optional<LiveDataPropertyDescriptor> |
get(String propertyId) |
default Optional<LiveDataPropertyDescriptor> |
remove(String propertyId)
Removes the specified property descriptor.
|
default boolean |
save(LiveDataPropertyDescriptor propertyDescriptor)
Adds a new property descriptor or updates an existing one.
|
default Optional<LiveDataPropertyDescriptor> get(String propertyId) throws LiveDataException
propertyId
- identifies the property whose descriptor to returnLiveDataException
- if retrieving the property descriptor failsCollection<LiveDataPropertyDescriptor> get() throws LiveDataException
LiveDataException
- if retrieving the property descriptors failsdefault boolean save(LiveDataPropertyDescriptor propertyDescriptor) throws LiveDataException
propertyDescriptor
- the property descriptor to savetrue
if the property descriptor was saved, false
otherwiseLiveDataException
- if saving the property descriptor failsdefault Optional<LiveDataPropertyDescriptor> remove(String propertyId) throws LiveDataException
propertyId
- identifies the property whose descriptor to removeLiveDataException
- if removing the property descriptor failsCopyright © 2004–2022 XWiki. All rights reserved.