@StableMinor(version="12.5", sinceVersion="4.0") public interface IServiceInterfaceManager extends IConfigKeyChecker
Modifier and Type | Field and Description |
---|---|
static String |
INTERFACE_HOLDER_ID |
Modifier and Type | Method and Description |
---|---|
void |
addOrUpdateStyle(SessionConfig sessionConfig,
ServiceInterfaceStyleConfig serviceInterfaceStyleConfig,
ITransaction transaction)
Add or update a Style.
|
void |
deleteStyle(SessionConfig sessionConfig,
String serviceInterfaceStyleId,
String serviceInterfaceId,
ITransaction transaction)
Delete a Style.
|
void |
deserializeStyle(SessionConfig sessionConfig,
Node interfaceStyleNode,
ITransaction transaction)
Deserializes a ServiceInterfaceStyleConfig contained in the interfaceStyleNode.
|
Collection<String> |
getIdsByServiceId(String serviceId,
ITransaction transaction)
Get the service interface ids from a given service.
|
ServiceInterfaceMenuGroupTypeConfig |
getMenuGroupType(SessionConfig sessionConfig,
String menuGroupTypeId,
ITransaction transaction)
Get the menu group type.
|
ServiceInterfaceMenuItemTypeConfig |
getMenuItemType(SessionConfig sessionConfig,
String menuItemTypeId,
ITransaction transaction)
Get the menu item type.
|
IServiceInterface |
getServiceInterface(String serviceInterfaceId,
ITransaction transaction)
Get the service interface.
|
ServiceInterfaceConfig |
getServiceInterfaceConfig(String serviceInterfaceId,
ITransaction transaction)
Get the configuration of the service interface.
|
ServiceInterfaceStyleConfig |
getStyle(SessionConfig sessionConfig,
String serviceInterfaceStyleId,
String serviceInterfaceId,
ITransaction transaction)
Get the style configuration os the service interface.
|
ServiceInterfaceStyleConfig |
getStyleByServiceInterfaceInstanceId(SessionConfig sessionConfig,
String serviceInterfaceInstanceId,
ITransaction transaction)
Get the Style given the ServiceInterfaceInstanceId.
|
IConfigKeyChecker |
getStyleConfigKeyChecker() |
Collection<String> |
getStyleIds(SessionConfig sessionConfig,
String serviceInterfaceId,
ITransaction transaction)
Get the Id of all styles associated with a service interface.
|
Collection<String> |
getStyleIdsByInterfaceInstance(SessionConfig sessionConfig,
String interfaceInstanceId,
ITransaction transaction,
boolean onlyCustomStyles)
Get the Id of all styles available to an interface instance considering
the isolation rules.
|
void |
register(SessionConfig sessionConfig,
String serviceConfigPath,
ITransaction transaction)
Register the service interface.
|
void |
registerMenuGroupTypes(SessionConfig sessionConfig,
String groupTypesConfigPath,
ITransaction transaction)
Register the menu group types.
|
void |
registerMenuItemTypes(SessionConfig sessionConfig,
String itemTypesConfigPath,
ITransaction transaction)
Register menu item type.
|
void |
registerServiceInterfaceTypes(SessionConfig sessionConfig,
String serviceTypesConfigPath,
ITransaction transaction)
Register the type of the service interface.
|
void |
serializeStyle(SessionConfig sessionConfig,
String serviceInterfaceStyleId,
String serviceInterfaceId,
OutputStream outputStream,
ITransaction transaction)
Serializes a ServiceInterfaceStyleConfig to the specified outputStream.
|
void |
unregister(SessionConfig sessionConfig,
ServiceInterfaceConfig serviceInterfaceConfig,
ITransaction transaction)
Unregister the Service Interface.
|
void |
unregisterMenuGroupType(SessionConfig sessionConfig,
String typeId,
ITransaction transaction)
Unregisters a service menu group type.
|
void |
unregisterMenuItemType(SessionConfig sessionConfig,
String typeId,
ITransaction transaction)
Unregisters a service menu item type.
|
void |
unregisterServiceInterfaceType(String typeId,
ITransaction transaction)
Unregister the type of service interface.
|
keyExists
static final String INTERFACE_HOLDER_ID
void register(SessionConfig sessionConfig, String serviceConfigPath, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- serviceConfigPath
- transaction
- ManagerException
PortalException
ServiceInterfaceConfig getServiceInterfaceConfig(String serviceInterfaceId, ITransaction transaction) throws ManagerException, PortalException
serviceInterfaceId
- transaction
- ManagerException
PortalException
Collection<String> getIdsByServiceId(String serviceId, ITransaction transaction) throws ManagerException, PortalException
serviceId
- transaction
- ManagerException
PortalException
IServiceInterface getServiceInterface(String serviceInterfaceId, ITransaction transaction) throws ManagerException, PortalException
serviceInterfaceId
- transaction
- ManagerException
PortalException
void registerServiceInterfaceTypes(SessionConfig sessionConfig, String serviceTypesConfigPath, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- serviceTypesConfigPath
- transaction
- ManagerException
PortalException
void unregisterServiceInterfaceType(String typeId, ITransaction transaction) throws ManagerException, PortalException
typeId
- transaction
- ManagerException
PortalException
ServiceInterfaceStyleConfig getStyle(SessionConfig sessionConfig, String serviceInterfaceStyleId, String serviceInterfaceId, ITransaction transaction) throws ManagerException, PortalException
serviceInterfaceStyleId
- serviceInterfaceId
- transaction
- ManagerException
PortalException
void addOrUpdateStyle(SessionConfig sessionConfig, ServiceInterfaceStyleConfig serviceInterfaceStyleConfig, ITransaction transaction) throws ManagerException, PortalException
The rules considered are:
sessionConfig
- the sessionConfig object that contains the
informations about the user request.serviceInterfaceStyleConfig
- the style object to be persisted.transaction
- used to get informations from database.ManagerException
- if any error occurs during the process
of communication with database.PortalException
- if any other error occurs during the process.void deleteStyle(SessionConfig sessionConfig, String serviceInterfaceStyleId, String serviceInterfaceId, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- serviceInterfaceStyleId
- serviceInterfaceId
- transaction
- ManagerException
PortalException
ServiceInterfaceStyleConfig getStyleByServiceInterfaceInstanceId(SessionConfig sessionConfig, String serviceInterfaceInstanceId, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- serviceInterfaceInstanceId
- transaction
- ManagerException
PortalException
void registerMenuGroupTypes(SessionConfig sessionConfig, String groupTypesConfigPath, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- groupTypesConfigPath
- transaction
- ManagerException
PortalException
void registerMenuItemTypes(SessionConfig sessionConfig, String itemTypesConfigPath, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- itemTypesConfigPath
- transaction
- ManagerException
PortalException
ServiceInterfaceMenuGroupTypeConfig getMenuGroupType(SessionConfig sessionConfig, String menuGroupTypeId, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- menuGroupTypeId
- transaction
- ManagerException
PortalException
ServiceInterfaceMenuItemTypeConfig getMenuItemType(SessionConfig sessionConfig, String menuItemTypeId, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- menuItemTypeId
- transaction
- ManagerException
PortalException
void unregister(SessionConfig sessionConfig, ServiceInterfaceConfig serviceInterfaceConfig, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- serviceInterfaceConfig
- transaction
- ManagerException
PortalException
Collection<String> getStyleIds(SessionConfig sessionConfig, String serviceInterfaceId, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- the sessionConfig object that contains the
informations about the user request.serviceInterfaceId
- Service Interface target.transaction
- used to get informations from database.ManagerException
- if any error occurs during the process
of communication with database.PortalException
- if any other error occurs during the process.Collection<String> getStyleIdsByInterfaceInstance(SessionConfig sessionConfig, String interfaceInstanceId, ITransaction transaction, boolean onlyCustomStyles) throws ManagerException, PortalException
The isolation rules are:
Non-Isolated
- Can
be used for any the interface instance. This level is the default for new
styles.Shared
- Can be
used just by service instances indicated by the user during the add or update
custom interface style process.sessionConfig
- the sessionConfig object that contains the informations about
the user request.interfaceInstanceId
- Interface instance target.transaction
- used to get informations from database.onlyCustomStyles
- determine if is to return only custom styles.ManagerException
- if any error occurs during the process of communication with
database.PortalException
- if any other error occurs during the process.void serializeStyle(SessionConfig sessionConfig, String serviceInterfaceStyleId, String serviceInterfaceId, OutputStream outputStream, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- serviceInterfaceStyleId
- serviceInterfaceId
- transaction
- ManagerException
PortalException
void deserializeStyle(SessionConfig sessionConfig, Node interfaceStyleNode, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- interfaceStyleNode
- transaction
- ManagerException
PortalException
void unregisterMenuItemType(SessionConfig sessionConfig, String typeId, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- typeId
- transaction
- ManagerException
PortalException
void unregisterMenuGroupType(SessionConfig sessionConfig, String typeId, ITransaction transaction) throws ManagerException, PortalException
sessionConfig
- typeId
- transaction
- ManagerException
PortalException
IConfigKeyChecker getStyleConfigKeyChecker()
LumisXP 12.5.0.200928 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.