public interface AsConfigurationService
| Modifier and Type | Method and Description |
|---|---|
<T extends AbstractAsConfigurationModel> |
createConfiguration(java.lang.Class<T> type)
Creates a new configuration.
|
<T extends AbstractAsConfigurationModel> |
getConfigurationForUid(java.lang.Class<T> type,
CatalogVersionModel catalogVersion,
java.lang.String uid)
Returns the configuration for a specific type, catalog version and uid.
|
boolean |
moveConfiguration(AbstractAsConfigurationModel parentConfiguration,
java.lang.String sourceAttribute,
java.lang.String targetAttribute,
java.lang.String uid)
Moves a configuration, all compatible attributes are copied.
|
java.util.List<AsRankChange> |
rankAfterConfiguration(AbstractAsConfigurationModel parentConfiguration,
java.lang.String attribute,
java.lang.String rankAfterUid,
java.lang.String... uids)
Ranks multiple configurations after another one.
|
java.util.List<AsRankChange> |
rankBeforeConfiguration(AbstractAsConfigurationModel parentConfiguration,
java.lang.String attribute,
java.lang.String rankBeforeUid,
java.lang.String... uids)
Ranks multiple configurations before another one.
|
void |
removeConfiguration(AbstractAsConfigurationModel configuration)
Removes the given configuration.
|
AsRankChange |
rerankConfiguration(AbstractAsConfigurationModel parentConfiguration,
java.lang.String attribute,
java.lang.String uid,
int change)
Reranks a configuration.
|
void |
saveConfiguration(AbstractAsConfigurationModel configuration)
Saves the given configuration.
|
<T extends AbstractAsConfigurationModel> java.util.Optional<T> getConfigurationForUid(java.lang.Class<T> type, CatalogVersionModel catalogVersion, java.lang.String uid)
type - - the typecatalogVersion - - the catalog versionuid - - the unique identifier<T extends AbstractAsConfigurationModel> T createConfiguration(java.lang.Class<T> type)
type - - the typevoid saveConfiguration(AbstractAsConfigurationModel configuration)
configuration - - the configurationvoid removeConfiguration(AbstractAsConfigurationModel configuration)
configuration - - the configurationboolean moveConfiguration(AbstractAsConfigurationModel parentConfiguration, java.lang.String sourceAttribute, java.lang.String targetAttribute, java.lang.String uid)
parentConfiguration - - the parent configurationsourceAttribute - - the source attributetargetAttribute - - the target attributeuid - - the the unique identifiertrue if the configuration was moved, false otherwiseAttributeNotSupportedException - if sourceAttribute or targetAttribute do not exist on the given parentConfiguration or are not of type
AbstractAsConfigurationModeljava.util.List<AsRankChange> rankBeforeConfiguration(AbstractAsConfigurationModel parentConfiguration, java.lang.String attribute, java.lang.String rankBeforeUid, java.lang.String... uids)
parentConfiguration - - the parent configurationattribute - - the attributerankBeforeUid - - the rank before unique identifieruids - - the the unique identifiersAttributeNotSupportedException - if attribute does not exist on the given parentConfiguration or is not of type
AbstractAsConfigurationModeljava.util.List<AsRankChange> rankAfterConfiguration(AbstractAsConfigurationModel parentConfiguration, java.lang.String attribute, java.lang.String rankAfterUid, java.lang.String... uids)
parentConfiguration - - the parent configurationattribute - - the attributerankAfterUid - - the rank before unique identifieruids - - the the unique identifiersAttributeNotSupportedException - if attribute does not exist on the given parentConfiguration or is not of type
AbstractAsConfigurationModelAsRankChange rerankConfiguration(AbstractAsConfigurationModel parentConfiguration, java.lang.String attribute, java.lang.String uid, int change)
parentConfiguration - - the parent configurationattribute - - the attributeuid - - the the unique identifierchange - - the changeAttributeNotSupportedException - if attribute does not exist on the given parentConfiguration or is not of type
AbstractAsConfigurationModelCopyright © 2018 SAP SE. All Rights Reserved.