Class CmisUtils

    • Method Detail

      • getBooleanParameter

        public static boolean getBooleanParameter​(Boolean value,
                                                  boolean def)
        Returns the boolean value of the given value or the default value if the given value is null.
        Parameters:
        value - value
        def - default
        Returns:
        boolean
      • getStringProperty

        public static String getStringProperty​(Properties properties,
                                               String name)
        Returns the first value of a string property.
        Parameters:
        properties - property
        name - name
        Returns:
        String
      • getStringProperty

        public static String getStringProperty​(Properties properties,
                                               String name,
                                               String defaultValue)
        get String property
        Parameters:
        properties - property
        name - name
        defaultValue - default value
        Returns:
        String
      • getObjectTypeId

        public static String getObjectTypeId​(Properties properties)
        Gets the type id from a set of properties.
        Parameters:
        properties - properties
        Returns:
        type id
      • splitFilter

        public static Set<StringsplitFilter​(String filter)
        Splits a filter statement into a collection of properties. If filter is null, empty or one of the properties is '*' , an empty collection will be returned.
        Parameters:
        filter - input filters
        Returns:
        set of filters, or null if no filters