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
,AbstractBlogPage
,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
,JCRWorkflow
,JCRWorkflowProcess
,KeywordJCR
,ModifiableDefaultContent
,ModifiableDefaultWebContent
,OrgUnit
,OrgUnitPage
,OrgUnitZone
,OrgUnitZoneItem
,Person
,PostListZone
,PostListZoneItem
,PostZone
,PostZoneItem
,Program
,ProgramPage
,ProgramZone
,ProgramZoneItem
,Project
,ProjectTagJCR
,Query
,QueryContainer
,RedirectPage
,RootAmetysObject
,SecondLevelPage
,SecondLevelZone
,SecondLevelZoneItem
,SimpleAmetysObject
,Site
,Sitemap
,StaticZone
,StaticZoneItem
,SubProgram
,Survey
,SurveyPage
,SurveyQuestion
,ThemeJCR
,Thesaurus
,TransitionalPage
,TransitionalZone
,TransitionalZoneItem
,UGCPage
,UGCTransitionalPage
,UGCTransitionalZone
,UGCTransitionalZoneItem
,UGCZone
,UGCZoneItem
,UserPage
,UserZone
,UserZoneItem
,VersionAmetysObject
,VersionComponentAmetysObject
,VersionsAmetysObject
,VirtualMonthPage
,VirtualPostPage
,VirtualPostsPage
,VirtualTagPage
,VirtualTagsPage
,VirtualYearPage
,VirtualYearsPage
public interface AmetysObject
Common interface for all Ametys objects.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
equals(Object obj)
Two AmetysObjects are equals if and only if their ids are equals.String
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>
String
getName()
Retrieves the name of the current object.<A extends AmetysObject>
AgetParent()
Returns the parent object in the Ametys hierarchy.String
getParentPath()
Returns the path of the parent object in the Ametys hierarchy.String
getPath()
Retrieves the path of the current object.int
hashCode()
The hashCode of an AmetysObject must be the hashCode of its id.
-
-
-
Method Detail
-
getName
String getName() throws AmetysRepositoryException
Retrieves the name of the current object.- Returns:
- the name.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getPath
String getPath() throws AmetysRepositoryException
Retrieves the path of the current object.- Returns:
- the path.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getId
String getId() throws AmetysRepositoryException
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
<A extends AmetysObject> A getParent() throws AmetysRepositoryException
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
String getParentPath() throws AmetysRepositoryException
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
boolean equals(Object obj)
Two AmetysObjects are equals if and only if their ids are equals.
-
-