private static QName nomCreator = QName.createQName("{http://www.alfresco.org/model/content/1.0}creator");
public void agentAddSelection(ActionEvent event)
{
try
{
Node currnod = this.getNode();
logger.debug("Reattribution de l'espace a l'utilisateur "+userSelect+"…");
this.nodeService = getNodeService();
this.nodeService.setProperty(currnod.getNodeRef(), nomCreator, userSelect);
logger.debug("creator : "+this.nodeService.getProperty(currnod.getNodeRef(), nomCreator));
}
catch (Exception e) {
Utils.addErrorMessage(MessageFormat.format(Application.getMessage(
FacesContext.getCurrentInstance(), Repository.ERROR_GENERIC), e.getMessage(), e ));
e.printStackTrace();
}
}
… Une opération toute bête je dirais … donc en fonction du node sur lequel on à sélectionné l'action (currnod), on réassigne la propriété creator (Qname(nomCreator)) à l'utilisateur qu'on a sélectionné (userSelect).Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.