added users support
This commit is contained in:
@ -0,0 +1,35 @@
|
||||
package de.muehlencord.shared.sharepoint.api.usergroup;
|
||||
|
||||
import de.muehlencord.shared.sharepoint.api.SPContext;
|
||||
import de.muehlencord.shared.sharepoint.api.SPJaxbObject;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import javax.xml.bind.JAXBException;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author joern.muehlencord
|
||||
*/
|
||||
public class SPUsers extends SPJaxbObject<Users> {
|
||||
|
||||
public SPUsers(SPContext context) throws JAXBException {
|
||||
super(Users.class, context);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected java.util.List getSchemaLocation() {
|
||||
java.util.List<String> schemaList = new ArrayList();
|
||||
schemaList.add("/xsd/usergroup.xsd");
|
||||
return schemaList;
|
||||
}
|
||||
|
||||
public List<String> getEmailAddresses() {
|
||||
List<String> returnList = new ArrayList<>();
|
||||
for (User user : getValue().users) {
|
||||
returnList.add (user.email);
|
||||
}
|
||||
|
||||
return returnList;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user