|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.portal.serviceinterface.style.ServiceInterfaceStyleConfig
@StableMinor(version="6.2", sinceVersion="4.0") public class ServiceInterfaceStyleConfig
Value class for Service Interface Style properties
Nested Class Summary | |
---|---|
static class |
ServiceInterfaceStyleConfig.IsolationLevel
Represents the level of isolation of a Style. |
Field Summary | |
---|---|
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 Summary | |
---|---|
ServiceInterfaceStyleConfig()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public ServiceInterfaceStyleConfig()
Method Detail |
---|
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 int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |