Class CmsWrapperUtils

java.lang.Object
org.opencms.acacia.client.export.CmsWrapperUtils

public final class CmsWrapperUtils extends Object
Utility class with helper methods for wrapping objects.

  • 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

      public static String[] arrayFromStringList(List<String> strings)
      Converts a list of strings to an array.

      Parameters:
      strings - the string list
      Returns:
      the array of strings