public abstract class AbstractDependencyDataService<E extends AbstractDependencyData<?>,I extends ExportableOrderEntry> extends AbstractProjectDataService<E,I>
EMPTY_LIST
EP_NAME
Constructor and Description |
---|
AbstractDependencyDataService() |
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.
|
protected java.lang.String |
getOrderEntryName(IdeModifiableModelsProvider modelsProvider,
I orderEntry) |
protected abstract java.lang.Class<I> |
getOrderEntryType() |
protected abstract java.util.Map<OrderEntry,OrderAware> |
importData(java.util.Collection<DataNode<E>> nodesToImport,
Module module,
IdeModifiableModelsProvider modelsProvider) |
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.
|
protected void |
removeData(java.util.Collection<? extends ExportableOrderEntry> toRemove,
Module module,
IdeModifiableModelsProvider modelsProvider) |
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.
|
getTargetDataKey
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onFailureImport, onSuccessImport, postProcess
public void importData(java.util.Collection<DataNode<E>> toImport, ProjectData projectData, Project project, IdeModifiableModelsProvider modelsProvider)
ProjectDataService
importData
in interface ProjectDataService<E extends AbstractDependencyData<?>,I extends ExportableOrderEntry>
importData
in class AbstractProjectDataService<E extends AbstractDependencyData<?>,I extends ExportableOrderEntry>
protected abstract java.util.Map<OrderEntry,OrderAware> importData(java.util.Collection<DataNode<E>> nodesToImport, Module module, IdeModifiableModelsProvider modelsProvider)
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 extends AbstractDependencyData<?>,I extends ExportableOrderEntry>
computeOrphanData
in class AbstractProjectDataService<E extends AbstractDependencyData<?>,I extends ExportableOrderEntry>
protected abstract java.lang.Class<I> getOrderEntryType()
protected java.lang.String getOrderEntryName(IdeModifiableModelsProvider modelsProvider, I orderEntry)
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 extends AbstractDependencyData<?>,I extends ExportableOrderEntry>
removeData
in class AbstractProjectDataService<E extends AbstractDependencyData<?>,I extends ExportableOrderEntry>
toRemoveComputable
- project entities to removeproject
- target projectprotected void removeData(java.util.Collection<? extends ExportableOrderEntry> toRemove, Module module, IdeModifiableModelsProvider modelsProvider)