Class FeatureAPIImpl

  • All Implemented Interfaces:
    net.anotheria.anoplass.api.API, FeatureAPI

    public class FeatureAPIImpl
    extends net.anotheria.anoplass.api.AbstractAPIImpl
    implements FeatureAPI
    FeatureAPI implementation.
    Since:
    12.07.14 20:40
    Author:
    lrosenberg
    • Field Summary

      • Fields inherited from class net.anotheria.anoplass.api.AbstractAPIImpl

        DAY, HOUR, log, MINUTE
    • Constructor Summary

      Constructors 
      Constructor Description
      FeatureAPIImpl()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void deInit()  
      void init()  
      boolean isFeatureActive​(String name)
      Checks if feature with specified name is active.
      • Methods inherited from class net.anotheria.anoplass.api.AbstractAPIImpl

        addValidationError, addValidationError, checkValidationAndThrowException, getApiConfig, getAttributeFromSession, getCallContext, getCurrentLocale, getCurrentUserId, getDefaultExpirePeriodForAttribute, getExpirePeriodForAttribute, getLoggedInUserId, getPrivateAttributeName, getSession, removeAttributeFromSession, setAttributeInSession, setAttributeInSession, setAttributeInSession, setAttributeInSession
    • Constructor Detail

      • FeatureAPIImpl

        public FeatureAPIImpl()
    • Method Detail

      • isFeatureActive

        public boolean isFeatureActive​(String name)
                                throws net.anotheria.anoplass.api.APIException
        Description copied from interface: FeatureAPI
        Checks if feature with specified name is active.
        Specified by:
        isFeatureActive in interface FeatureAPI
        Parameters:
        name - name of feature
        Returns:
        true if feature is active, false - otherwise
        Throws:
        net.anotheria.anoplass.api.APIException - if any errors occurs
      • init

        public void init()
                  throws net.anotheria.anoplass.api.APIInitException
        Specified by:
        init in interface net.anotheria.anoplass.api.API
        Overrides:
        init in class net.anotheria.anoplass.api.AbstractAPIImpl
        Throws:
        net.anotheria.anoplass.api.APIInitException
      • deInit

        public void deInit()
        Specified by:
        deInit in interface net.anotheria.anoplass.api.API
        Overrides:
        deInit in class net.anotheria.anoplass.api.AbstractAPIImpl