@Service
@ConditionalOnProperty(value="punchline.enabled",
havingValue="true")
@ConditionalOnBean(value=ResourcesManagerConfiguration.class)
public class PunchlineResourcesService
extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
delete(String punchlineId)
Delete a saved Punchline
|
org.thales.punch.settings.api.ISettingsMap |
execute(String tenant,
String punchlineId) |
org.thales.punch.settings.api.ISettingsList |
getAll() |
byte[] |
getOne(String punchlineId) |
org.thales.punch.settings.api.ISettingsMap |
save(String tenant,
byte[] punchlineContent) |
org.thales.punch.settings.api.ISettingsMap |
save(String tenant,
byte[] punchlineContent,
String punchlinePrefix)
Save a Punchline
|
public org.thales.punch.settings.api.ISettingsMap save(String tenant, byte[] punchlineContent, String punchlinePrefix) throws org.thales.punch.exceptions.ConfigurationException
tenant - Tenant namepunchlineContent - Punchline to savepunchlinePrefix - prefix to be followed with unique idorg.thales.punch.exceptions.ConfigurationExceptionpublic org.thales.punch.settings.api.ISettingsMap save(String tenant, byte[] punchlineContent) throws org.thales.punch.exceptions.ConfigurationException
org.thales.punch.exceptions.ConfigurationExceptionpublic org.thales.punch.settings.api.ISettingsList getAll()
public byte[] getOne(String punchlineId) throws org.thales.punch.exceptions.ConfigurationException, IOException
org.thales.punch.exceptions.ConfigurationExceptionIOExceptionpublic org.thales.punch.settings.api.ISettingsMap execute(String tenant, String punchlineId) throws org.thales.punch.exceptions.ConfigurationException, IOException
tenant - Tenant namepunchlineId - Punchline Id to executeorg.thales.punch.exceptions.ConfigurationExceptionIOExceptionpublic void delete(String punchlineId) throws org.thales.punch.exceptions.ConfigurationException
punchlineId - Punchline ID to deleteorg.thales.punch.exceptions.ConfigurationExceptionCopyright © 2023. All rights reserved.