|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sonar.api.batch.SonarIndex
@Deprecated public abstract class SonarIndex
Constructor Summary | |
---|---|
SonarIndex()
Deprecated. |
Method Summary | ||
---|---|---|
abstract Dependency |
addDependency(Dependency dependency)
Deprecated. |
|
abstract Event |
addEvent(Resource resource,
String name,
String description,
String category,
Date date)
Deprecated. |
|
abstract void |
addLink(ProjectLink link)
Deprecated. |
|
abstract Measure |
addMeasure(Resource resource,
Measure measure)
Deprecated. Warning: the resource is automatically indexed for backward-compatibility, but it should be explictly indexed before. |
|
abstract Resource |
addResource(Resource resource)
Deprecated. since 2.6. Use methods index() |
|
void |
addViolation(Violation violation)
Deprecated. in 3.6 |
|
abstract void |
addViolation(Violation violation,
boolean force)
Deprecated. in 3.6 |
|
abstract void |
deleteEvent(Event event)
Deprecated. |
|
abstract void |
deleteLink(String key)
Deprecated. |
|
abstract Collection<Resource> |
getChildren(Resource reference)
Deprecated. |
|
abstract Set<Dependency> |
getDependencies()
Deprecated. |
|
abstract List<Event> |
getEvents(Resource resource)
Deprecated. |
|
Collection<Dependency> |
getIncomingDependencies(Resource to)
Deprecated. |
|
abstract Measure |
getMeasure(Resource resource,
Metric<?> metric)
Deprecated. |
|
abstract
|
getMeasures(Resource resource,
MeasuresFilter<M> filter)
Deprecated. |
|
Collection<Dependency> |
getOutgoingDependencies(Resource from)
Deprecated. |
|
abstract Resource |
getParent(Resource reference)
Deprecated. |
|
abstract Project |
getProject()
Deprecated. |
|
abstract
|
getResource(R reference)
Deprecated. Search for an indexed resource. |
|
Collection<Resource> |
getResources()
Deprecated. |
|
abstract String |
getSource(Resource resource)
Deprecated. |
|
List<Violation> |
getViolations(Resource resource)
Deprecated. in 3.6 |
|
abstract List<Violation> |
getViolations(ViolationQuery violationQuery)
Deprecated. in 3.6 |
|
abstract boolean |
index(Resource resource)
Deprecated. Indexes a resource as a direct child of project. |
|
abstract boolean |
index(Resource resource,
Resource parentReference)
Deprecated. Indexes a resource. |
|
abstract boolean |
isExcluded(Resource reference)
Deprecated. Returns true if the referenced resource is excluded. |
|
abstract boolean |
isIndexed(Resource reference,
boolean acceptExcluded)
Deprecated. |
|
abstract void |
setSource(Resource reference,
String source)
Deprecated. since 4.2 should not be used by plugins |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.sonar.graph.DirectedGraphAccessor |
---|
getEdge, getIncomingEdges, getOutgoingEdges, getVertices, hasEdge |
Constructor Detail |
---|
public SonarIndex()
Method Detail |
---|
public abstract boolean index(Resource resource)
public abstract boolean index(Resource resource, Resource parentReference)
resource
- the resource to index. Not nullableparentReference
- a reference to the indexed parent. If null, the resource is indexed as a direct child of project.
public abstract boolean isExcluded(Resource reference)
public abstract boolean isIndexed(Resource reference, boolean acceptExcluded)
public abstract <R extends Resource> R getResource(R reference)
reference
- the resource reference
public abstract Resource getParent(Resource reference)
public abstract Collection<Resource> getChildren(Resource reference)
@Deprecated public abstract void setSource(Resource reference, String source)
DuplicatedSourceException
- if the source has already been set on this resource@CheckForNull public abstract String getSource(Resource resource)
null
if not available
(for example when sonar.importSources=false)public abstract Project getProject()
public final Collection<Resource> getResources()
@Deprecated public abstract Resource addResource(Resource resource)
@CheckForNull public abstract Measure getMeasure(Resource resource, Metric<?> metric)
@CheckForNull public abstract <M> M getMeasures(Resource resource, MeasuresFilter<M> filter)
@Deprecated public abstract List<Violation> getViolations(ViolationQuery violationQuery)
ViolationQuery
parameters.
violationQuery
- the request parameters specified as a ViolationQuery
@Deprecated public final List<Violation> getViolations(Resource resource)
getViolations(ViolationQuery)
called with ViolationQuery.create().forResource(resource).ignoreSwitchedOff(true)
as a parameter.
@Deprecated public abstract void addViolation(Violation violation, boolean force)
@Deprecated public final void addViolation(Violation violation)
public abstract Measure addMeasure(Resource resource, Measure measure)
public abstract Dependency addDependency(Dependency dependency)
public abstract Set<Dependency> getDependencies()
public abstract void addLink(ProjectLink link)
public abstract void deleteLink(String key)
public abstract List<Event> getEvents(Resource resource)
public abstract void deleteEvent(Event event)
public abstract Event addEvent(Resource resource, String name, String description, String category, Date date)
public final Collection<Dependency> getOutgoingDependencies(Resource from)
public final Collection<Dependency> getIncomingDependencies(Resource to)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |