added users support

This commit is contained in:
jomu
2015-02-10 14:31:29 +00:00
parent b40fc9c440
commit 61938a6081

View File

@ -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;
}
}