public class UserPropertyAccessor extends ObjectPropertyAccessor<User,UserProperty>
PropertyManagement| Constructor and Description |
|---|
UserPropertyAccessor(EventDispatcher eventDispatcher) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertReadAccess(User object)
Asserts valid read access for the given object.
|
protected void |
assertWriteAccess(User user)
Method to assert, that the current user has write access to the given object.
|
protected Long |
getObjectId(User object) |
PropertyType |
getPropertyType() |
protected UserProperty |
handleCreateNewProperty(User user)
Create a new property and associate it with the object
|
protected User |
load(Long id) |
handleGetObjectPropertyUnfiltered, handleRemoveObjectPropertygetAllObjectProperties, handleGetAllObjectProperties, setObjectProperties, setPropertyValueaddToFilterDefinition, assertLoadObject, assertValidForCreateAndUpdate, getFilterDefintion, getGlobalObjectProperty, getObjectProperty, getObjectPropertyUnfiltered, handleSetObjectProperty, handleSetObjectPropertyUnfiltered, removeFromFilterDefinition, removeObjectProperty, setGlobalObjectProperty, setObjectProperty, setObjectPropertyUnfilteredpublic UserPropertyAccessor(EventDispatcher eventDispatcher)
eventDispatcher - the event dispatcher for dispatching event on property changesprotected void assertReadAccess(User object) throws AuthorizationException
PropertyAccessorassertReadAccess in class PropertyAccessor<User,UserProperty,String>object - The object.AuthorizationException - Thrown, when the read access to the object was denied.protected void assertWriteAccess(User user) throws AuthorizationException
Checks if the user to edit is the user itself or a client manager.
assertWriteAccess in class PropertyAccessor<User,UserProperty,String>user - 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(User object)
getObjectId in class PropertyAccessor<User,UserProperty,String>object - the object the property is / will be assigned topublic PropertyType getPropertyType()
getPropertyType in class PropertyAccessor<User,UserProperty,String>protected UserProperty handleCreateNewProperty(User user)
handleCreateNewProperty in class PropertyAccessor<User,UserProperty,String>user - the object to add a new property toprotected User load(Long id)
load in class PropertyAccessor<User,UserProperty,String>id - the id of the objectCopyright © 2019 Communote team. All rights reserved.