|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.sling.installer.core.impl.EntityResourceList
public class EntityResourceList
Persistent list of RegisteredResource, used by installer to keep track of all registered resources
Constructor Summary | |
---|---|
EntityResourceList()
|
Method Summary | |
---|---|
void |
addOrUpdate(TaskResource r)
|
boolean |
compact()
Compact the resource group by removing uninstalled entries |
TaskResource |
getActiveResource()
Return the first resource if it either needs to be installed or uninstalled. |
Collection<TaskResource> |
getResources()
|
boolean |
isEmpty()
The resource list is empty if it contains no resources. |
void |
remove(String url)
|
void |
remove(TaskResource r)
|
void |
setFinishState(ResourceState state)
Set the finish state for the resource. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EntityResourceList()
Method Detail |
---|
public boolean isEmpty()
public TaskResource getActiveResource()
getActiveResource
in interface TaskResourceGroup
public void setFinishState(ResourceState state)
setFinishState
in interface TaskResourceGroup
public Collection<TaskResource> getResources()
public void addOrUpdate(TaskResource r)
public void remove(String url)
public void remove(TaskResource r)
public boolean compact()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |