09-22-2009 08:28 AM
public static boolean deleteGroups(String groupname) {
boolean control=true;
String[] delgroup = {groupname};
try{
AccessControlServiceSoapBindingStub accessControlService = WebServiceFactory.getAccessControlService();
NewAuthority cpGrpAuth = new NewAuthority(GROUP_AUTHORITY_TYPE,groupname);
NewAuthority[] newAuthorities = {cpGrpAuth};
accessControlService.deleteAuthorities(delgroup);
}
catch(Exception e)
{
e.printStackTrace();
control=false;
}
return control;
}
09-22-2009 02:39 PM
09-23-2009 03:46 AM
You need to obtain the node reference to the user group and use the nodeService to delete the node.can you give me a code please?
09-24-2009 06:40 AM
You need to obtain the node reference to the user group and use the nodeService to delete the node.can you give me a code please?
10-01-2009 12:15 PM
03-16-2010 10:48 AM
public StringBuilder deleteGroup(String alfrescoAxisUrl, String groupName)
throws AccessControlFault, RemoteException {
StringBuilder stringBuilder = new StringBuilder();
AccessControlServiceSoapBindingStub accessControlService = WebServiceFactory
.getAccessControlService(alfrescoAxisUrl);
AuthorityFilter authorityFilter = new AuthorityFilter();
authorityFilter.setAuthorityType(GROUP);
String[] deleteAuthorities = {Constants.GROUP_PREFIX + groupName};
accessControlService.deleteAuthorities(deleteAuthorities);
stringBuilder.append("Delete Group");
stringBuilder.append("\n");
return stringBuilder;
}
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.