public interface AmetysObject
Modifier and Type | Method and 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> |
getParent()
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.
|
String getName() throws AmetysRepositoryException
AmetysRepositoryException
- if an error occurs.String getPath() throws AmetysRepositoryException
AmetysRepositoryException
- if an error occurs.String getId() throws AmetysRepositoryException
<protocol>://<protocol-specific-part>
AmetysRepositoryException
- if an error occurs.<A extends AmetysObject> A getParent() throws AmetysRepositoryException
A
- the type of the parent AmetysObject
.null
if current object
is the root.AmetysRepositoryException
- if an error occurs.String getParentPath() throws AmetysRepositoryException
AmetysRepositoryException
- if an error occurs.