updated libraries and plugins to latest versions
This commit is contained in:
@ -25,8 +25,8 @@ public class SPBatch extends SPJaxbObject<Batch> {
|
||||
return schemaList;
|
||||
}
|
||||
|
||||
public void addMethod(Method method) {
|
||||
getValue().getMethods().add(method);
|
||||
public void addMethod(Method method) {
|
||||
getValue().getMethod().add(method);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -152,7 +152,7 @@ public class SPList extends SPJaxbObject<List> {
|
||||
return field;
|
||||
}).
|
||||
forEach((Field field) -> {
|
||||
method.getFields().add(field);
|
||||
method.getField().add(field);
|
||||
});
|
||||
batch.addMethod(method);
|
||||
}
|
||||
@ -220,7 +220,7 @@ public class SPList extends SPJaxbObject<List> {
|
||||
}
|
||||
|
||||
Fields fields = getValue().fields;
|
||||
for (de.muehlencord.shared.sharepoint.api.lists.Field field : fields.getFields()) {
|
||||
for (de.muehlencord.shared.sharepoint.api.lists.Field field : fields.getField()) {
|
||||
if (field.getDisplayName().equals(columnDisplayName)) {
|
||||
return field.getName();
|
||||
}
|
||||
@ -288,7 +288,7 @@ public class SPList extends SPJaxbObject<List> {
|
||||
return field;
|
||||
}).
|
||||
forEach((Field field) -> {
|
||||
method.getFields().add(field);
|
||||
method.getField().add(field);
|
||||
});
|
||||
batch.addMethod(method);
|
||||
}
|
||||
|
||||
@ -40,7 +40,7 @@ public class SPLists extends SPJaxbObject<de.muehlencord.shared.sharepoint.api.l
|
||||
|
||||
/* ** get list objects *** */
|
||||
public SPList getSpListByTitle(String listName) throws NoSuchAlgorithmException, KeyManagementException, JAXBException, MalformedURLException, SAXException {
|
||||
if (this.getValue().lists == null) {
|
||||
if (this.getValue().getList() == null) {
|
||||
getValueFromSharepoint();
|
||||
}
|
||||
List list = getListByTitle(listName); // TODO throw exception if not found
|
||||
@ -53,11 +53,11 @@ public class SPLists extends SPJaxbObject<de.muehlencord.shared.sharepoint.api.l
|
||||
/* *** get lists information *** */
|
||||
public java.util.List<String> getListNames() throws NoSuchAlgorithmException, KeyManagementException, MalformedURLException, ParseException, JAXBException,
|
||||
SAXException {
|
||||
if (this.getValue().lists == null) {
|
||||
if (this.getValue().getList() == null) {
|
||||
getValueFromSharepoint();
|
||||
}
|
||||
java.util.List<String> returnList = new LinkedList<>();
|
||||
this.getValue().lists.stream().
|
||||
this.getValue().getList().stream().
|
||||
forEach((currentList) -> {
|
||||
returnList.add(currentList.name);
|
||||
});
|
||||
@ -67,11 +67,11 @@ public class SPLists extends SPJaxbObject<de.muehlencord.shared.sharepoint.api.l
|
||||
public String getListNameByTitle(String listTitle) throws NoSuchAlgorithmException, KeyManagementException, JAXBException,
|
||||
MalformedURLException, SAXException {
|
||||
|
||||
if (this.getValue().lists == null) {
|
||||
if (this.getValue().getList() == null) {
|
||||
getValueFromSharepoint();
|
||||
}
|
||||
|
||||
for (List list : getValue().lists) {
|
||||
for (List list : getValue().getList()) {
|
||||
if (list.title.equals(listTitle)) {
|
||||
return list.name;
|
||||
}
|
||||
@ -114,7 +114,7 @@ public class SPLists extends SPJaxbObject<de.muehlencord.shared.sharepoint.api.l
|
||||
}
|
||||
|
||||
private List getListByTitle(String listTitle) {
|
||||
for (List list : this.getValue().lists) {
|
||||
for (List list : this.getValue().getList()) {
|
||||
if (list.getTitle().equals(listTitle)) {
|
||||
return list;
|
||||
}
|
||||
|
||||
@ -35,7 +35,7 @@ public class SPMethod extends SPJaxbObject<Method> {
|
||||
}
|
||||
|
||||
public List<Field> getFields() {
|
||||
return getValue().getFields();
|
||||
return getValue().getField();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -25,7 +25,7 @@ public class SPUsers extends SPJaxbObject<Users> {
|
||||
|
||||
public List<String> getEmailAddresses() {
|
||||
List<String> returnList = new ArrayList<>();
|
||||
for (User user : getValue().users) {
|
||||
for (User user : getValue().getUser()) {
|
||||
returnList.add (user.email);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user