@StableMinor(version="12.2", sinceVersion="4.0") public interface IServiceInstanceManager extends IConfigDeleter, IConfigKeyChecker
Modifier and Type | Method and Description |
---|---|
String |
add(SessionConfig sessionConfig,
ServiceInstanceConfig serviceInstanceConfig,
boolean fromDeserialization,
ITransaction transaction) |
String |
add(SessionConfig sessionConfig,
ServiceInstanceConfig serviceInstanceConfig,
ITransaction transaction)
Add a service instance.
|
void |
addOrUpdate(SessionConfig sessionConfig,
ServiceInstanceConfig serviceInstanceConfig,
boolean fromDeserialization,
ITransaction transaction) |
void |
addOrUpdate(SessionConfig sessionConfig,
ServiceInstanceConfig serviceInstanceConfig,
ITransaction transaction)
Add or Update a Service Instance, depending on its previous existence.
|
void |
clearServiceInstanceCache(SessionConfig sessionConfig,
String serviceInstanceId,
ITransaction transaction)
Remove the object cache entries for the specificed Service Instance also clearing it's ACL cache.
|
void |
delete(SessionConfig sessionConfig,
String serviceInstanceId,
boolean force,
ITransaction transaction)
Delete a service instance.
|
void |
deleteCustomProperties(SessionConfig sessionConfig,
String serviceInstanceId,
ITransaction transaction)
Deletes all service instance´s custom properties
|
void |
deleteCustomProperty(SessionConfig sessionConfig,
String serviceInstanceId,
String name,
ITransaction transaction)
Deletes a service instance custom property
|
String |
deserialize(SessionConfig sessionConfig,
DeserializationConfig deserializationConfig,
Node serviceInstanceNode,
ITransaction transaction) |
void |
deserializeCustomProperties(SessionConfig sessionConfig,
DeserializationConfig deserializationConfig,
Node serviceInstanceCustomPropertiesNode,
ITransaction transaction)
Deprecated.
Since 6.2.0 this method is no longer used and may be removed in a future version.
|
String |
deserializeDependency(SessionConfig sessionConfig,
DeserializationConfig deserializationConfig,
Node serviceInstanceDependencyNode,
ITransaction transaction)
Deserializes the given dependency
|
ServiceInstanceConfig |
findServiceInstanceThroughChannelTree(SessionConfig sessionConfig,
String channelId,
String serviceId,
ITransaction transaction)
Searches for a service instance
|
ServiceInstanceConfig |
get(String serviceInstanceId,
ITransaction transaction)
Get the configuration of the service instance.
|
Map<String,String> |
getCustomProperties(SessionConfig sessionConfig,
String serviceInstanceId,
ITransaction transaction)
Gets all the custom properties of a specified service instance.
|
String |
getCustomProperty(SessionConfig sessionConfig,
String serviceInstanceId,
String name,
ITransaction transaction)
Returns the specified custom property.
|
ServiceInstanceDependencyConfig |
getDependency(String serviceInstanceDependencyId,
ITransaction transaction) |
Collection<String> |
getDependencyIdsByServiceInstanceId(SessionConfig sessionConfig,
String serviceInstanceId,
ITransaction transaction)
Returns the service instance ids that the given service instance id depends on
|
Collection<String> |
getDependentServiceInstanceIds(SessionConfig sessionConfig,
String serviceInstanceId,
ITransaction transaction) |
Collection<ServiceInstanceConfig> |
getDependentServiceInstances(SessionConfig sessionConfig,
String serviceInstanceId,
ITransaction transaction)
Returns the service instances that are dependent on the specified service instance.
|
Collection<String> |
getIds(SessionConfig sessionConfig,
ITransaction transaction)
Get the ids of all services instances
|
Collection<String> |
getIdsByChannelId(SessionConfig sessionConfig,
String channelId,
ITransaction transaction)
Get the ids of the services instances by passing the channel id.
|
Collection<String> |
getIdsByChannelTree(SessionConfig sessionConfig,
String rootChannelId,
ITransaction transaction)
Get the ids of the services instances of all the channel tree by passing the tree's root channel id.
|
Collection<String> |
getIdsByChannelTreeAndAreaTags(SessionConfig sessionConfig,
String rootChannelId,
Collection<String> areaTags,
ITransaction transaction)
Returns the identifiers of services instances that belong to the channel tree inside the specified root channel,
and contains any of the specified area tags.
|
Collection<String> |
getIdsByServiceId(SessionConfig sessionConfig,
String serviceId,
ITransaction transaction)
Get the ids of the services instances by passing the service id.
|
ServiceInstanceConfig |
getServiceInstanceByDependency(SessionConfig sessionConfig,
String serviceInstanceId,
String dependencyType,
ITransaction transaction)
Get the service instance the given service instance depends on by the given dependency type.
|
Collection<ServiceInstanceConfig> |
getServiceInstancesByDependency(SessionConfig sessionConfig,
String serviceInstanceId,
String dependencyType,
ITransaction transaction)
Returns the service instances the given service instance depends on by the given dependency type.
|
void |
serialize(SessionConfig sessionConfig,
String serviceInstanceId,
OutputStream outputStream,
ITransaction transaction) |
void |
serializeCustomProperties(SessionConfig sessionConfig,
String serviceInstanceId,
OutputStream outputStream,
ITransaction transaction)
Serializes the custom properties of a service instance into the specified outputstream.
|
void |
serializeDependencies(SessionConfig sessionConfig,
String serviceInstanceId,
OutputStream outputStream,
ITransaction transaction)
Serializes the dependencies of a service instance
|
void |
setCustomProperties(SessionConfig sessionConfig,
String serviceInstanceId,
Map<String,String> propertiesTable,
ITransaction transaction)
Receives a Map with one or more properties to be set for the given
service instance.
|
void |
setCustomProperty(SessionConfig sessionConfig,
String serviceInstanceId,
String name,
String value,
ITransaction transaction)
Set a custom property for the given service instance.
|
void |
setServiceInstanceDependency(ServiceInstanceDependencyConfig serviceInstanceDependencyConfig,
ITransaction transaction)
Sets the given service instance dependency.
|
void |
update(SessionConfig sessionConfig,
ServiceInstanceConfig serviceInstanceConfig,
ITransaction transaction)
Update a service instance.
|
deleteConfig
keyExists
void addOrUpdate(SessionConfig sessionConfig, ServiceInstanceConfig serviceInstanceConfig, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- serviceInstanceConfig
- transaction
- ManagerException
PortalException
ServiceInstanceConfig get(String serviceInstanceId, ITransaction transaction) throws ManagerException, PortalException
serviceInstanceId
- transaction
- ManagerException
PortalException
ServiceInstanceConfig findServiceInstanceThroughChannelTree(SessionConfig sessionConfig, String channelId, String serviceId, ITransaction transaction) throws PortalException
sessionConfig
- channelId
- serviceId
- transaction
- PortalException
String add(SessionConfig sessionConfig, ServiceInstanceConfig serviceInstanceConfig, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- serviceInstanceConfig
- transaction
- ManagerException
PortalException
void update(SessionConfig sessionConfig, ServiceInstanceConfig serviceInstanceConfig, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- serviceInstanceConfig
- transaction
- ManagerException
PortalException
void delete(SessionConfig sessionConfig, String serviceInstanceId, boolean force, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- serviceInstanceId
- force
- TODOtransaction
- ManagerException
PortalException
Collection<String> getIds(SessionConfig sessionConfig, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- channelId
- transaction
- ManagerException
PortalException
Collection<String> getIdsByChannelId(SessionConfig sessionConfig, String channelId, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- channelId
- transaction
- ManagerException
PortalException
Collection<String> getIdsByChannelTree(SessionConfig sessionConfig, String rootChannelId, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- rootChannelId
- transaction
- ManagerException
PortalException
Collection<String> getIdsByChannelTreeAndAreaTags(SessionConfig sessionConfig, String rootChannelId, Collection<String> areaTags, ITransaction transaction) throws PortalException
sessionConfig
- user session information.rootChannelId
- the channel that is root of the channel tree where the service instances are searched on.areaTags
- the service instance must have one of the specified area tags to be returned. If this argument is
null
, it is ignored and the service instances will not be filtered by area tags. If this argument is an
empty collection, an empty collection will be returned.transaction
- the transaction for persistence access.PortalException
Collection<String> getIdsByServiceId(SessionConfig sessionConfig, String serviceId, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- serviceId
- transaction
- ManagerException
PortalException
void setCustomProperty(SessionConfig sessionConfig, String serviceInstanceId, String name, String value, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- the user session information.serviceInstanceId
- the id of the service instance.name
- the property name.value
- the property value.transaction
- the transaction for persistence access.ManagerException
PortalException
String getCustomProperty(SessionConfig sessionConfig, String serviceInstanceId, String name, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- serviceInstanceId
- name
- transaction
- ManagerException
PortalException
void deleteCustomProperty(SessionConfig sessionConfig, String serviceInstanceId, String name, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- serviceInstanceId
- name
- transaction
- ManagerException
PortalException
void deleteCustomProperties(SessionConfig sessionConfig, String serviceInstanceId, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- serviceInstanceId
- transaction
- ManagerException
PortalException
void serialize(SessionConfig sessionConfig, String serviceInstanceId, OutputStream outputStream, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- serviceInstanceId
- outputStream
- transaction
- ManagerException
PortalException
String deserialize(SessionConfig sessionConfig, DeserializationConfig deserializationConfig, Node serviceInstanceNode, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- deserializationConfig
- serviceInstanceNode
- transaction
- ManagerException
PortalException
ServiceInstanceConfig getServiceInstanceByDependency(SessionConfig sessionConfig, String serviceInstanceId, String dependencyType, ITransaction transaction) throws ManagerException, PortalException
If the service instance depends on multiple service instances, any may
be returned. Use getServiceInstancesByDependency(SessionConfig, String, String, ITransaction)
to get all of them.
sessionConfig
- current session informationserviceInstanceId
- the id of the service instance that depends on the returned service instance.dependencyType
- the type of dependency.transaction
- the transaction for persistence access.PortalException
ManagerException
#getServiceInstancesByDependency(SessionConfig, String, String, ITransaction)}
Collection<ServiceInstanceConfig> getServiceInstancesByDependency(SessionConfig sessionConfig, String serviceInstanceId, String dependencyType, ITransaction transaction) throws PortalException
sessionConfig
- current session informationserviceInstanceId
- the id of the service instance that depends on the returned service instances.dependencyType
- the type of dependency.transaction
- the transaction for persistence access.PortalException
- if the service instances could not be obtained.getServiceInstanceByDependency(SessionConfig, String, String, ITransaction)
void setServiceInstanceDependency(ServiceInstanceDependencyConfig serviceInstanceDependencyConfig, ITransaction transaction) throws PortalException
serviceInstanceDependencyConfig
- the information about the dependency to be set.transaction
- the transaction for persistence access.PortalException
void serializeDependencies(SessionConfig sessionConfig, String serviceInstanceId, OutputStream outputStream, ITransaction transaction) throws PortalException
sessionConfig
- serviceInstanceId
- outputStream
- transaction
- PortalException
Collection<String> getDependencyIdsByServiceInstanceId(SessionConfig sessionConfig, String serviceInstanceId, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- serviceInstanceId
- transaction
- ManagerException
PortalException
Collection<ServiceInstanceConfig> getDependentServiceInstances(SessionConfig sessionConfig, String serviceInstanceId, ITransaction transaction) throws PortalException
sessionConfig
- the user session information.serviceInstanceId
- the id of the service instance the returned service instances depend on.transaction
- the transaction for persistence access.PortalException
String deserializeDependency(SessionConfig sessionConfig, DeserializationConfig deserializationConfig, Node serviceInstanceDependencyNode, ITransaction transaction) throws PortalException
sessionConfig
- deserializationConfig
- serviceInstanceDependencyNode
- transaction
- PortalException
Map<String,String> getCustomProperties(SessionConfig sessionConfig, String serviceInstanceId, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- serviceInstanceId
- transaction
- ManagerException
PortalException
void serializeCustomProperties(SessionConfig sessionConfig, String serviceInstanceId, OutputStream outputStream, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- serviceInstanceId
- outputStream
- transaction
- ManagerException
PortalException
@Deprecated void deserializeCustomProperties(SessionConfig sessionConfig, DeserializationConfig deserializationConfig, Node serviceInstanceCustomPropertiesNode, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- deserializationConfig
- serviceInstanceCustomPropertiesNode
- transaction
- ManagerException
PortalException
void clearServiceInstanceCache(SessionConfig sessionConfig, String serviceInstanceId, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- serviceInstanceId
- transaction
- ManagerException
PortalException
ServiceInstanceDependencyConfig getDependency(String serviceInstanceDependencyId, ITransaction transaction) throws PortalException
PortalException
Collection<String> getDependentServiceInstanceIds(SessionConfig sessionConfig, String serviceInstanceId, ITransaction transaction) throws PortalException
PortalException
void setCustomProperties(SessionConfig sessionConfig, String serviceInstanceId, Map<String,String> propertiesTable, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- the user session information.serviceInstanceId
- the id of the service instance.propertiesTable
- the <key, value>
property map.transaction
- the transaction for persistence access.ManagerException
PortalException
#setCustomProperty(SessionConfig, String, String, String, ITransaction)}
void addOrUpdate(SessionConfig sessionConfig, ServiceInstanceConfig serviceInstanceConfig, boolean fromDeserialization, ITransaction transaction) throws ManagerException, PortalException
ManagerException
PortalException
String add(SessionConfig sessionConfig, ServiceInstanceConfig serviceInstanceConfig, boolean fromDeserialization, ITransaction transaction) throws PortalException
PortalException
LumisXP 12.2.0.200122 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.