Package lumis.portal.serviceinterface
Class ServiceInterfaceConfig
- java.lang.Object
-
- lumis.portal.serviceinterface.ServiceInterfaceConfig
-
@StableMinor(version="17.0", sinceVersion="4.0") public class ServiceInterfaceConfig extends java.lang.Object
Holds information about a service interface.- Since:
- 4.0.0
- Version:
- $Revision$ $Date$
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CACHE_LEVEL_LOCAL_DEFINITION_VALUE
static int
CACHE_LEVEL_LOCAL_VALUE
static java.lang.String
CACHE_LEVEL_PAGE_TEMPLATE_DEFINITION_VALUE
static int
CACHE_LEVEL_PAGE_TEMPLATE_VALUE
static java.lang.String
CACHE_PERSONALIZATION_GUEST_ONLY_DEFINITION_VALUE
static int
CACHE_PERSONALIZATION_GUEST_ONLY_VALUE
static java.lang.String
CACHE_PERSONALIZATION_NONE_DEFINITION_VALUE
static int
CACHE_PERSONALIZATION_NONE_VALUE
static java.lang.String
CACHE_PERSONALIZATION_PER_USER_DEFINITION_VALUE
static int
CACHE_PERSONALIZATION_PER_USER_VALUE
static java.lang.String
RENDER_AS_CLIENT_SIDE_SCRIPT_DEFINITION_VALUE
static int
RENDER_AS_CLIENT_SIDE_SCRIPT_VALUE
static java.lang.String
RENDER_AS_INLINE_DEFINITION_VALUE
static int
RENDER_AS_INLINE_VALUE
-
Constructor Summary
Constructors Constructor Description ServiceInterfaceConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getBaseUrl()
java.lang.Integer
getCacheExpiration()
Returns the cacheExpiration.java.util.List<java.lang.String>
getCacheKeyBusinessContextProperties()
Returns the cacheKeyBusinessContextProperties.java.lang.String
getCacheKeyProviderClassName()
Returns the cacheKeyProvider.int
getCacheLevel()
int
getCachePersonalization()
java.lang.String
getDefinition()
org.w3c.dom.Node
getDefinitionNode()
java.lang.String
getDescription()
java.util.Enumeration
getExtendedProperties(java.lang.String name)
java.lang.String
getExtendedProperty(java.lang.String name)
java.util.Enumeration
getExtendedPropertyNames()
java.lang.String
getId()
java.lang.String
getImplementationClass()
java.lang.String
getInterfaceType()
boolean
getIsWidget()
Returns the isWidget.java.lang.String
getName()
java.lang.String
getPopupWindowProperties()
java.util.Enumeration
getProperties(java.lang.String name)
java.lang.String
getProperty(java.lang.String name)
java.util.Enumeration
getPropertyNames()
java.lang.String
getRelativeId()
int
getRenderAs()
IResource
getResource()
java.lang.String
getServiceId()
java.lang.String
getStringsUrlPrefix()
java.util.List<java.lang.String>
getStringsUrlPrefixes()
java.util.List<javax.portlet.PortletMode>
getSupportedModes()
Returns a unmodifiable list with the supported modes for this interface.java.lang.String
getTitle()
boolean
getUsesSocialProfileInformation()
Returns whether this interface uses social profile information.boolean
isAdministration()
boolean
isAutomaticAdministration()
Returns if this interface is displayed in an auto administration service page.boolean
isCacheServerSideInclude()
boolean
isCallerServiceInterfaceMenuItemRequired()
Returns whether this interface requires or not a caller service Interface menu itemboolean
isDetails()
boolean
isEnableCache()
boolean
isInContextEditSupported()
boolean
isList()
boolean
isOpenerWindowRequired()
Returns if this interface requires an opener window.boolean
isPreviewSupported()
boolean
isPrintable()
boolean
isRestEnabled()
Returns whether Rest API is enabled for the interface.boolean
isRuntimeOnly()
boolean
isServiceInstanceRequired()
Returns whether this interface requires or not a service instance to be executed.boolean
isSummary()
Indicates whether the interface represents a summary interface.void
setAdministration(boolean isAdministration)
void
setBaseUrl(java.lang.String baseUrl)
void
setCacheLevel(int cacheLevel)
void
setCachePersonalization(int cachePersonalization)
void
setCacheServerSideInclude(boolean cacheServerSideInclude)
void
setDefinition(java.lang.String interfaceDefinition)
void
setDefinitionNode(org.w3c.dom.Node interfaceXmlNode)
void
setDescription(java.lang.String description)
void
setDetails(boolean isDetails)
void
setEnableCache(boolean enableCache)
void
setId(java.lang.String id)
void
setIsWidget(boolean isWidget)
Sets the isWidget.void
setName(java.lang.String name)
void
setOpenerWindowRequired(boolean isOpenerWindowRequired)
Sets whether this interface requires an opener window.void
setPreviewSupported(boolean previewSupported)
void
setPrintable(boolean isPrintable)
void
setRenderAs(int renderAs)
void
setRuntimeOnly(boolean isRuntimeOnly)
void
setServiceId(java.lang.String serviceId)
void
setServiceInstanceRequired(boolean serviceInstanceRequired)
Indicates whether this interface requires or not a service instance to be executed.void
setStringsUrlPrefix(java.lang.String stringsUrlPrefix)
void
setTitle(java.lang.String title)
void
setUsesSocialProfileInformation(boolean usesSocialProfileInformation)
Sets whether this interface uses social profile information.
-
-
-
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_INLINE_VALUE
public static final int RENDER_AS_INLINE_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
-
-
Method Detail
-
getDefinitionNode
public org.w3c.dom.Node getDefinitionNode() throws PortalException
- Returns:
- Returns the definition.
- Throws:
PortalException
-
getDefinition
public java.lang.String getDefinition() throws PortalException
- Returns:
- Returns the definition Node
- Throws:
PortalException
-
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()
-
getResource
public IResource getResource() throws PortalException
- Throws:
PortalException
-
getPopupWindowProperties
public java.lang.String getPopupWindowProperties() throws PortalException
- Throws:
PortalException
-
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
-
-