Interface FeatureService


  • public interface FeatureService
    Servie providing information on Flower features
    Author:
    Christopher Laszczuk
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String get​(java.lang.String name)
      Gets feature (either internal or custom) by its name
      java.util.Map<java.lang.String,​java.lang.String> getAll()
      Gets all features
      java.util.Map<java.lang.String,​java.lang.String> getAllCustom()
      Gets all custom features
      java.util.Map<InternalFeatures,​java.lang.String> getAllInternal()
      Gets all internal features
      java.lang.String getCustom​(java.lang.String name)
      Gets a custom feature
      java.lang.String getInternal​(InternalFeatures name)
      Gets an internal feature
    • Method Detail

      • getAll

        java.util.Map<java.lang.String,​java.lang.String> getAll()
                                                               throws com.flower.docs.domain.exception.TechnicalException
        Gets all features
        Returns:
        The features
        Throws:
        com.flower.docs.domain.exception.TechnicalException
        com.flower.docs.domain.exception.FunctionalException
      • get

        java.lang.String get​(java.lang.String name)
                      throws com.flower.docs.domain.exception.TechnicalException
        Gets feature (either internal or custom) by its name
        Parameters:
        name - The feature name
        Returns:
        The feature
        Throws:
        com.flower.docs.domain.exception.TechnicalException
      • getAllInternal

        java.util.Map<InternalFeatures,​java.lang.String> getAllInternal()
                                                                       throws com.flower.docs.domain.exception.TechnicalException
        Gets all internal features
        Returns:
        The internal features
        Throws:
        com.flower.docs.domain.exception.TechnicalException
        com.flower.docs.domain.exception.FunctionalException
      • getInternal

        java.lang.String getInternal​(InternalFeatures name)
                              throws com.flower.docs.domain.exception.TechnicalException
        Gets an internal feature
        Parameters:
        The - internal feature name
        Returns:
        The internal feature
        Throws:
        com.flower.docs.domain.exception.TechnicalException
        com.flower.docs.domain.exception.FunctionalException
      • getAllCustom

        java.util.Map<java.lang.String,​java.lang.String> getAllCustom()
                                                                     throws com.flower.docs.domain.exception.TechnicalException
        Gets all custom features
        Returns:
        The custom features
        Throws:
        com.flower.docs.domain.exception.TechnicalException
        com.flower.docs.domain.exception.FunctionalException
      • getCustom

        java.lang.String getCustom​(java.lang.String name)
                            throws com.flower.docs.domain.exception.TechnicalException
        Gets a custom feature
        Parameters:
        The - custom feature name
        Returns:
        The internal feature
        Throws:
        com.flower.docs.domain.exception.TechnicalException
        com.flower.docs.domain.exception.FunctionalException