Class ScheduleEvent

  • All Implemented Interfaces:
    Serializable, ScheduleEventBean, org.silverpeas.core.contribution.model.Contribution, org.silverpeas.core.contribution.model.SilverpeasContent, org.silverpeas.core.contribution.model.SilverpeasToolContent, org.silverpeas.core.Identifiable, org.silverpeas.core.Instance<org.silverpeas.core.contribution.model.Contribution>, org.silverpeas.core.Nameable, org.silverpeas.core.security.Securable, org.silverpeas.core.SilverpeasResource

    @Entity
    public class ScheduleEvent
    extends Object
    implements org.silverpeas.core.contribution.model.SilverpeasToolContent, ScheduleEventBean, Serializable
    See Also:
    Serialized Form
    • Constructor Detail

      • ScheduleEvent

        public ScheduleEvent()
    • Method Detail

      • setUpId

        protected void setUpId()
      • getId

        public String getId()
        Specified by:
        getId in interface org.silverpeas.core.Identifiable
        Specified by:
        getId in interface ScheduleEventBean
        Specified by:
        getId in interface org.silverpeas.core.contribution.model.SilverpeasContent
      • getTitle

        public String getTitle()
        Specified by:
        getTitle in interface org.silverpeas.core.contribution.model.Contribution
        Specified by:
        getTitle in interface ScheduleEventBean
      • getDescription

        public String getDescription()
        Specified by:
        getDescription in interface org.silverpeas.core.contribution.model.Contribution
        Specified by:
        getDescription in interface org.silverpeas.core.Nameable
        Specified by:
        getDescription in interface ScheduleEventBean
      • getCreationDate

        public Date getCreationDate()
        Specified by:
        getCreationDate in interface ScheduleEventBean
        Specified by:
        getCreationDate in interface org.silverpeas.core.SilverpeasResource
      • getLastUpdater

        public org.silverpeas.core.admin.user.model.User getLastUpdater()
        Specified by:
        getLastUpdater in interface org.silverpeas.core.SilverpeasResource
      • getLastUpdateDate

        public Date getLastUpdateDate()
        Specified by:
        getLastUpdateDate in interface org.silverpeas.core.SilverpeasResource
      • getComponentInstanceId

        public String getComponentInstanceId()
        Specified by:
        getComponentInstanceId in interface org.silverpeas.core.contribution.model.SilverpeasContent
      • getCreator

        public org.silverpeas.core.admin.user.model.User getCreator()
        Specified by:
        getCreator in interface org.silverpeas.core.SilverpeasResource
      • getContributionType

        public String getContributionType()
        Specified by:
        getContributionType in interface org.silverpeas.core.contribution.model.Contribution
      • canBeAccessedBy

        public boolean canBeAccessedBy​(org.silverpeas.core.admin.user.model.User user)
        Is the specified user can access this content?

        The user can access this event if it is either the author or a contributor of this event.

        Specified by:
        canBeAccessedBy in interface org.silverpeas.core.contribution.model.Contribution
        Specified by:
        canBeAccessedBy in interface org.silverpeas.core.security.Securable
        Parameters:
        user - a user in Silverpeas.
        Returns:
        true if the tool belongs to the personal workspace of the specified user, false otherwise.
      • getResourceType

        public static String getResourceType()
        The type of this resource
        Returns:
        the same value returned by getContributionType()
      • getURL

        public String getURL()
        Specified by:
        getURL in interface org.silverpeas.core.contribution.model.SilverpeasToolContent
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object