public class PersistentResourceList extends Object
Modifier and Type | Field and Description |
---|---|
static String |
RESTART_ACTIVE_BUNDLES_ENTITY_ID |
static String |
RESTART_ACTIVE_BUNDLES_ID |
static String |
RESTART_ACTIVE_BUNDLES_TYPE
Entity id for restart active bundles.
|
Constructor and Description |
---|
PersistentResourceList(File dataFile,
InstallationListener listener) |
Modifier and Type | Method and Description |
---|---|
RegisteredResource |
addOrUpdate(InternalResource input)
Add or update an installable resource.
|
boolean |
compact()
Compact the internal state and remove empty groups.
|
Collection<String> |
getEntityIds() |
EntityResourceList |
getEntityResourceList(String entityId)
Get the resource group for an entity id.
|
List<RegisteredResource> |
getUntransformedResources()
Get the list of untransformed resources = resources without resource type
|
boolean |
isSpecialEntityId(String id)
Check if the id is a special id and should not be included in the info report
|
void |
remove(String url)
Remove a resource by url.
|
void |
save()
Persist the current state
|
void |
transform(RegisteredResource resource,
TransformationResult[] result)
Transform an unknown resource to a registered one
|
public static final String RESTART_ACTIVE_BUNDLES_TYPE
public static final String RESTART_ACTIVE_BUNDLES_ID
public static final String RESTART_ACTIVE_BUNDLES_ENTITY_ID
public PersistentResourceList(File dataFile, InstallationListener listener)
public void save()
public Collection<String> getEntityIds()
public RegisteredResource addOrUpdate(InternalResource input)
input
- The installable resourcepublic List<RegisteredResource> getUntransformedResources()
public void remove(String url)
url
- The url to removepublic EntityResourceList getEntityResourceList(String entityId)
public boolean compact()
true
if another cycle should be started.public void transform(RegisteredResource resource, TransformationResult[] result)
public boolean isSpecialEntityId(String id)
Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.