05-17-2010 12:07 PM
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);
}
}
09-14-2010 11:05 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.