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,
java.lang.String name,
java.lang.String type)
Obtains the configuration of the given element.
|
Configuration |
getByName(java.lang.String name,
java.lang.String type)
Obtains the configuration of the given element.
|
Configuration |
getByName(java.lang.String projectName,
java.lang.String name,
java.lang.String type)
Obtains the configuration of the given element.
|
java.util.Collection<Configuration> |
getBySubType(int projectID,
java.lang.String type,
java.lang.String subType)
Gets the collection of elements of the given type and subType associated
to the specified project.
|
java.util.Collection<Configuration> |
getBySubType(java.lang.String type,
java.lang.String subType)
Gets the collection of elements of the given type and subType.
|
java.util.Map<java.lang.Integer,java.util.Collection<java.lang.Integer>> |
getBySubTypeGroupedByProject(java.lang.String type,
java.lang.String subType)
Gets the collection of elements of the given type and subType.
|
java.util.Map<java.lang.String,java.util.Set<Configuration>> |
getElementsUsedByElement(int elementID) |
java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,java.lang.String>> |
getProjectsBySubType(java.lang.String type,
java.lang.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(java.lang.String type,
java.lang.String subType)
Removes all the application elements of the given type and subType.
|
Configuration |
replicateElement(int projectID,
java.lang.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, java.lang.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(java.lang.String name, java.lang.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, java.lang.String name, java.lang.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(java.lang.String projectName, java.lang.String name, java.lang.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.java.util.Collection<Configuration> getBySubType(int projectID, java.lang.String type, java.lang.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.java.util.Collection<Configuration> getBySubType(java.lang.String type, java.lang.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.java.util.Map<java.lang.Integer,java.util.Collection<java.lang.Integer>> getBySubTypeGroupedByProject(java.lang.String type,
java.lang.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.java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,java.lang.String>> getProjectsBySubType(java.lang.String type,
java.lang.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(java.lang.String type,
java.lang.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.java.util.Map<java.lang.String,java.util.Set<Configuration>> getElementsUsedByElement(int elementID) throws InstanceNotFoundException, InternalErrorException
elementID - InstanceNotFoundExceptionInternalErrorExceptionCopyright © 2024 Denodo Technologies. All rights reserved.