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