|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.sling.discovery.impl.common.View
public class View
DAO for a view stored in the repository.
Field Summary | |
---|---|
protected static String |
VIEW_PROPERTY_CLUSTER_ID
|
protected static String |
VIEW_PROPERTY_CLUSTER_ID_DEFINED_AT
|
protected static String |
VIEW_PROPERTY_CLUSTER_ID_DEFINED_BY
|
Constructor Summary | |
---|---|
View(org.apache.sling.api.resource.Resource resource)
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
org.apache.sling.api.resource.Resource |
getResource()
Returns the underlying resource of this view. |
String |
getViewId()
Returns the id of this view. |
int |
hashCode()
|
boolean |
matches(Set<String> view)
Compare this view with the given set of slingIds |
boolean |
matchesLiveView(org.apache.sling.api.resource.Resource clusterInstancesRes,
Config config)
Checks whether this view matches the 'live view' as represented in the clusterInstances resource |
void |
remove()
Delete this view from the repository |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String VIEW_PROPERTY_CLUSTER_ID
protected static final String VIEW_PROPERTY_CLUSTER_ID_DEFINED_AT
protected static final String VIEW_PROPERTY_CLUSTER_ID_DEFINED_BY
Constructor Detail |
---|
public View(org.apache.sling.api.resource.Resource resource)
Method Detail |
---|
public org.apache.sling.api.resource.Resource getResource()
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String getViewId()
public boolean matchesLiveView(org.apache.sling.api.resource.Resource clusterInstancesRes, Config config)
clusterInstancesRes
- the clusterInstances resource against which to check
public boolean matches(Set<String> view)
view
- a set of slingIds against which to compare this view
public void remove()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |