|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ScenariNode
Représente un noeud Scenari correspondant à un document Nuxeo.
Nested Class Summary | |
---|---|
static class |
ScenariNode.VersionOrigin
|
Method Summary | |
---|---|
void |
createNetVersion(String pComment,
Map<String,Object> pOptions)
Créé une nouvelle version à partir cet item racine. |
org.nuxeo.ecm.core.api.DocumentModel |
getDocumentModel()
Objet de l'API Nuxeo représentant ce noeud. |
String |
getId()
Id nuxeo de ce noeud. |
List<ScenariLink> |
getLinks()
Retourne les liens vers d'autres items de cet item. |
String |
getLiveId()
Id du "live" document auquel appartient cette version. |
String |
getModificationUser()
Compte de l'utilisateur ayant réalisé la dernière modification. |
String |
getName()
Fragment terminal du chemin correspondant au nom du fichier ou du dossier. |
List<ScenariItem> |
getNetVersions()
Retourne la liste des versions dont cet item a été la racine. |
String |
getPath()
Chemin de ce noeud (différent de l'uri de l'atelier dans Scenari). |
long |
getTimestamp()
Timestamp de dernière modification Utilisé par Scenari pour savoir si le contenu a été modifié. |
String |
getTitle()
Titre de ce noeud (aucune contrainte sur les caractères utilisés). |
String |
getVersionComment()
Retourne le commentaire de cette version. |
String |
getVersionLabel()
Retourne le label de cette version. |
ScenariNode.VersionOrigin |
getVersionOrigin()
Origine / raison pour laquelle cette version a été créée. |
long |
getVersionTimestamp()
Retourne la date de création de cette version. |
boolean |
isVersion()
Ce noeud est-il une version ? |
boolean |
isVisible()
Indique si le noeud a été supprimé La suppression est toujours uniquement "logique" afin de présever le couple id / path. |
void |
remove()
Suppression de ce noeud. |
void |
restoreNode()
Restaure un noeud supprimé. |
void |
save()
Enristrement des modifications apportées à ce noeud. |
void |
setLinks(List<ScenariLink> links)
Affecte une nouvelle liste de liens. |
long |
setTimestamp(long pTimestamp)
Affectation du timestamp de ce noeud. |
void |
setTitle(String title)
Affectation du titre. |
Method Detail |
---|
String getId()
String getPath()
String getName()
String getTitle() throws Exception
Exception
boolean isVisible() throws Exception
La suppression est toujours uniquement "logique" afin de présever le couple id / path.
Exception
long getTimestamp() throws Exception
Utilisé par Scenari pour savoir si le contenu a été modifié.
Exception
String getModificationUser() throws Exception
Exception
org.nuxeo.ecm.core.api.DocumentModel getDocumentModel()
void setTitle(String title) throws Exception
Exception
long setTimestamp(long pTimestamp) throws Exception
Appelé par la couche Scenari lorsqu'elle est informé d'une modification de ce noeud (dans le listeners d'events). L'implémentation doit vérifier que le timestamp soit toujours différent de la précédente valeur (ajouter 1 si nécessaire).
Exception
void save() throws Exception
Exception
void remove() throws Exception
Exception
boolean isVersion() throws Exception
Exception
String getLiveId() throws Exception
Si ce noeud est un live document, la méthode retourne son propre id.
Exception
List<ScenariLink> getLinks() throws Exception
S'il s'agit d'une version de type master
ou slave
,
les liens retournés sont ceux du réseau versionné auquel appartient le noeud.
Exception
void setLinks(List<ScenariLink> links) throws Exception
Exception
String getVersionLabel() throws Exception
Exception
String getVersionComment() throws Exception
Exception
long getVersionTimestamp() throws Exception
Exception
ScenariNode.VersionOrigin getVersionOrigin() throws Exception
Exception
List<ScenariItem> getNetVersions() throws Exception
Exception
void createNetVersion(String pComment, Map<String,Object> pOptions) throws Exception
Une origine est affecté à chaque noeud du réseau versionné :
VersionOrigin.master
pour l'item racine,
VersionOrigin.slave
pour les autres.
pComment
- Commentaire libre de la version.pOptions
- Options sur la création de la version, tel qu'un label personnalisé
Exception
void restoreNode() throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |