public abstract class AbstractProjectDataService<E,I> extends java.lang.Object implements ProjectDataService<E,I>
Modifier and Type | Field and Description |
---|---|
Computable.PredefinedValueComputable<java.util.Collection<I>> |
EMPTY_LIST |
EP_NAME
Constructor and Description |
---|
AbstractProjectDataService() |
Modifier and Type | Method and Description |
---|---|
Computable<java.util.Collection<I>> |
computeOrphanData(java.util.Collection<DataNode<E>> toImport,
ProjectData projectData,
Project project,
IdeModifiableModelsProvider modelsProvider)
Compute orphan data.
|
abstract Key<E> |
getTargetDataKey() |
void |
importData(java.util.Collection<DataNode<E>> toImport,
ProjectData projectData,
Project project,
IdeModifiableModelsProvider modelsProvider)
It's assumed that given data nodes present at the ide when this method returns.
|
void |
removeData(Computable<java.util.Collection<I>> toRemoveComputable,
java.util.Collection<DataNode<E>> toIgnore,
ProjectData projectData,
Project project,
IdeModifiableModelsProvider modelsProvider)
Asks to remove all given ide project entities.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onFailureImport, onSuccessImport, postProcess
public final Computable.PredefinedValueComputable<java.util.Collection<I>> EMPTY_LIST
public abstract Key<E> getTargetDataKey()
getTargetDataKey
in interface ProjectDataService<E,I>
public void importData(java.util.Collection<DataNode<E>> toImport, ProjectData projectData, Project project, IdeModifiableModelsProvider modelsProvider)
ProjectDataService
importData
in interface ProjectDataService<E,I>
public Computable<java.util.Collection<I>> computeOrphanData(java.util.Collection<DataNode<E>> toImport, ProjectData projectData, Project project, IdeModifiableModelsProvider modelsProvider)
ProjectDataService
computeOrphanData
in interface ProjectDataService<E,I>
public void removeData(Computable<java.util.Collection<I>> toRemoveComputable, java.util.Collection<DataNode<E>> toIgnore, ProjectData projectData, Project project, IdeModifiableModelsProvider modelsProvider)
ProjectDataService
ProjectDataService
might be configured for a target entity type, there is a possible case
that the entities have already been removed when this method is called. Then it's necessary to cleanup auxiliary data (if any)
or just return otherwise.removeData
in interface ProjectDataService<E,I>
toRemoveComputable
- project entities to removeproject
- target project