Package lumis.portal.serviceinstance
Interface IServiceInstanceManagerSPI
-
- All Superinterfaces:
IConfigDeleter
,IConfigKeyChecker
,IServiceInstanceManager
- All Known Implementing Classes:
ServiceInstanceManager
public interface IServiceInstanceManagerSPI extends IServiceInstanceManager
/** Manager Interface for Service Instance internal operations.- Since:
- 6.1.0
- Version:
- $Revision: 24075 $ $Date: 2020-08-24 12:17:28 -0300 (Mon, 24 Aug 2020) $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clearAppropriateAutoAdministrationsPerPageIdCache(ServiceInstanceConfig serviceInstanceConfig, ITransaction transaction)
Clears the entry in the cacheAutoAdministrationPageIds cache if the service config is an instance of a an auto-administration service.boolean
existsRestShortName(java.lang.String restShortName, java.lang.String serviceInstanceIdToIgnore, java.lang.String parentChannelId, ITransaction transaction)
Verify if a given name exists.ServiceInstanceConfig
getByRestShortName(java.lang.String restShortName, ITransaction transaction)
Get the service's instance by rest short name.java.lang.String
getMenuXml(java.lang.String serviceInstanceId)
Returns the configuration menu in XML for a service instance.java.util.Collection<java.lang.String>
getServiceInstancesIdsByAutoAdminPageId(java.lang.String pageId, ITransaction transaction)
Returns the service instance ids that use the indicated page id as the auto administration page.boolean
isGoogleAnalyticsEnabled(ServiceInstanceConfig serviceInstanceConfig)
Returns whether the Google Analytics is enable in the given service instance.java.lang.Boolean
isGoogleAnalyticsEnabledLocal(ServiceInstanceConfig serviceInstanceConfig)
Returns whether the Google Analytics is enable in the given service instance ornull
if this property is inherited.void
serializeFileTransformations(SessionConfig sessionConfig, java.lang.String serviceInstanceId, java.io.OutputStream outputStream, ITransaction transaction)
serialize a fileTransformation to be used in a new channel created from channel template.void
setGoogleAnalyticsEnable(java.lang.Boolean enabled, ServiceInstanceConfig serviceInstanceConfig)
Sets whether the Google Analytics is enable in the given service instance.-
Methods inherited from interface lumis.portal.serialization.operation.IConfigDeleter
deleteConfig
-
Methods inherited from interface lumis.portal.serialization.operation.IConfigKeyChecker
keyExists
-
Methods inherited from interface lumis.portal.serviceinstance.IServiceInstanceManager
add, add, addOrUpdate, addOrUpdate, clearServiceInstanceCache, delete, deleteCustomProperties, deleteCustomProperty, deserialize, deserializeCustomProperties, deserializeDependency, findServiceInstanceThroughChannelTree, get, getCustomProperties, getCustomProperty, getDependency, getDependencyIdsByServiceInstanceId, getDependentServiceInstanceIds, getDependentServiceInstances, getIds, getIdsByChannelId, getIdsByChannelTree, getIdsByChannelTreeAndAreaTags, getIdsByServiceId, getServiceInstanceByDependency, getServiceInstancesByDependency, serialize, serializeCustomProperties, serializeDependencies, setCustomProperties, setCustomProperty, setServiceInstanceDependency, update
-
-
-
-
Method Detail
-
existsRestShortName
boolean existsRestShortName(java.lang.String restShortName, java.lang.String serviceInstanceIdToIgnore, java.lang.String parentChannelId, ITransaction transaction) throws PortalException
Verify if a given name exists.- Parameters:
restShortName
- rest short name of the service instance.serviceInstanceIdToIgnore
- service instance id that will not include on the search.parentChannelId
- the channelId of in which the service instance is/(will be) persistedtransaction
- transaction used to perform the query.- Returns:
- true if the name exists otherwise false.
- Throws:
PortalException
- if any other error occurs during the process.
-
getByRestShortName
ServiceInstanceConfig getByRestShortName(java.lang.String restShortName, ITransaction transaction) throws PortalException
Get the service's instance by rest short name. This will only return valid rest service instances(i.e. instances in a template channel will be ignored).- Parameters:
restShortName
- rest short name of the service instance.transaction
- transaction used to perform the query.- Returns:
- the serviceInstanceConfig that represents the service instance.
- Throws:
PortalException
- if any other error occurs during the process.
-
serializeFileTransformations
void serializeFileTransformations(SessionConfig sessionConfig, java.lang.String serviceInstanceId, java.io.OutputStream outputStream, ITransaction transaction) throws ManagerException, PortalException
serialize a fileTransformation to be used in a new channel created from channel template.- Parameters:
sessionConfig
- user session information.serviceInstanceId
- new serviceInstance´s idoutputStream
- the outputstream to serialize the data to.transaction
- transaction used to perform the query.- Throws:
ManagerException
- if an error occurs during the processPortalException
- if an error occurs during the process- Since:
- 6.2.0
-
getServiceInstancesIdsByAutoAdminPageId
java.util.Collection<java.lang.String> getServiceInstancesIdsByAutoAdminPageId(java.lang.String pageId, ITransaction transaction) throws PortalException
Returns the service instance ids that use the indicated page id as the auto administration page.- Parameters:
pageId
- to be looked fortransaction
-- Returns:
- collection of service instance ids that contain the page id as its auto administration page.
- Throws:
PortalException
- Since:
- 7.0.0
-
clearAppropriateAutoAdministrationsPerPageIdCache
void clearAppropriateAutoAdministrationsPerPageIdCache(ServiceInstanceConfig serviceInstanceConfig, ITransaction transaction) throws PortalException
Clears the entry in the cacheAutoAdministrationPageIds cache if the service config is an instance of a an auto-administration service.- Parameters:
serviceInstanceConfig
- service instance to be evaluated.transaction
- under which the method should happen.- Throws:
PortalException
- Since:
- 7.0.0
-
getMenuXml
java.lang.String getMenuXml(java.lang.String serviceInstanceId) throws PortalException
Returns the configuration menu in XML for a service instance.- Parameters:
serviceInstanceId
- the service instance identifier.- Returns:
- the menu in XML.
- Throws:
PortalException
- if the menu could not be generated.- Since:
- 8.2.0
-
isGoogleAnalyticsEnabledLocal
java.lang.Boolean isGoogleAnalyticsEnabledLocal(ServiceInstanceConfig serviceInstanceConfig) throws PortalException
Returns whether the Google Analytics is enable in the given service instance ornull
if this property is inherited.- Parameters:
serviceInstanceConfig
- the service instance the information will be read from.- Returns:
- whether the Google Analytics is enable in the given service instance or
null
if this property is inherited. - Throws:
PortalException
- Since:
- 8.2.0
-
isGoogleAnalyticsEnabled
boolean isGoogleAnalyticsEnabled(ServiceInstanceConfig serviceInstanceConfig) throws PortalException
Returns whether the Google Analytics is enable in the given service instance.- Parameters:
serviceInstanceConfig
- the service instance the information will be read from.- Returns:
- whether the Google Analytics is enable in the given service instance.
- Throws:
PortalException
- Since:
- 8.2.0
-
setGoogleAnalyticsEnable
void setGoogleAnalyticsEnable(java.lang.Boolean enabled, ServiceInstanceConfig serviceInstanceConfig) throws PortalException
Sets whether the Google Analytics is enable in the given service instance.- Parameters:
enabled
- the value ornull
to indicate the value should be inherited.serviceInstanceConfig
- the service instance the information will be set to.- Throws:
PortalException
- Since:
- 8.2.0
-
-