Home | Trees | Indices | Help |
|
---|
|
Represents an entity managed by a ComodIT server. An entity instance may be used to create or alter a remote entity. In most situations, this will imply the update of object's state and then a call to respectively create or update in order to 'commit' changes to the server. Note that the renaming of an entity is a particular case of update and should be done by calling rename. Object's state is generally accessed with properties.
An entity instance should always be obtained through a collection,
either by calling get or a factory method (generally, new
).
This ensures that the entity is associated to a collection, which is
mandatory in order to interact with a ComodIT server. You may instantiate
an entity without collection, in which case you will still be able to
alter object's state. However, it will be impossible to commit these
changes unless collection field is set.
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from |
Properties | |
string |
url URL of remote entity on ComodIT server. |
Client |
client ComodIT client. |
string |
name Name of this entity. |
string |
uuid ComodIT's UUID for this entity. |
string |
identifier Identifier of the entity. |
string |
label A very short description of the entity. |
string |
description The description of this entity. |
Inherited from |
Method Details |
Creates an instance of entity. Note that
|
Refreshes the state of this object with data retrieved from ComodIT server.
|
Renames remote entity. Note that remote entity will be updated if other fields where modified. For example, if you change entity's description and then call this method, description of remote entity will be updated in addition to its name.
|
Updates remote entity with this object's state.
|
Creates a new entity on the server using this object's state for initialization.
|
Deletes associated remote entity from the server.
|
Prints this entity's state to standard output. The state may be indented. It can also be displayed directly in JSON representation.
|
Dumps the state of this object in given folder. Several files may be created in destination folder, as well as sub-folders.
|
Loads the state of this object from files contained by given folder.
|
Property Details |
urlURL of remote entity on ComodIT server. This URL is relative to ComodIT server's API URL and should not start with a slash.
|
clientComodIT client.
|
nameName of this entity.
|
uuidComodIT's UUID for this entity.
|
identifierIdentifier of the entity. The identifier is unique in entity's collection and can therefore be used to get the entity. This value is generally entity's name but may also be the UUID or another field depending on entity type.
|
labelA very short description of the entity. This value generally includes entity's identifier.
|
descriptionThe description of this entity.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Dec 5 14:16:50 2017 | http://epydoc.sourceforge.net |