Class PortalScopeWrapper

java.lang.Object
com.aquima.interactions.framework.util.PortalScopeWrapper

public class PortalScopeWrapper extends Object
Helper class for easy portal scope attribute value retrieval.
Since:
8.4
Author:
Jon van Leuven
  • Constructor Details

    • PortalScopeWrapper

      public PortalScopeWrapper(IPortalScope scope)
      Construct a PortalScopeWrapper that retieved its values from the provided portal scope
      Parameters:
      scope - May not be null.
  • Method Details

    • getRequiredStringAttribute

      public String getRequiredStringAttribute(String key)
      This method returns a String value for the requested key.
      Parameters:
      key - The requested key.
      Returns:
      The String value, never null or empty
    • getStringAttribute

      public String getStringAttribute(String key)
      This method returns a String value for the requested key.
      Parameters:
      key - The requested key.
      Returns:
      The String value, may be null or empty
    • getRequiredAttribute

      public Object getRequiredAttribute(String key)
      This method returns a value for the requested key.
      Parameters:
      key - The requested key.
      Returns:
      The value, never null
    • getAttribute

      public Object getAttribute(String key)
      This method returns a value for the requested key.
      Parameters:
      key - The requested key.
      Returns:
      The value, may be null