O
- the object having the propertiesP
- the type of property to handlepublic abstract class StringPropertyAccessor<O extends Propertyable,P extends StringProperty> extends PropertyAccessor<O,P,String>
Constructor and Description |
---|
StringPropertyAccessor(EventDispatcher eventDispatcher) |
Modifier and Type | Method and Description |
---|---|
Set<StringPropertyTO> |
getAllObjectProperties(Long objectId)
Get all properties of the object.
|
protected Set<StringPropertyTO> |
handleGetAllObjectProperties(O object)
Get all properties of the object.
|
void |
setObjectProperties(Long objectId,
Set<StringPropertyTO> properties)
Sets an set of properties.
|
protected void |
setPropertyValue(P property,
String value) |
addToFilterDefinition, assertLoadObject, assertReadAccess, assertValidForCreateAndUpdate, assertWriteAccess, getFilterDefintion, getGlobalObjectProperty, getObjectId, getObjectProperty, getObjectPropertyUnfiltered, getPropertyType, handleCreateNewProperty, handleGetObjectPropertyUnfiltered, handleRemoveObjectProperty, handleSetObjectProperty, handleSetObjectPropertyUnfiltered, load, removeFromFilterDefinition, removeObjectProperty, setGlobalObjectProperty, setObjectProperty, setObjectPropertyUnfiltered
public StringPropertyAccessor(EventDispatcher eventDispatcher)
eventDispatcher
- the event dispatcher for dispatching event on property changespublic Set<StringPropertyTO> getAllObjectProperties(Long objectId) throws NotFoundException, AuthorizationException
objectId
- the ID of the objectNotFoundException
- in case the object does not existAuthorizationException
- in case the user is not allowed to access the properties of the objectprotected Set<StringPropertyTO> handleGetAllObjectProperties(O object) throws AuthorizationException
object
- the objectAuthorizationException
- in case the user is not allowed to access the properties of the objectpublic void setObjectProperties(Long objectId, Set<StringPropertyTO> properties) throws AuthorizationException, NotFoundException
objectId
- the id of the object to get the property ofproperties
- set of properties to set for object.AuthorizationException
- Thrown, when the user is not allowed to access.NotFoundException
- in case there is not object to the given id.protected void setPropertyValue(P property, String value)
setPropertyValue
in class PropertyAccessor<O extends Propertyable,P extends StringProperty,String>
property
- The property.value
- The value.Copyright © 2019 Communote team. All rights reserved.