Package org.silverpeas.core
Interface SilverpeasResource
-
- All Superinterfaces:
Nameable
- All Known Subinterfaces:
Attachment
,Contribution
,Folder
,I18nContribution
,LocalizedAttachment
,LocalizedContribution
,LocalizedResource
,SilverContentInterface
,SilverpeasContent
,SilverpeasSharedComponentInstance
,SilverpeasToolContent
,ValidableContribution
- All Known Implementing Classes:
AbstractSilverpeasContentManager.ContributionWrapper
,BasketItem
,CalendarEvent
,CalendarEventOccurrence
,Comment
,ComponentInst
,ComponentInstLight
,Document
,DragAndDropWebEditorStore
,HistorisedDocument
,HistorisedDocumentVersion
,NodeDetail
,PublicationDetail
,QuestionContainerDetail
,QuestionContainerHeader
,SilverContent
,SimpleDocument
,SimpleDocumentVersion
,SpaceInst
,SpaceInstLight
public interface SilverpeasResource extends Nameable
A resource managed in Silverpeas that is uniquely identifiable. This interface is the more generic representation of a resource of any type managed in Silverpeas. All conceptual resources in use in Silverpeas should implement this interface. It encapsulates the more generic methods a unique identifiable resource in Silverpeas should satisfy.- Author:
- mmoquillon
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Date
getCreationDate()
Gets the date at which the resource has been created.User
getCreator()
Gets the user that has created the resource.<T extends ResourceIdentifier>
TgetIdentifier()
Gets the unique identifier of this resource.Date
getLastUpdateDate()
Gets the date at which the resource has been lastly updated.User
getLastUpdater()
Gets the user that has lastly updated the resource.-
Methods inherited from interface org.silverpeas.core.Nameable
getDescription, getName
-
-
-
-
Method Detail
-
getIdentifier
<T extends ResourceIdentifier> T getIdentifier()
Gets the unique identifier of this resource.- Returns:
- the
ResourceIdentifier
object representing the unique identifier of the resource.
-
getCreationDate
Date getCreationDate()
Gets the date at which the resource has been created.- Returns:
- the date of creation of the resource.
-
getLastUpdateDate
Date getLastUpdateDate()
Gets the date at which the resource has been lastly updated. If the resource doesn't have such an information, then this method should return the date of the resource creation.- Returns:
- the date of the last update of the resource.
-
getCreator
User getCreator()
Gets the user that has created the resource.- Returns:
- a
User
in Silverpeas.
-
-