Package org.ametys.plugins.repository
Interface AmetysObject
- All Known Subinterfaces:
ACLAmetysObject
,Calendar
,CalendarEvent
,CalendarResource
,CDMEntity
,CommentableContent
,CommentableResource
,Content
,CopiableAmetysObject
,DataAndVersionAwareAmetysObject
,DataAwareAmetysObject
,DublinCoreAwareAmetysObject
,ExplorerNode
,JCRAmetysObject
,JCRTraversableAmetysObject
,LockableAmetysObject
,LockAwareAmetysObject
,MetadataAwareAmetysObject
,MetadataAwarePagesContainer
,ModelAwareDataAwareAmetysObject
,ModelAwareJCRAmetysObject
,ModelLessDataAwareAmetysObject
,ModelLessJCRAmetysObject
,ModifiableACLAmetysObject
,ModifiableAmetysObject
,ModifiableCalendar
,ModifiableCalendarEvent
,ModifiableContent
,ModifiableDataAwareVersionableAmetysObject
,ModifiableDublinCoreAwareAmetysObject
,ModifiableExplorerNode
,ModifiableMetadataAwareAmetysObject
,ModifiableModelAwareDataAwareAmetysObject
,ModifiableModelLessDataAwareAmetysObject
,ModifiablePage
,ModifiableResource
,ModifiableResourceCollection
,ModifiableSiteAwareAmetysObject
,ModifiableThread
,ModifiableTraversableAmetysObject
,ModifiableWebContent
,ModifiableWorkflowAwareContent
,ModifiableZone
,ModifiableZoneItem
,MovableAmetysObject
,MoveablePage
,Page
,PagesContainer
,ProgramItem
,ProgramPart
,RemovableAmetysObject
,Resource
,ResourceCollection
,SharedContent
,SiteAwareAmetysObject
,TagAwareAmetysObject
,TaggableAmetysObject
,Task
,TasksList
,Thread
,TraversableAmetysObject
,TraversableProgramPart
,VersionableAmetysObject
,VersionAwareAmetysObject
,WebContent
,WorkflowAwareAmetysObject
,WorkflowAwareContent
,Zone
,ZoneItem
- All Known Implementing Classes:
AbstractAmetysObject
,AbstractLevelPage
,AbstractOdfPage
,AbstractProgram
,AbstractProgramPart
,AbstractSurveyElement
,AbstractTraversableProgramPart
,AmetysObjectCollection
,Cart
,CartContainer
,Catalog
,CategoryJCR
,CMISResource
,CMISResourcesCollection
,CMISRootResourcesCollection
,CMSJCRTag
,Container
,ContentBackupAmetysObject
,Course
,CourseList
,CoursePage
,CoursePart
,CourseZone
,CourseZoneItem
,DefaultAlias
,DefaultAmetysObject
,DefaultContent
,DefaultDefinition
,DefaultLink
,DefaultLockableAmetysObject
,DefaultPage
,DefaultSharedContent
,DefaultTheme
,DefaultTraversableAmetysObject
,DefaultWebContent
,DefaultWorkflowAwareContent
,DefaultZone
,DefaultZoneItem
,FirstLevelPage
,FirstLevelZone
,FirstLevelZoneItem
,JCRCalendar
,JCRCalendarEvent
,JCRCalendarResource
,JCRCategory
,JCRPost
,JCRProjectMember
,JCRResource
,JCRResourcesCollection
,JCRTag
,JCRTask
,JCRTasksList
,JCRThread
,KeywordJCR
,ModifiableDefaultContent
,ModifiableDefaultWebContent
,OrgUnit
,OrgUnitPage
,OrgUnitZone
,OrgUnitZoneItem
,Person
,Program
,ProgramPage
,ProgramZone
,ProgramZoneItem
,Project
,ProjectTagJCR
,Query
,QueryContainer
,RedirectPage
,RootAmetysObject
,SecondLevelPage
,SecondLevelZone
,SecondLevelZoneItem
,SimpleAmetysObject
,Site
,Sitemap
,SubProgram
,Survey
,SurveyPage
,SurveyQuestion
,ThemeJCR
,Thesaurus
,TransitionalPage
,TransitionalZone
,TransitionalZoneItem
,UGCPage
,UGCTransitionalPage
,UGCTransitionalZone
,UGCTransitionalZoneItem
,UGCZone
,UGCZoneItem
,UserPage
,UserZone
,UserZoneItem
,VersionAmetysObject
,VersionComponentAmetysObject
,VersionsAmetysObject
public interface AmetysObject
Common interface for all Ametys objects.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Two AmetysObjects are equals if and only if their ids are equals.getId()
Retrieves the unique identifier of this AmetysObject.
It must be unique in the whole repository and must never be null.
It must conform to the URI syntax:
<protocol>://<protocol-specific-part>
getName()
Retrieves the name of the current object.<A extends AmetysObject>
AReturns the parent object in the Ametys hierarchy.Returns the path of the parent object in the Ametys hierarchy.getPath()
Retrieves the path of the current object.int
hashCode()
The hashCode of an AmetysObject must be the hashCode of its id.
-
Method Details
-
getName
Retrieves the name of the current object.- Returns:
- the name.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getPath
Retrieves the path of the current object.- Returns:
- the path.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getId
Retrieves the unique identifier of this AmetysObject.
It must be unique in the whole repository and must never be null.
It must conform to the URI syntax:
<protocol>://<protocol-specific-part>
- Returns:
- the unique identifier of this AmetysObject
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getParent
Returns the parent object in the Ametys hierarchy.- Type Parameters:
A
- the type of the parentAmetysObject
.- Returns:
- the parent object or
null
if current object is the root. - Throws:
AmetysRepositoryException
- if an error occurs.
-
getParentPath
Returns the path of the parent object in the Ametys hierarchy.- Returns:
- the path of the parent object.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
equals
Two AmetysObjects are equals if and only if their ids are equals. -
hashCode
int hashCode()The hashCode of an AmetysObject must be the hashCode of its id.
-