Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Wnt committed Feb 18, 2025
1 parent 4ab480e commit 813c6f9
Show file tree
Hide file tree
Showing 36 changed files with 6,118 additions and 56 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@

package fi.espoo.evaka.sarma.model;

import jakarta.xml.bind.annotation.XmlEnum;
import jakarta.xml.bind.annotation.XmlEnumValue;
import jakarta.xml.bind.annotation.XmlType;


/**
* <p>Java class for AcceptedFileFormatType.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* &lt;simpleType name="AcceptedFileFormatType"&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;enumeration value="pdf"/&gt;
* &lt;enumeration value="txt"/&gt;
* &lt;enumeration value="docx"/&gt;
* &lt;enumeration value="doc"/&gt;
* &lt;enumeration value="xml"/&gt;
* &lt;enumeration value="jpg"/&gt;
* &lt;enumeration value="png"/&gt;
* &lt;enumeration value="tiff"/&gt;
* &lt;enumeration value="cda/level2"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* </pre>
*
*/
@XmlType(name = "AcceptedFileFormatType")
@XmlEnum
public enum AcceptedFileFormatType {

@XmlEnumValue("pdf")
PDF("pdf"),
@XmlEnumValue("txt")
TXT("txt"),
@XmlEnumValue("docx")
DOCX("docx"),
@XmlEnumValue("doc")
DOC("doc"),
@XmlEnumValue("xml")
XML("xml"),
@XmlEnumValue("jpg")
JPG("jpg"),
@XmlEnumValue("png")
PNG("png"),
@XmlEnumValue("tiff")
TIFF("tiff"),
@XmlEnumValue("cda/level2")
CDA_LEVEL_2("cda/level2");
private final String value;

AcceptedFileFormatType(String v) {
value = v;
}

public String value() {
return value;
}

public static AcceptedFileFormatType fromValue(String v) {
for (AcceptedFileFormatType c: AcceptedFileFormatType.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@

package fi.espoo.evaka.sarma.model;

import jakarta.xml.bind.annotation.XmlEnum;
import jakarta.xml.bind.annotation.XmlEnumValue;
import jakarta.xml.bind.annotation.XmlType;


/**
* <p>Java class for AcceptedMimeTypeType.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* &lt;simpleType name="AcceptedMimeTypeType"&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
* &lt;enumeration value="application/pdf"/&gt;
* &lt;enumeration value="text/plain"/&gt;
* &lt;enumeration value="text/xml"/&gt;
* &lt;enumeration value="application/msword"/&gt;
* &lt;enumeration value="application/vnd.openxmlformats-officedocument.wordprocessingml.document"/&gt;
* &lt;enumeration value="image/jpeg"/&gt;
* &lt;enumeration value="image/png"/&gt;
* &lt;enumeration value="image/tiff"/&gt;
* &lt;/restriction&gt;
* &lt;/simpleType&gt;
* </pre>
*
*/
@XmlType(name = "AcceptedMimeTypeType")
@XmlEnum
public enum AcceptedMimeTypeType {

@XmlEnumValue("application/pdf")
APPLICATION_PDF("application/pdf"),
@XmlEnumValue("text/plain")
TEXT_PLAIN("text/plain"),
@XmlEnumValue("text/xml")
TEXT_XML("text/xml"),
@XmlEnumValue("application/msword")
APPLICATION_MSWORD("application/msword"),
@XmlEnumValue("application/vnd.openxmlformats-officedocument.wordprocessingml.document")
APPLICATION_VND_OPENXMLFORMATS_OFFICEDOCUMENT_WORDPROCESSINGML_DOCUMENT("application/vnd.openxmlformats-officedocument.wordprocessingml.document"),
@XmlEnumValue("image/jpeg")
IMAGE_JPEG("image/jpeg"),
@XmlEnumValue("image/png")
IMAGE_PNG("image/png"),
@XmlEnumValue("image/tiff")
IMAGE_TIFF("image/tiff");
private final String value;

AcceptedMimeTypeType(String v) {
value = v;
}

public String value() {
return value;
}

public static AcceptedMimeTypeType fromValue(String v) {
for (AcceptedMimeTypeType c: AcceptedMimeTypeType.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}

}
114 changes: 114 additions & 0 deletions service/src/main/java/fi/espoo/evaka/sarma/model/AccessRightType.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@

package fi.espoo.evaka.sarma.model;

import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlType;


/**
* <p>Java class for accessRightType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="accessRightType"&gt;
* &lt;complexContent&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
* &lt;sequence&gt;
* &lt;element name="accessRightName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt;
* &lt;element name="accessRightRole" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt;
* &lt;element name="accessRightDescription" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt;
* &lt;/sequence&gt;
* &lt;/restriction&gt;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "accessRightType", propOrder = {
"accessRightName",
"accessRightRole",
"accessRightDescription"
})
public class AccessRightType {

protected String accessRightName;
protected String accessRightRole;
protected String accessRightDescription;

/**
* Gets the value of the accessRightName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAccessRightName() {
return accessRightName;
}

/**
* Sets the value of the accessRightName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setAccessRightName(String value) {
this.accessRightName = value;
}

/**
* Gets the value of the accessRightRole property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAccessRightRole() {
return accessRightRole;
}

/**
* Sets the value of the accessRightRole property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setAccessRightRole(String value) {
this.accessRightRole = value;
}

/**
* Gets the value of the accessRightDescription property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAccessRightDescription() {
return accessRightDescription;
}

/**
* Sets the value of the accessRightDescription property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setAccessRightDescription(String value) {
this.accessRightDescription = value;
}

}
Loading

0 comments on commit 813c6f9

Please sign in to comment.