@StableMinor(version="12.4", sinceVersion="4.0") public class ServiceInterfaceStyleConfig extends Object implements ICloneableConfig<ServiceInterfaceStyleConfig>
Modifier and Type | Class and Description |
---|---|
static class |
ServiceInterfaceStyleConfig.IsolationLevel
Represents the level of isolation of a Style.
|
Modifier and Type | Field and Description |
---|---|
protected String |
description |
protected String |
filePath |
protected String |
id |
protected boolean |
isFromDefinition |
protected Collection<String> |
isolationAllowedConsumers |
protected ServiceInterfaceStyleConfig.IsolationLevel |
isolationLevel |
protected boolean |
isWidgetDefault |
protected String |
name |
protected String |
serviceInterfaceId |
Constructor and Description |
---|
ServiceInterfaceStyleConfig() |
Modifier and Type | Method and Description |
---|---|
ServiceInterfaceStyleConfig |
clone() |
void |
deserialize(Node serviceInstanceNode)
Deserialize the properties of the ServiceInstanceStyleConfig from the specified XML Node.
|
boolean |
equals(Object obj) |
String |
getDescription() |
String |
getFilePath() |
String |
getId() |
Collection<String> |
getIsolationAllowedConsumers()
Returns a list of identifiers of elements that are allowed to use
this style.
|
ServiceInterfaceStyleConfig.IsolationLevel |
getIsolationLevel()
Returns the isolation level for this style.
|
boolean |
getIsWidgetDefault()
Returns the isWidgetDefault.
|
String |
getName() |
String |
getServiceInterfaceId() |
int |
hashCode() |
boolean |
isFromDefinition() |
void |
serialize(ServiceInterfaceStyleConfig styleConfig,
OutputStream outputStream)
Serializes the interface style config to the specified output stream.
|
void |
setDescription(String description) |
void |
setFilePath(String filePath) |
void |
setFromDefinition(boolean isFromDefinition) |
void |
setId(String id) |
void |
setIsolation(ServiceInterfaceStyleConfig.IsolationLevel isolationLevel,
Collection<String> allowedConsumers)
Sets the isolationLevel.
|
void |
setIsWidgetDefault(boolean isWidgetDefault)
Sets the isWidgetDefault.
|
void |
setName(String name) |
void |
setServiceInterfaceId(String interfaceId) |
protected String id
protected String serviceInterfaceId
protected String name
protected String description
protected String filePath
protected boolean isFromDefinition
protected boolean isWidgetDefault
protected Collection<String> isolationAllowedConsumers
protected ServiceInterfaceStyleConfig.IsolationLevel isolationLevel
public String getDescription()
public void setDescription(String description)
description
- The description to set.public String getFilePath()
public void setFilePath(String filePath)
filePath
- The filePath to set.public String getId()
public void setId(String id)
id
- The id to set.public String getServiceInterfaceId()
public void setServiceInterfaceId(String interfaceId)
serviceInterfaceId
- The serviceInterfaceId to set.public boolean isFromDefinition()
public void setFromDefinition(boolean isFromDefinition)
isFromDefinition
- The isFromDefinition to set.public String getName()
public void setName(String name)
name
- The name to set.public void serialize(ServiceInterfaceStyleConfig styleConfig, OutputStream outputStream) throws PortalException
pageConfig
- outputStream
- PortalException
public void deserialize(Node serviceInstanceNode) throws PortalException
serviceInstanceNode
- PortalException
public ServiceInterfaceStyleConfig clone() throws CloneNotSupportedException
clone
in interface ICloneableConfig<ServiceInterfaceStyleConfig>
clone
in class Object
CloneNotSupportedException
public void setIsWidgetDefault(boolean isWidgetDefault)
isWidgetDefault
- the isWidgetDefault value to set.public boolean getIsWidgetDefault()
public ServiceInterfaceStyleConfig.IsolationLevel getIsolationLevel()
public void setIsolation(ServiceInterfaceStyleConfig.IsolationLevel isolationLevel, Collection<String> allowedConsumers) throws IsolationLevelValidationException, PortalException
IsolationLevelValidationException
is raised.isolationLevel
- the isolation level.allowedConsumers
- collection with the identifiers of the consumers
allowed to use this style. If isolationLevel
is ServiceInterfaceStyleConfig.IsolationLevel.ISOLATED
,
it must be a single interface instance identifier; If isolationLevel
is
ServiceInterfaceStyleConfig.IsolationLevel.SHARED
, it must be the identifiers of the
service instances that can use the style.IsolationLevelValidationException
- if any rule of validation is invalid.PortalException
- if any error occurs during the process.public Collection<String> getIsolationAllowedConsumers()
If the isolation level is ServiceInterfaceStyleConfig.IsolationLevel.PUBLIC
the returned
collection is empty.
If the isolation level is ServiceInterfaceStyleConfig.IsolationLevel.ISOLATED
the returned
collection contains a single interface instance identifier.
If the isolation level is ServiceInterfaceStyleConfig.IsolationLevel.SHARED
the returned
collection contains the identifiers of service instances.
LumisXP 12.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.