Class CmsWrapperUtils


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

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static CmsEntityAttributeWrapper[] arrayFromEntityAttributeList​(java.util.List<org.opencms.acacia.shared.CmsEntityAttribute> attributes)
      Creates an array of entity attribute wrappers for a list of entity attributes.
      static CmsEntityWrapper[] arrayFromEntityList​(java.util.List<org.opencms.acacia.shared.CmsEntity> entities)
      Creates an array of entity wrappers for a list of entities.
      static java.lang.String[] arrayFromStringList​(java.util.List<java.lang.String> strings)
      Converts a list of strings to an array.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • arrayFromEntityAttributeList

        public static CmsEntityAttributeWrapper[] arrayFromEntityAttributeList​(java.util.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​(java.util.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 java.lang.String[] arrayFromStringList​(java.util.List<java.lang.String> strings)
        Converts a list of strings to an array.

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