Class ServiceInterfaceConfig


  • @StableMinor(version="15.0",
                 sinceVersion="4.0")
    public class ServiceInterfaceConfig
    extends java.lang.Object
    Holds information about a service interface.
    Since:
    4.0.0
    Version:
    $Revision: 25303 $ $Date: 2022-10-22 22:48:02 -0300 (Sat, 22 Oct 2022) $
    • Field Detail

      • RENDER_AS_INLINE_DEFINITION_VALUE

        public static final java.lang.String RENDER_AS_INLINE_DEFINITION_VALUE
        See Also:
        Constant Field Values
      • RENDER_AS_CLIENT_SIDE_SCRIPT_DEFINITION_VALUE

        public static final java.lang.String RENDER_AS_CLIENT_SIDE_SCRIPT_DEFINITION_VALUE
        See Also:
        Constant Field Values
      • RENDER_AS_CLIENT_SIDE_SCRIPT_VALUE

        public static final int RENDER_AS_CLIENT_SIDE_SCRIPT_VALUE
        See Also:
        Constant Field Values
      • CACHE_LEVEL_LOCAL_DEFINITION_VALUE

        public static final java.lang.String CACHE_LEVEL_LOCAL_DEFINITION_VALUE
        See Also:
        Constant Field Values
      • CACHE_LEVEL_LOCAL_VALUE

        public static final int CACHE_LEVEL_LOCAL_VALUE
        See Also:
        Constant Field Values
      • CACHE_LEVEL_PAGE_TEMPLATE_DEFINITION_VALUE

        public static final java.lang.String CACHE_LEVEL_PAGE_TEMPLATE_DEFINITION_VALUE
        See Also:
        Constant Field Values
      • CACHE_LEVEL_PAGE_TEMPLATE_VALUE

        public static final int CACHE_LEVEL_PAGE_TEMPLATE_VALUE
        See Also:
        Constant Field Values
      • CACHE_PERSONALIZATION_NONE_DEFINITION_VALUE

        public static final java.lang.String CACHE_PERSONALIZATION_NONE_DEFINITION_VALUE
        See Also:
        Constant Field Values
      • CACHE_PERSONALIZATION_NONE_VALUE

        public static final int CACHE_PERSONALIZATION_NONE_VALUE
        See Also:
        Constant Field Values
      • CACHE_PERSONALIZATION_GUEST_ONLY_DEFINITION_VALUE

        public static final java.lang.String CACHE_PERSONALIZATION_GUEST_ONLY_DEFINITION_VALUE
        See Also:
        Constant Field Values
      • CACHE_PERSONALIZATION_GUEST_ONLY_VALUE

        public static final int CACHE_PERSONALIZATION_GUEST_ONLY_VALUE
        See Also:
        Constant Field Values
      • CACHE_PERSONALIZATION_PER_USER_DEFINITION_VALUE

        public static final java.lang.String CACHE_PERSONALIZATION_PER_USER_DEFINITION_VALUE
        See Also:
        Constant Field Values
      • CACHE_PERSONALIZATION_PER_USER_VALUE

        public static final int CACHE_PERSONALIZATION_PER_USER_VALUE
        See Also:
        Constant Field Values
    • Constructor Detail

      • ServiceInterfaceConfig

        public ServiceInterfaceConfig()
    • Method Detail

      • setDefinition

        public void setDefinition​(java.lang.String interfaceDefinition)
                           throws PortalException
        Parameters:
        definition - The definition to set.
        Throws:
        PortalException
      • setDefinitionNode

        public void setDefinitionNode​(org.w3c.dom.Node interfaceXmlNode)
                               throws PortalException
        Parameters:
        definition - The definition to set.
        Throws:
        PortalException
      • getId

        public java.lang.String getId()
        Returns:
        Returns the id.
      • setId

        public void setId​(java.lang.String id)
      • getRelativeId

        public java.lang.String getRelativeId()
      • getBaseUrl

        public java.lang.String getBaseUrl()
        Returns:
        Returns the id.
      • setBaseUrl

        public void setBaseUrl​(java.lang.String baseUrl)
      • getStringsUrlPrefixes

        public java.util.List<java.lang.String> getStringsUrlPrefixes()
        Returns:
        Returns the stringsUrlPrefix array.
      • getStringsUrlPrefix

        public java.lang.String getStringsUrlPrefix()
        Returns:
        Returns the first (main) stringsUrlPrefix.
      • setStringsUrlPrefix

        public void setStringsUrlPrefix​(java.lang.String stringsUrlPrefix)
      • getName

        public java.lang.String getName()
        Returns:
        Returns the name.
      • setName

        public void setName​(java.lang.String name)
      • getDescription

        public java.lang.String getDescription()
        Returns:
        Returns the description.
      • setDescription

        public void setDescription​(java.lang.String description)
      • getServiceId

        public java.lang.String getServiceId()
        Returns:
        Returns the serviceId.
      • setServiceId

        public void setServiceId​(java.lang.String serviceId)
      • getProperty

        public java.lang.String getProperty​(java.lang.String name)
      • getProperties

        public java.util.Enumeration getProperties​(java.lang.String name)
      • getPropertyNames

        public java.util.Enumeration getPropertyNames()
      • getExtendedProperty

        public java.lang.String getExtendedProperty​(java.lang.String name)
      • getExtendedProperties

        public java.util.Enumeration getExtendedProperties​(java.lang.String name)
      • getExtendedPropertyNames

        public java.util.Enumeration getExtendedPropertyNames()
      • getImplementationClass

        public java.lang.String getImplementationClass()
      • getInterfaceType

        public java.lang.String getInterfaceType()
      • isRuntimeOnly

        public boolean isRuntimeOnly()
        Returns:
        Returns the isRuntimeOnly.
      • setRuntimeOnly

        public void setRuntimeOnly​(boolean isRuntimeOnly)
        Parameters:
        isRuntimeOnly - The isRuntimeOnly to set.
      • isAdministration

        public boolean isAdministration()
        Returns:
        Returns the isAdministration.
      • setAdministration

        public void setAdministration​(boolean isAdministration)
        Parameters:
        isAdministration - The isAdministration to set.
      • isDetails

        public boolean isDetails()
      • setDetails

        public void setDetails​(boolean isDetails)
      • isList

        public boolean isList()
      • isSummary

        public boolean isSummary()
        Indicates whether the interface represents a summary interface. Typically summary interfaces are placed in home/landing pages.
        Returns:
        true if this interface represents a summary interface.
      • isPrintable

        public boolean isPrintable()
        Returns:
        Returns the isPrintable.
      • setPrintable

        public void setPrintable​(boolean isPrintable)
        Parameters:
        isPrintable - The isPrintable to set.
      • getRenderAs

        public int getRenderAs()
        Returns:
        Returns the renderAs.
      • setRenderAs

        public void setRenderAs​(int renderAs)
        Parameters:
        renderAs - The renderAs to set.
      • isEnableCache

        public boolean isEnableCache()
        Returns:
        Returns the enableCache.
      • setEnableCache

        public void setEnableCache​(boolean enableCache)
        Parameters:
        enableCache - The enableCache to set.
      • getCacheLevel

        public int getCacheLevel()
        Returns:
        Returns the cacheLevel.
      • setCacheLevel

        public void setCacheLevel​(int cacheLevel)
        Parameters:
        cacheLevel - The cacheLevel to set.
      • getCachePersonalization

        public int getCachePersonalization()
        Returns:
        Returns the cachePersonalization.
      • setCachePersonalization

        public void setCachePersonalization​(int cachePersonalization)
        Parameters:
        cachePersonalization - The cachePersonalization to set.
      • isCacheServerSideInclude

        public boolean isCacheServerSideInclude()
        Returns:
        Returns the cacheServerSideInclude.
      • setCacheServerSideInclude

        public void setCacheServerSideInclude​(boolean cacheServerSideInclude)
        Parameters:
        cacheServerSideInclude - The cacheServerSideInclude to set.
      • getTitle

        public java.lang.String getTitle()
      • setTitle

        public void setTitle​(java.lang.String title)
      • isPreviewSupported

        public boolean isPreviewSupported()
      • setPreviewSupported

        public void setPreviewSupported​(boolean previewSupported)
      • isInContextEditSupported

        public boolean isInContextEditSupported()
      • setServiceInstanceRequired

        public void setServiceInstanceRequired​(boolean serviceInstanceRequired)
        Indicates whether this interface requires or not a service instance to be executed.
        Parameters:
        serviceInstanceRequired - Indicates whether this interface requires or not a service instance to be executed.
        Since:
        5.6.0
      • isServiceInstanceRequired

        public boolean isServiceInstanceRequired()
        Returns whether this interface requires or not a service instance to be executed.
        Returns:
        whether this interface requires or not a service instance to be executed.
        Since:
        5.6.0
      • isCallerServiceInterfaceMenuItemRequired

        public boolean isCallerServiceInterfaceMenuItemRequired()
        Returns whether this interface requires or not a caller service Interface menu item
        Returns:
        whether this interface requires or not a caller service Interface menu item
        Since:
        10.2.0
      • getSupportedModes

        public java.util.List<javax.portlet.PortletMode> getSupportedModes()
        Returns a unmodifiable list with the supported modes for this interface. The list contains the modes in the same order they were defined in the interface definition.
        Returns:
        a unmodifiable list with the supported modes for this interface.
        Since:
        4.0.7
      • setIsWidget

        public void setIsWidget​(boolean isWidget)
        Sets the isWidget.
        Parameters:
        isWidget - the isWidget value to set.
        Since:
        6.0.0
      • getIsWidget

        public boolean getIsWidget()
        Returns the isWidget.
        Returns:
        the isWidget
        Since:
        6.0.0
      • isOpenerWindowRequired

        public boolean isOpenerWindowRequired()
        Returns if this interface requires an opener window.
        Returns:
        if this interface requires an opener window.
        Since:
        7.0.0
      • setOpenerWindowRequired

        public void setOpenerWindowRequired​(boolean isOpenerWindowRequired)
        Sets whether this interface requires an opener window.
        Parameters:
        isOpenerWindowRequired - indicates whether this interface requires an opener window.
        Since:
        7.0.0
      • getUsesSocialProfileInformation

        public boolean getUsesSocialProfileInformation()
        Returns whether this interface uses social profile information.
        Returns:
        whether this interface uses social profile information.
        Since:
        6.1.0
      • setUsesSocialProfileInformation

        public void setUsesSocialProfileInformation​(boolean usesSocialProfileInformation)
        Sets whether this interface uses social profile information.
        Parameters:
        usesSocialProfileInformation - whether this interface uses social profile information.
        Since:
        6.1.0
      • isRestEnabled

        public boolean isRestEnabled()
                              throws PortalException
        Returns whether Rest API is enabled for the interface.
        Returns:
        true if enabled.
        Throws:
        PortalException
      • isAutomaticAdministration

        public boolean isAutomaticAdministration()
        Returns if this interface is displayed in an auto administration service page.
        Returns:
        true if the interface is displayed, false otherwise.
        Since:
        7.0.0
      • getCacheExpiration

        public java.lang.Integer getCacheExpiration()
        Returns the cacheExpiration.
        Returns:
        the cacheExpiration
        Since:
        7.0.0
      • getCacheKeyBusinessContextProperties

        public java.util.List<java.lang.String> getCacheKeyBusinessContextProperties()
        Returns the cacheKeyBusinessContextProperties.
        Returns:
        the cacheKeyBusinessContextProperties
        Since:
        7.0.0
      • getCacheKeyProviderClassName

        public java.lang.String getCacheKeyProviderClassName()
        Returns the cacheKeyProvider.
        Returns:
        the cacheKeyProvider
        Since:
        7.0.0