Package org.opencms.acacia.client.export
Class CmsWrapperUtils
java.lang.Object
org.opencms.acacia.client.export.CmsWrapperUtils
Utility class with helper methods for wrapping objects.
-
Method Summary
Modifier and TypeMethodDescriptionstatic CmsEntityAttributeWrapper[]
arrayFromEntityAttributeList
(List<org.opencms.acacia.shared.CmsEntityAttribute> attributes) Creates an array of entity attribute wrappers for a list of entity attributes.static CmsEntityWrapper[]
arrayFromEntityList
(List<org.opencms.acacia.shared.CmsEntity> entities) Creates an array of entity wrappers for a list of entities.static String[]
arrayFromStringList
(List<String> strings) Converts a list of strings to an array.
-
Method Details
-
arrayFromEntityAttributeList
public static CmsEntityAttributeWrapper[] arrayFromEntityAttributeList(List<org.opencms.acacia.shared.CmsEntityAttribute> attributes) Creates an array of entity attribute wrappers for a list of entity attributes.- Parameters:
attributes
- the list of attributes- Returns:
- the array of attribute wrappers
-
arrayFromEntityList
public static CmsEntityWrapper[] arrayFromEntityList(List<org.opencms.acacia.shared.CmsEntity> entities) Creates an array of entity wrappers for a list of entities.- Parameters:
entities
- the list of entities- Returns:
- the array of entity wrappers
-
arrayFromStringList
Converts a list of strings to an array.- Parameters:
strings
- the string list- Returns:
- the array of strings
-