As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
public void blockUser() throws InternalErrorException { try { AuthenticationUtils.startSession("admin","admin"); AdministrationServiceSoapBindingStub administrationService = WebServiceFactory.getAdministrationService(); UserDetails userDetails = null; userDetails = administrationService.getUser(loginName); NamedValue[] propiedades = userDetails.getProperties(); for (NamedValue propiedad : propiedades) { if (propiedad.getName().equals("{http://www.alfresco.org/model/content/1.0}location")) { propiedad.setValue("0"); } } } catch (Exception e) { throw new InternalErrorException(e); } }