Class ScheduleEvent
java.lang.Object
org.silverpeas.components.scheduleevent.service.model.beans.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:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanBeAccessedBy(org.silverpeas.core.admin.user.model.User user) Is the specified user can access this content?booleanintorg.silverpeas.core.admin.user.model.UsergetDates()getId()org.silverpeas.core.admin.user.model.Userstatic StringThe type of this resourceintgetTitle()getURL()inthashCode()voidsetAuthor(int author) voidsetCreationDate(Date creationDate) voidsetDescription(String description) voidvoidsetStatus(int status) voidprotected voidsetUpId()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.silverpeas.core.contribution.model.Contribution
getModel, getName, getResourcePath, isIndexableMethods inherited from interface org.silverpeas.core.Instance
getParentMethods inherited from interface org.silverpeas.core.security.Securable
canBeDeletedBy, canBeFiledInBy, canBeModifiedByMethods inherited from interface org.silverpeas.core.contribution.model.SilverpeasContent
getIdentifier, getSilverpeasContentId
-
Field Details
-
TYPE
- See Also:
-
-
Constructor Details
-
ScheduleEvent
public ScheduleEvent()
-
-
Method Details
-
setUpId
protected void setUpId() -
getId
- Specified by:
getIdin interfaceorg.silverpeas.core.Identifiable- Specified by:
getIdin interfaceScheduleEventBean- Specified by:
getIdin interfaceorg.silverpeas.core.contribution.model.SilverpeasContent
-
setId
- Specified by:
setIdin interfaceScheduleEventBean
-
getTitle
- Specified by:
getTitlein interfaceorg.silverpeas.core.contribution.model.Contribution- Specified by:
getTitlein interfaceScheduleEventBean
-
setTitle
- Specified by:
setTitlein interfaceScheduleEventBean
-
getDescription
- Specified by:
getDescriptionin interfaceorg.silverpeas.core.contribution.model.Contribution- Specified by:
getDescriptionin interfaceorg.silverpeas.core.Nameable- Specified by:
getDescriptionin interfaceScheduleEventBean
-
setDescription
- Specified by:
setDescriptionin interfaceScheduleEventBean
-
getCreationDate
- Specified by:
getCreationDatein interfaceScheduleEventBean- Specified by:
getCreationDatein interfaceorg.silverpeas.core.SilverpeasResource
-
setCreationDate
- Specified by:
setCreationDatein interfaceScheduleEventBean
-
getLastUpdater
public org.silverpeas.core.admin.user.model.User getLastUpdater()- Specified by:
getLastUpdaterin interfaceorg.silverpeas.core.SilverpeasResource
-
getLastUpdateDate
- Specified by:
getLastUpdateDatein interfaceorg.silverpeas.core.SilverpeasResource
-
getAuthor
public int getAuthor()- Specified by:
getAuthorin interfaceScheduleEventBean
-
setAuthor
public void setAuthor(int author) - Specified by:
setAuthorin interfaceScheduleEventBean
-
getDates
- Specified by:
getDatesin interfaceScheduleEventBean
-
getContributors
- Specified by:
getContributorsin interfaceScheduleEventBean
-
getResponses
- Specified by:
getResponsesin interfaceScheduleEventBean
-
getStatus
public int getStatus()- Specified by:
getStatusin interfaceScheduleEventBean
-
setStatus
public void setStatus(int status) - Specified by:
setStatusin interfaceScheduleEventBean
-
getComponentInstanceId
- Specified by:
getComponentInstanceIdin interfaceorg.silverpeas.core.contribution.model.SilverpeasContent
-
getCreator
public org.silverpeas.core.admin.user.model.User getCreator()- Specified by:
getCreatorin interfaceorg.silverpeas.core.SilverpeasResource
-
getContributionType
- Specified by:
getContributionTypein interfaceorg.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:
canBeAccessedByin interfaceorg.silverpeas.core.contribution.model.Contribution- Specified by:
canBeAccessedByin interfaceorg.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
The type of this resource- Returns:
- the same value returned by getContributionType()
-
getURL
- Specified by:
getURLin interfaceorg.silverpeas.core.contribution.model.SilverpeasToolContent
-
hashCode
public int hashCode() -
equals
-