|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sonar.batch.DefaultDecoratorContext
public class DefaultDecoratorContext
Constructor Summary | |
---|---|
DefaultDecoratorContext(Resource resource,
DefaultSonarIndex index,
List<DecoratorContext> childrenContexts,
DatabaseSession session,
ViolationsDao violationsDao)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultDecoratorContext(Resource resource, DefaultSonarIndex index, List<DecoratorContext> childrenContexts, DatabaseSession session, ViolationsDao violationsDao)
Method Detail |
---|
public DefaultDecoratorContext setReadOnly(boolean b)
public Project getProject()
getProject
in interface DecoratorContext
public List<DecoratorContext> getChildren()
DecoratorContext
getChildren
in interface DecoratorContext
public <M> M getMeasures(MeasuresFilter<M> filter)
DecoratorContext
getMeasures
in interface DecoratorContext
public Measure getMeasure(Metric metric)
DecoratorContext
getMeasure
in interface DecoratorContext
public Collection<Measure> getChildrenMeasures(MeasuresFilter filter)
DecoratorContext
getChildrenMeasures
in interface DecoratorContext
public Collection<Measure> getChildrenMeasures(Metric metric)
getChildrenMeasures
in interface DecoratorContext
public Resource getResource()
getResource
in interface DecoratorContext
public DecoratorContext saveMeasure(Measure measure)
DecoratorContext
saveMeasure
in interface DecoratorContext
public DecoratorContext saveMeasure(Metric metric, Double value)
DecoratorContext
saveMeasure
in interface DecoratorContext
public List<Violation> getViolations()
DecoratorContext
getViolations
in interface DecoratorContext
public Dependency saveDependency(Dependency dependency)
saveDependency
in interface DecoratorContext
public Set<Dependency> getDependencies()
getDependencies
in interface DecoratorContext
public Collection<Dependency> getIncomingDependencies()
getIncomingDependencies
in interface DecoratorContext
public Collection<Dependency> getOutgoingDependencies()
getOutgoingDependencies
in interface DecoratorContext
protected DatabaseSession getSession()
public List<Event> getEvents()
getEvents
in interface DecoratorContext
public Event createEvent(String name, String description, String category, Date date)
DecoratorContext
createEvent
in interface DecoratorContext
name
- the event namedescription
- the event descriptioncategory
- the event categorydate
- the event date
public void deleteEvent(Event event)
DecoratorContext
deleteEvent
in interface DecoratorContext
event
- the event to deletepublic DefaultDecoratorContext saveViolation(Violation violation)
DecoratorContext
saveViolation
in interface DecoratorContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |