public class NotePropertyAccessor extends ObjectPropertyAccessor<Note,NoteProperty>
| Modifier | Constructor and Description |
|---|---|
protected |
NotePropertyAccessor(EventDispatcher eventDispatcher)
Don't construct it from the outside packages.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertReadAccess(Note note)
Asserts valid read access for the given object.
|
protected void |
assertWriteAccess(Note note)
Method to assert, that the current user has write access to the given object.
|
protected Long |
getObjectId(Note object) |
PropertyType |
getPropertyType() |
protected NoteProperty |
handleCreateNewProperty(Note note)
Create a new property and associate it with the object
|
protected Note |
load(Long id) |
handleGetObjectPropertyUnfiltered, handleRemoveObjectPropertygetAllObjectProperties, handleGetAllObjectProperties, setObjectProperties, setPropertyValueaddToFilterDefinition, assertLoadObject, assertValidForCreateAndUpdate, getFilterDefintion, getGlobalObjectProperty, getObjectProperty, getObjectPropertyUnfiltered, handleSetObjectProperty, handleSetObjectPropertyUnfiltered, removeFromFilterDefinition, removeObjectProperty, setGlobalObjectProperty, setObjectProperty, setObjectPropertyUnfilteredprotected NotePropertyAccessor(EventDispatcher eventDispatcher)
eventDispatcher - the event dispatcher to use for firing eventsprotected void assertReadAccess(Note note) throws AuthorizationException
assertReadAccess in class PropertyAccessor<Note,NoteProperty,String>note - The object.AuthorizationException - Thrown, when the read access to the object was denied.protected void assertWriteAccess(Note note) throws AuthorizationException
Checks, that the current user is the notes author.
assertWriteAccess in class PropertyAccessor<Note,NoteProperty,String>note - 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(Note object)
getObjectId in class PropertyAccessor<Note,NoteProperty,String>object - the object the property is / will be assigned topublic PropertyType getPropertyType()
getPropertyType in class PropertyAccessor<Note,NoteProperty,String>protected NoteProperty handleCreateNewProperty(Note note)
handleCreateNewProperty in class PropertyAccessor<Note,NoteProperty,String>note - the object to add a new property toprotected Note load(Long id)
load in class PropertyAccessor<Note,NoteProperty,String>id - the id of the objectCopyright © 2019 Communote team. All rights reserved.