public final class PropertyResourceHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static Set<StringPropertyTO> |
convertPropertyResourcesToStringPropertyTOs(PropertyResource[] properties)
Get set of string properties of property resources
|
static PropertyResource[] |
convertToPropertyResources(Collection<StringPropertyTO> properties)
Converts the property TOs into an array of property resource objects
|
static void |
setProperties(Long noteId,
PropertyResource[] properties)
Set the properties of an note.
|
public static Set<StringPropertyTO> convertPropertyResourcesToStringPropertyTOs(PropertyResource[] properties)
properties - array of PropertyResourceNotePropertyTOpublic static PropertyResource[] convertToPropertyResources(Collection<StringPropertyTO> properties)
properties - collection of TOs to convertpublic static void setProperties(Long noteId, PropertyResource[] properties) throws NotFoundException, AuthorizationException
noteId - identifier of noteproperties - array of PropertyResourceNotFoundException - can not found propertyAuthorizationException - user is not allowed to access propertyCopyright © 2019 Communote team. All rights reserved.