mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
16930: MOB-1330: Upgrade Web Services Repository to 0.7 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@17243 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
85 lines
2.6 KiB
Java
Executable File
85 lines
2.6 KiB
Java
Executable File
|
|
package org.alfresco.repo.cmis.ws;
|
|
|
|
import javax.xml.bind.annotation.XmlEnum;
|
|
import javax.xml.bind.annotation.XmlEnumValue;
|
|
import javax.xml.bind.annotation.XmlType;
|
|
|
|
|
|
/**
|
|
* <p>Java class for enumServiceException.
|
|
*
|
|
* <p>The following schema fragment specifies the expected content contained within this class.
|
|
* <p>
|
|
* <pre>
|
|
* <simpleType name="enumServiceException">
|
|
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
|
|
* <enumeration value="constraint"/>
|
|
* <enumeration value="nameConstraintViolation"/>
|
|
* <enumeration value="contentAlreadyExists"/>
|
|
* <enumeration value="filterNotValid"/>
|
|
* <enumeration value="invalidArgument"/>
|
|
* <enumeration value="notSupported"/>
|
|
* <enumeration value="objectNotFound"/>
|
|
* <enumeration value="permissionDenied"/>
|
|
* <enumeration value="runtime"/>
|
|
* <enumeration value="storage"/>
|
|
* <enumeration value="streamNotSupported"/>
|
|
* <enumeration value="updateConflict"/>
|
|
* <enumeration value="versioning"/>
|
|
* </restriction>
|
|
* </simpleType>
|
|
* </pre>
|
|
*
|
|
*/
|
|
@XmlType(name = "enumServiceException")
|
|
@XmlEnum
|
|
public enum EnumServiceException {
|
|
|
|
@XmlEnumValue("constraint")
|
|
CONSTRAINT("constraint"),
|
|
@XmlEnumValue("nameConstraintViolation")
|
|
NAME_CONSTRAINT_VIOLATION("nameConstraintViolation"),
|
|
@XmlEnumValue("contentAlreadyExists")
|
|
CONTENT_ALREADY_EXISTS("contentAlreadyExists"),
|
|
@XmlEnumValue("filterNotValid")
|
|
FILTER_NOT_VALID("filterNotValid"),
|
|
@XmlEnumValue("invalidArgument")
|
|
INVALID_ARGUMENT("invalidArgument"),
|
|
@XmlEnumValue("notSupported")
|
|
NOT_SUPPORTED("notSupported"),
|
|
@XmlEnumValue("objectNotFound")
|
|
OBJECT_NOT_FOUND("objectNotFound"),
|
|
@XmlEnumValue("permissionDenied")
|
|
PERMISSION_DENIED("permissionDenied"),
|
|
@XmlEnumValue("runtime")
|
|
RUNTIME("runtime"),
|
|
@XmlEnumValue("storage")
|
|
STORAGE("storage"),
|
|
@XmlEnumValue("streamNotSupported")
|
|
STREAM_NOT_SUPPORTED("streamNotSupported"),
|
|
@XmlEnumValue("updateConflict")
|
|
UPDATE_CONFLICT("updateConflict"),
|
|
@XmlEnumValue("versioning")
|
|
VERSIONING("versioning");
|
|
private final String value;
|
|
|
|
EnumServiceException(String v) {
|
|
value = v;
|
|
}
|
|
|
|
public String value() {
|
|
return value;
|
|
}
|
|
|
|
public static EnumServiceException fromValue(String v) {
|
|
for (EnumServiceException c: EnumServiceException.values()) {
|
|
if (c.value.equals(v)) {
|
|
return c;
|
|
}
|
|
}
|
|
throw new IllegalArgumentException(v);
|
|
}
|
|
|
|
}
|