Package lumis.portal.serviceinstance
Class ServiceInstanceConfig
- java.lang.Object
-
- lumis.portal.structure.StructureElement
-
- lumis.portal.serviceinstance.ServiceInstanceConfig
-
- All Implemented Interfaces:
Cloneable
,ICacheEntry
,ICloneableCacheEntry
,ICloneableConfig<ServiceInstanceConfig>
@StableMinor(version="14.1", sinceVersion="4.0") public class ServiceInstanceConfig extends StructureElement implements ICloneableConfig<ServiceInstanceConfig>, ICloneableCacheEntry
- Since:
- 4.0.0
- Version:
- $Revision: 24683 $ $Date: 2021-08-23 18:55:58 -0300 (Mon, 23 Aug 2021) $
-
-
Constructor Summary
Constructors Constructor Description ServiceInstanceConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ServiceInstanceConfig
clone()
void
deserialize(Node serviceInstanceNode)
protected void
deserializePropertyBag(Node propertyBagNode)
Updates this element's property bag according to the given serialized property bag node.String
getAccessControlListId()
String
getChannelId()
String
getDescription()
Enumeration
getExtendedProperties(String name)
String
getExtendedProperty(String name)
Enumeration
getExtendedPropertyNames()
String
getFriendlyId()
Returns the service instance's friendly identifier.int
getHtmlProcessorsPriority()
Returns the HTML processors priority.String
getId()
protected Pattern
getManagedPropertiesPattern()
Returns the property name spaces.String
getName()
Enumeration
getProperties(String name)
String
getProperty(String name)
String
getPropertyBagId()
Returns the property bag identifier.Enumeration
getPropertyNames()
String
getRestShortName()
Returns the Rest shortName.String
getServiceId()
boolean
getUsesFileTransformation()
Returns the usesFileTransformation.boolean
getUsesPublicFileStorage()
Deprecated.Since 12.2.0 replaced byusesPublicFileStorage()
.boolean
isAutomaticFriendlyId()
Returns whether the service instance is going to use automatic generated friendly identifier or not.boolean
isInContextEditDisabled()
boolean
isRestEnabled()
Returns the restEnabled.protected boolean
mayUseFriendlyId(String friendlyId)
Indicates if the element may use the given friendly identifier.void
serialize(SessionConfig sessionConfig, OutputStream outputStream, ITransaction transaction)
void
setAccessControlListId(String accessControlListId)
void
setAutoGeneratedFriendlyId()
Generates a new friendly identifier and sets it as the friendly identifier of this service instance.void
setAutomaticFriendlyId(boolean automaticFriendlyId)
Indicates whether the service instance is going to use automatic generated friendly identifier or not.void
setChannelId(String channelId)
void
setDescription(String description)
void
setDisableInContextEdit(boolean disableInContextEdit)
void
setFriendlyId(String friendlyId)
Sets the service instance's friendly identifier.void
setHtmlProcessorsPriority(int htmlProcessorsPriority)
Sets the HTML processors priority.void
setId(String id)
void
setName(String name)
void
setRestEnabled(boolean restEnabled)
Sets the restEnabled.void
setRestShortName(String shortName)
Sets the shortName.void
setServiceId(String serviceId)
void
setUsesFileTransformation(boolean usesFileTransformation)
Sets the usesFileTransformation.void
setUsesPublicFileStorage(boolean filePublic)
Boolean
usesPublicFileStorage()
Returns whether this service instance uses public file storage.-
Methods inherited from class lumis.portal.structure.StructureElement
applyPropertyBagChanges, getAutomaticFriendlyId, getFriendlyIdBaseValue, getFriendlyIdMaxLength, getFriendlyIdValueForCounter, getLocalPropertyValue, getLocalPropertyValues, getPropertyValue, getPropertyValues, isManagedProperty, loadPropertyBagValues, normalizeFriendlyId, removeProperty, serializePropertyBag, setPropertyValue, setPropertyValues, stripAccents
-
-
-
-
Method Detail
-
getDescription
public String getDescription()
- Returns:
- Returns the description.
-
setDescription
public void setDescription(String description)
- Parameters:
description
- The description to set.
-
getId
public String getId()
- Returns:
- Returns the id.
-
setId
public void setId(String id)
- Parameters:
id
- The id to set.
-
getName
public String getName()
- Returns:
- Returns the name.
-
setName
public void setName(String name)
- Parameters:
name
- The name to set.
-
getChannelId
public String getChannelId()
- Returns:
- Returns the channelId.
-
setChannelId
public void setChannelId(String channelId)
- Parameters:
channelId
- The channelId to set.
-
getServiceId
public String getServiceId()
- Returns:
- Returns the serviceId.
-
setServiceId
public void setServiceId(String serviceId)
- Parameters:
serviceId
- The serviceId to set.
-
getUsesPublicFileStorage
@Deprecated public boolean getUsesPublicFileStorage()
Deprecated.Since 12.2.0 replaced byusesPublicFileStorage()
.
-
usesPublicFileStorage
public Boolean usesPublicFileStorage()
Returns whether this service instance uses public file storage.- Returns:
true
if it uses,false
if it does not use the public file storage ornull
if unspecified and will be configured with the default for its service when added.- Since:
- 12.2.0
-
setUsesPublicFileStorage
public void setUsesPublicFileStorage(boolean filePublic)
-
isInContextEditDisabled
public boolean isInContextEditDisabled()
-
setDisableInContextEdit
public void setDisableInContextEdit(boolean disableInContextEdit)
-
getProperties
public Enumeration getProperties(String name)
-
getPropertyNames
public Enumeration getPropertyNames()
-
getExtendedProperties
public Enumeration getExtendedProperties(String name)
-
getExtendedPropertyNames
public Enumeration getExtendedPropertyNames()
-
getAccessControlListId
public String getAccessControlListId()
-
setAccessControlListId
public void setAccessControlListId(String accessControlListId)
-
setUsesFileTransformation
public void setUsesFileTransformation(boolean usesFileTransformation)
Sets the usesFileTransformation.- Parameters:
usesFileTransformation
- the usesFileTransformation value to set.- Since:
- 6.1.0
-
getUsesFileTransformation
public boolean getUsesFileTransformation()
Returns the usesFileTransformation.- Returns:
- the usesFileTransformation
- Since:
- 6.1.0
-
setFriendlyId
public void setFriendlyId(String friendlyId)
Sets the service instance's friendly identifier. This value must be unique among the service instances contained in the same channel this service instance is contained.- Parameters:
friendlyId
- the service instance's friendly identifier.- Since:
- 6.0.0
-
setAutoGeneratedFriendlyId
public void setAutoGeneratedFriendlyId()
Generates a new friendly identifier and sets it as the friendly identifier of this service instance. The friendly identifier is generated based on this service instance's current name.This method requires an active transaction.
- Since:
- 6.0.0
- See Also:
setFriendlyId(String)
-
getFriendlyId
public String getFriendlyId()
Returns the service instance's friendly identifier.- Returns:
- the service instance's friendly identifier.
- Since:
- 6.0.0
-
setAutomaticFriendlyId
public void setAutomaticFriendlyId(boolean automaticFriendlyId)
Indicates whether the service instance is going to use automatic generated friendly identifier or not.- Parameters:
automaticFriendlyId
- indicates whether the service instance is going to use automatic generated friendly identifier or not.- Since:
- 6.0.0
-
isAutomaticFriendlyId
public boolean isAutomaticFriendlyId()
Returns whether the service instance is going to use automatic generated friendly identifier or not.- Returns:
- whether the service instance is going to use automatic generated friendly identifier or not.
- Since:
- 6.0.0
-
serialize
public void serialize(SessionConfig sessionConfig, OutputStream outputStream, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
deserialize
public void deserialize(Node serviceInstanceNode) throws PortalException
- Throws:
PortalException
-
deserializePropertyBag
protected void deserializePropertyBag(Node propertyBagNode) throws PortalException
Description copied from class:StructureElement
Updates this element's property bag according to the given serialized property bag node.- Overrides:
deserializePropertyBag
in classStructureElement
- Parameters:
propertyBagNode
- the property bag serialized node, in the same syntax as generated byStructureElement.serializePropertyBag()
.- Throws:
PortalException
- if an error occurred during deserialization.
-
clone
public ServiceInstanceConfig clone() throws CloneNotSupportedException
- Specified by:
clone
in interfaceICloneableCacheEntry
- Specified by:
clone
in interfaceICloneableConfig<ServiceInstanceConfig>
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-
getManagedPropertiesPattern
protected Pattern getManagedPropertiesPattern()
Description copied from class:StructureElement
Returns the property name spaces. Used to decides if a property can be updated.- Specified by:
getManagedPropertiesPattern
in classStructureElement
- Returns:
- property name spaces
-
getPropertyBagId
public String getPropertyBagId()
Description copied from class:StructureElement
Returns the property bag identifier.- Specified by:
getPropertyBagId
in classStructureElement
- Returns:
- The propertyBagId.
-
mayUseFriendlyId
protected boolean mayUseFriendlyId(String friendlyId) throws PortalException
Description copied from class:StructureElement
Indicates if the element may use the given friendly identifier.- Specified by:
mayUseFriendlyId
in classStructureElement
- Parameters:
friendlyId
- the friendly identifier.- Returns:
- true if the element may use the given friendly identifier, false otherwise.
- Throws:
PortalException
-
setRestShortName
public void setRestShortName(String shortName)
Sets the shortName.- Parameters:
shortName
- the shortName value to set.- Since:
- 6.1.0
-
getRestShortName
public String getRestShortName()
Returns the Rest shortName.- Returns:
- the shortName
- Since:
- 6.1.0
-
setRestEnabled
public void setRestEnabled(boolean restEnabled)
Sets the restEnabled.- Parameters:
restEnabled
- the restEnabled value to set.- Since:
- 6.1.0
-
isRestEnabled
public boolean isRestEnabled()
Returns the restEnabled.- Returns:
- the restEnabled
- Since:
- 6.1.0
-
getHtmlProcessorsPriority
public int getHtmlProcessorsPriority()
Returns the HTML processors priority.- Returns:
- the HTML processors priority
- Since:
- 8.2.0
-
setHtmlProcessorsPriority
public void setHtmlProcessorsPriority(int htmlProcessorsPriority)
Sets the HTML processors priority.- Parameters:
htmlProcessorsPriority
- the HTML processors priority value to set.- Since:
- 8.2.0
-
-