Interface ActivityHolderAmetysObject

All Superinterfaces:
ActivityHolder
All Known Implementing Classes:
Project, Site

AmetysObject that can store activities
  • Method Details

    • getActivityHolder

      ActivityHolder getActivityHolder() throws javax.jcr.RepositoryException
      Returns the activity holder holding the activities
      Returns:
      the activity holder
      Throws:
      javax.jcr.RepositoryException - if failed to get activity holder node
    • getActivities

      default AmetysObjectIterable<Activity> getActivities() throws javax.jcr.RepositoryException
      Description copied from interface: ActivityHolder
      Returns the activities stored by this activity holder
      Specified by:
      getActivities in interface ActivityHolder
      Returns:
      The activities
      Throws:
      javax.jcr.RepositoryException - if failed to get activity nodes
    • addActivity

      default Activity addActivity(ActivityType type, Map<String,Object> parameters, String eventId) throws javax.jcr.RepositoryException
      Description copied from interface: ActivityHolder
      Add an activity to the activity holder
      Specified by:
      addActivity in interface ActivityHolder
      Parameters:
      type - the type
      parameters - the parameters
      eventId - the id of the event
      Returns:
      the activity
      Throws:
      javax.jcr.RepositoryException - when an error occurred
    • addActivity

      default Activity addActivity(ZonedDateTime date, ActivityType type, Map<String,Object> parameters, UserIdentity author, String eventId) throws javax.jcr.RepositoryException
      Description copied from interface: ActivityHolder
      Add an activity to the activity holder
      Specified by:
      addActivity in interface ActivityHolder
      Parameters:
      date - the date
      type - the type
      parameters - the parameters
      author - the author
      eventId - the id of the event
      Returns:
      the activity
      Throws:
      javax.jcr.RepositoryException - when an error occurred