Une autre solution propre serait de ne pas obliger un utilisateur de posséder un espace d'accueil lors de sa création mais je ne sais pas comme activer cette propriété sur Alfresco Labs3
public static void main(String[] args) throws Exception {
String endPointAddress = "http://localhost:8080/alfresco/api";
WebServiceFactory.setEndpointAddress(endPointAddress);
AuthenticationUtils.startSession("admin", "admin");
//Test SetOwner
AccessControlServiceSoapBindingStub accessControlService = WebServiceFactory.getAccessControlService();
//ici uuid de l'espace
String uuid = "fad9062c-bd37-4946-b68d-b9f253899656";
Store spacesStore =
new Store(Constants.WORKSPACE_STORE, "SpacesStore");
Reference refEspace =
new Reference(spacesStore,uuid,null);
Predicate espace = new Predicate(new Reference[]{refEspace},spacesStore,null);
accessControlService.setOwners(espace, "admin");
AuthenticationUtils.endSession();
}
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.