|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dsrg.sofa.repository.RepositoryDeleter
public class RepositoryDeleter
This class is responsible for deleting any data from the repository.
Constructor Summary | |
---|---|
RepositoryDeleter(NodeConfiguration configuration)
This constructor should not be used by public. |
Method Summary | |
---|---|
void |
delete(java.util.List<VersionedEntity> entityList,
boolean deleteDependencies)
Main method of this class. |
void |
delete(VersionedEntity entity,
boolean deleteDependencies)
Main method of this class. |
java.util.List<VersionedEntity> |
getDeletingDependencies(VersionedEntity entity)
Function for getting all dependencies that should be deleted with the entity. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RepositoryDeleter(NodeConfiguration configuration)
rs
- RepositoryAgent's ResourceSetMethod Detail |
---|
public void delete(VersionedEntity entity, boolean deleteDependencies) throws java.io.IOException
entity
- VersionedEntity to be deleted from RepositorydeleteDepencies
- Boolean indicating whether the dependencies of the entity should also be deleted.
You probably want this to be set to true.
java.io.IOException
public void delete(java.util.List<VersionedEntity> entityList, boolean deleteDependencies) throws java.io.IOException
entityList
- List of VersionedEntities to be deleted from RepositorydeleteDepencies
- Boolean indicating whether the dependencies of the entities should also be deleted.
You probably want this to be set to true.
java.io.IOException
public java.util.List<VersionedEntity> getDeletingDependencies(VersionedEntity entity)
entity
- The entity which is about to be deleted.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |