public interface ConfigurationManager
| Modifier and Type | Method and Description |
|---|---|
Configuration |
add(Configuration config)
Creates a new element using the given configuration.
|
Configuration |
add(int projectID,
Configuration config)
Creates a new element using the given configuration and associates it to
the specified project.
|
Configuration |
get(int elementID)
Obtains the configuration of the given element.
|
Configuration |
getByName(int projectID,
String name,
String type)
Obtains the configuration of the given element.
|
Configuration |
getByName(String name,
String type)
Obtains the configuration of the given element.
|
Configuration |
getByName(String projectName,
String name,
String type)
Obtains the configuration of the given element.
|
Collection<Configuration> |
getBySubType(int projectID,
String type,
String subType)
Gets the collection of elements of the given type and subType associated
to the specified project.
|
Collection<Configuration> |
getBySubType(String type,
String subType)
Gets the collection of elements of the given type and subType.
|
Map<Integer,Collection<Integer>> |
getBySubTypeGroupedByProject(String type,
String subType)
Gets the collection of elements of the given type and subType.
|
Map<String,Set<Configuration>> |
getElementsUsedByElement(int elementID) |
Map<Integer,Map<Integer,String>> |
getProjectsBySubType(String type,
String subType)
Gets the project name and id the elements of the given type and subType
belong to.
|
void |
remove(int elementID)
Removes the element with the specified identifier.
|
void |
removeByProject(int projectID)
Removes all the application elements associated to the given project.
|
void |
removeBySubType(String type,
String subType)
Removes all the application elements of the given type and subType.
|
Configuration |
replicateElement(int projectID,
String newName,
Configuration config)
Creates a new element using the given new name and existing configuration
and associates it to the specified project.
|
Configuration |
update(Configuration config)
Modifies the configuration of the element.
|
Configuration add(Configuration config) throws DuplicateInstanceException, InternalErrorException
config - the configuration of the new element.Configuration.DuplicateInstanceException - if an element with the same name already exists.InternalErrorException - if an error occurs during the process.Configuration add(int projectID, Configuration config) throws DuplicateInstanceException, InternalErrorException
projectID - the name of the project.config - the configuration of the new element.Configuration.DuplicateInstanceException - if an element with the same name already exists.InternalErrorException - if an error occurs during the process.Configuration replicateElement(int projectID, String newName, Configuration config) throws DuplicateInstanceException, InternalErrorException
projectID - the name of the project.newName - the name for the replicated element.config - the configuration of element to be replicated.Configuration.DuplicateInstanceException - if an element with the same name already exists.InternalErrorException - if an error occurs during the process.Configuration get(int elementID) throws InstanceNotFoundException, InternalErrorException
elementID - identifier of the element.Configuration.InstanceNotFoundException - if no element with the specified identifier could be found.InternalErrorException - if an error occurs during the process.Configuration getByName(String name, String type) throws InstanceNotFoundException, InternalErrorException
name - name of the element.type - type of the required element.Configuration.InstanceNotFoundException - if no element with the specified identifier could be found.InternalErrorException - if an error occurs during the process.Configuration getByName(int projectID, String name, String type) throws InstanceNotFoundException, InternalErrorException
projectID - identifier of the project.name - name of the elementtype - the type of the elements required.Configuration.InstanceNotFoundException - if no element meeting the requirements could be found.InternalErrorException - if an error occurs during the process.Configuration getByName(String projectName, String name, String type) throws InstanceNotFoundException, InternalErrorException
projectName - name of the project.name - name of the elementtype - the type of the elements required.Configuration.InstanceNotFoundException - if no element meeting the requirements could be found.InternalErrorException - if an error occurs during the process.Collection<Configuration> getBySubType(int projectID, String type, String subType) throws InternalErrorException
projectID - identifier of the project.type - the type of the elements required. If is null the subType
parameter is ignored and a getByProjectID operation is
performed.subType - the subType of the elements required. If is null a getByType
operation is performed.Configuration.InternalErrorException - if an error occurs during the process.Collection<Configuration> getBySubType(String type, String subType) throws InternalErrorException
type - the type of the elements required. If is null the subType
parameter is ignored and a getAll operation is performed.subType - the subType of the elements required. If is null a getByType
operation is performed.Configuration.InternalErrorException - if an error occurs during the process.Map<Integer,Collection<Integer>> getBySubTypeGroupedByProject(String type, String subType) throws InternalErrorException
type - the type of the elements required.subType - the subType of the elements required. If is null a getByType
operation is performed.InternalErrorException - if an error occurs during the process.Map<Integer,Map<Integer,String>> getProjectsBySubType(String type, String subType) throws InternalErrorException
type - the type of the elements required.subType - the subType of the elements required. If is null a getByType
operation is performed.InternalErrorException - if an error occurs during the process.Configuration update(Configuration config) throws DuplicateInstanceException, InstanceNotFoundException, InternalErrorException
config - the configuration of the element.Configuration.DuplicateInstanceException - if the element name is modified and an element with the same
name already exists.InstanceNotFoundException - if the element does not exist.InternalErrorException - if an error occurs during the process.void remove(int elementID)
throws InstanceNotFoundException,
InternalErrorException
elementID - the identifier of the project.InstanceNotFoundException - if no element with the specified identifier could be found.InternalErrorException - if an error occurs during the process.void removeByProject(int projectID)
throws InternalErrorException
projectID - InternalErrorException - if an error occurs during the process.void removeBySubType(String type, String subType) throws InternalErrorException
type - the type of the elements required.subType - the subType of the elements required. If is null a
removeByType operation is performed.InternalErrorException - if an error occurs during the process.Map<String,Set<Configuration>> getElementsUsedByElement(int elementID) throws InstanceNotFoundException, InternalErrorException
elementID - InstanceNotFoundExceptionInternalErrorExceptionCopyright © 2024 Denodo Technologies. All rights reserved.