public class ExternalObjectPropertyAccessor extends ObjectPropertyAccessor<ExternalObject,ExternalObjectProperty>
PropertyManagement
Modifier | Constructor and Description |
---|---|
protected |
ExternalObjectPropertyAccessor(EventDispatcher eventDispatcher)
Don't construct it from the outside packages.
|
Modifier and Type | Method and Description |
---|---|
protected void |
assertReadAccess(ExternalObject externalObject)
Asserts valid read access for the given object.
|
protected void |
assertWriteAccess(ExternalObject object)
Method to assert, that the current user has write access to the given object.
|
protected Long |
getObjectId(ExternalObject object) |
PropertyType |
getPropertyType() |
protected ExternalObjectProperty |
handleCreateNewProperty(ExternalObject externalObject)
Create a new property and associate it with the object
|
protected ExternalObject |
load(Long id) |
handleGetObjectPropertyUnfiltered, handleRemoveObjectProperty
getAllObjectProperties, handleGetAllObjectProperties, setObjectProperties, setPropertyValue
addToFilterDefinition, assertLoadObject, assertValidForCreateAndUpdate, getFilterDefintion, getGlobalObjectProperty, getObjectProperty, getObjectPropertyUnfiltered, handleSetObjectProperty, handleSetObjectPropertyUnfiltered, removeFromFilterDefinition, removeObjectProperty, setGlobalObjectProperty, setObjectProperty, setObjectPropertyUnfiltered
protected ExternalObjectPropertyAccessor(EventDispatcher eventDispatcher)
eventDispatcher
- the event dispatcher to use for firing eventsprotected void assertReadAccess(ExternalObject externalObject)
assertReadAccess
in class PropertyAccessor<ExternalObject,ExternalObjectProperty,String>
externalObject
- The object.protected void assertWriteAccess(ExternalObject object) throws AuthorizationException
assertWriteAccess
in class PropertyAccessor<ExternalObject,ExternalObjectProperty,String>
object
- The object to assert write access for.AuthorizationException
- Thrown, when the current user is not allowed to write to the given object.protected Long getObjectId(ExternalObject object)
getObjectId
in class PropertyAccessor<ExternalObject,ExternalObjectProperty,String>
object
- the object the property is / will be assigned topublic PropertyType getPropertyType()
getPropertyType
in class PropertyAccessor<ExternalObject,ExternalObjectProperty,String>
protected ExternalObjectProperty handleCreateNewProperty(ExternalObject externalObject)
handleCreateNewProperty
in class PropertyAccessor<ExternalObject,ExternalObjectProperty,String>
externalObject
- the object to add a new property toprotected ExternalObject load(Long id)
load
in class PropertyAccessor<ExternalObject,ExternalObjectProperty,String>
id
- the id of the objectCopyright © 2019 Communote team. All rights reserved.