Interface GroupConfigurationProvider

    • Method Detail

      • getGroupConfigurations

        java.util.Collection<GroupConfiguration> getGroupConfigurations()
        Gets all groups that are registered in the cloud
        Returns:
        a list containing the group configurations of all groups
      • getGroupConfiguration

        GroupConfiguration getGroupConfiguration​(java.lang.String name)
        Gets a specific group by its name
        Parameters:
        name - the name of the group
        Returns:
        the group or null if no group with that name exists
      • isGroupConfigurationPresent

        boolean isGroupConfigurationPresent​(java.lang.String name)
        Checks whether the group with a specific name exists
        Parameters:
        name - the name of the group
        Returns:
        true if the group exists or false otherwise
      • addGroupConfiguration

        void addGroupConfiguration​(GroupConfiguration groupConfiguration)
        Adds a new group to the cloud
        Parameters:
        groupConfiguration - the group to be added
      • removeGroupConfiguration

        void removeGroupConfiguration​(java.lang.String name)
        Removes a group from the cloud
        Parameters:
        name - the name of the group to be removed
      • removeGroupConfiguration

        void removeGroupConfiguration​(GroupConfiguration groupConfiguration)
        Removes a group from the cloud
        Parameters:
        groupConfiguration - the group to be removed (the only thing that matters in this object is the name, the rest is ignored)
      • getGroupConfigurationsAsync

        ITask<java.util.Collection<GroupConfiguration>> getGroupConfigurationsAsync()
        Gets all groups that are registered in the cloud
        Returns:
        a list containing the group configurations of all groups
      • getGroupConfigurationAsync

        ITask<GroupConfiguration> getGroupConfigurationAsync​(java.lang.String name)
        Gets a specific group by its name
        Parameters:
        name - the name of the group
        Returns:
        the group or null if no group with that name exists
      • isGroupConfigurationPresentAsync

        ITask<java.lang.Boolean> isGroupConfigurationPresentAsync​(java.lang.String name)
        Checks whether the group with a specific name exists
        Parameters:
        name - the name of the group
        Returns:
        true if the group exists or false otherwise
      • addGroupConfigurationAsync

        ITask<java.lang.Void> addGroupConfigurationAsync​(GroupConfiguration groupConfiguration)
        Adds a new group to the cloud
        Parameters:
        groupConfiguration - the group to be added
      • removeGroupConfigurationAsync

        ITask<java.lang.Void> removeGroupConfigurationAsync​(java.lang.String name)
        Removes a group from the cloud
        Parameters:
        name - the name of the group to be removed
      • removeGroupConfigurationAsync

        ITask<java.lang.Void> removeGroupConfigurationAsync​(GroupConfiguration groupConfiguration)
        Removes a group from the cloud
        Parameters:
        groupConfiguration - the group to be removed (the only thing that matters in this object is the name, the rest is ignored)