public class ModelFragmentManagementImpl extends ModelFragmentManagementProxy implements IModelFragmentManagement
Constructor and Description |
---|
ModelFragmentManagementImpl() |
Modifier and Type | Method and Description |
---|---|
java.io.File |
packageFragment(ModelFragmentRessource fragment,
java.io.File fileRoot)
This method handles the packaging of a giving ModelFragment and its resources (xmifile, resourceFiles, propertyFiles).
|
void |
publish(java.io.File fragment) |
java.io.File |
retrieve(java.lang.Integer fragmentId,
java.io.File outputDir)
This method handles the unpackaging of the given archive inside an existing ouputDir
and returns the corresponding Model Fragment
|
java.util.List<java.io.File> |
retrieveAll(java.lang.Integer fragmentId,
java.io.File outputDir)
retrieves a model fragment identified by a given Id and this dependences and unpackaging i
|
deleteModelFragment, deleteModelFragments, findAllModelFragments, findModelFragmentById, findModelFragmentByIds, findModelFragmentsByNameAndVersion, getEndpoint, getModelFragmentManagement, publish, retrieve, setEndpoint
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deleteModelFragment, deleteModelFragments, findAllModelFragments, findModelFragmentById, findModelFragmentByIds, findModelFragmentsByNameAndVersion, publish, retrieve
public java.io.File packageFragment(ModelFragmentRessource fragment, java.io.File fileRoot)
packageFragment
in interface IModelFragmentManagement
fragment
- : the ModelFragment to packagefileRoot
- : the folder which will contain the created archive and containing all the resources (xmifile, resourceFiles, propertyFiles)public java.io.File retrieve(java.lang.Integer fragmentId, java.io.File outputDir) throws java.io.IOException, java.util.zip.ZipException
retrieve
in interface IModelFragmentManagement
outputDir
- : the root folder of the unpackaging resultjava.util.zip.ZipException
- ZipExceptionjava.io.IOException
- IOExceptionpublic java.util.List<java.io.File> retrieveAll(java.lang.Integer fragmentId, java.io.File outputDir) throws java.io.IOException, java.util.zip.ZipException
retrieveAll
in interface IModelFragmentManagement
fragmentId
- : the identified ModelFragmentoutputDir
- : the folder where the ModelFragment is unpackagedjava.util.zip.ZipException
- IOExceptionjava.io.IOException
- ZipExceptionpublic void publish(java.io.File fragment) throws java.io.IOException
publish
in interface IModelFragmentManagement
java.io.IOException