Package org.silverpeas.components.silvercrawler.statistic

# Class Statistic

java.lang.Object
org.silverpeas.components.silvercrawler.statistic.Statistic

@Service public class Statistic extends Object

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final String`
  `DIRECTORY`
  `static final String`
  `FILE`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `addStat(String userId, File path, String componentId, String objectType)`
  `void`
  `deleteHistoryByObject(String path, String componentId)`
  `Collection<HistoryDetail>`
  `getHistoryByAction(String path, String componentId)`
  `Collection<HistoryByUser>`
  `getHistoryByObject(String path, String componentId)`
  `Collection<HistoryDetail>`
  `getHistoryByObjectAndUser(String path, String userId, String componentId)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### DIRECTORY

    public static final String DIRECTORY
    See Also:
      - Constant Field Values

  - ### FILE

    public static final String FILE
    See Also:
      - Constant Field Values

- ## Method Details

  - ### addStat

    public void addStat(String userId, File path, String componentId, String objectType)

  - ### getHistoryByObject

    public Collection<HistoryByUser> getHistoryByObject(String path, String componentId)

  - ### getHistoryByAction

    public Collection<HistoryDetail> getHistoryByAction(String path, String componentId)

  - ### getHistoryByObjectAndUser

    public Collection<HistoryDetail> getHistoryByObjectAndUser(String path, String userId, String componentId)

  - ### deleteHistoryByObject

    public void deleteHistoryByObject(String path, String componentId)