|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.sling.installer.core.impl.PersistentResourceList
public class PersistentResourceList
Persistent list of RegisteredResource, used by installer to keep track of all registered resources
Constructor Summary | |
---|---|
PersistentResourceList(File dataFile)
|
Method Summary | |
---|---|
void |
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 |
void |
remove(String url)
Remove a resource by url. |
void |
remove(TaskResource r)
Remove a resource. |
void |
save()
Persist the current state |
void |
transform(RegisteredResource resource,
TransformationResult[] result)
Transform an unknown resource to a registered one |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PersistentResourceList(File dataFile)
Method Detail |
---|
public void save()
public Collection<String> getEntityIds()
public void addOrUpdate(InternalResource input)
input
- The installable resourcepublic List<RegisteredResource> getUntransformedResources()
public void remove(String url)
url
- The url to removepublic void remove(TaskResource r)
public EntityResourceList getEntityResourceList(String entityId)
public boolean compact()
public void transform(RegisteredResource resource, TransformationResult[] result)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |