mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19133 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
58 lines
1.2 KiB
Java
58 lines
1.2 KiB
Java
|
|
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 enumUsers.
|
|
*
|
|
* <p>The following schema fragment specifies the expected content contained within this class.
|
|
* <p>
|
|
* <pre>
|
|
* <simpleType name="enumUsers">
|
|
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
|
|
* <enumeration value="cmis:user"/>
|
|
* </restriction>
|
|
* </simpleType>
|
|
* </pre>
|
|
*
|
|
*/
|
|
@XmlType(name = "enumUsers", namespace = "http://docs.oasis-open.org/ns/cmis/core/200908/")
|
|
@XmlEnum
|
|
public enum EnumUsers {
|
|
|
|
|
|
/**
|
|
*
|
|
* This user can be used on setting ACLs to specify
|
|
* the permission this
|
|
* user context should have.
|
|
*
|
|
*
|
|
*/
|
|
@XmlEnumValue("cmis:user")
|
|
CMIS_USER("cmis:user");
|
|
private final String value;
|
|
|
|
EnumUsers(String v) {
|
|
value = v;
|
|
}
|
|
|
|
public String value() {
|
|
return value;
|
|
}
|
|
|
|
public static EnumUsers fromValue(String v) {
|
|
for (EnumUsers c: EnumUsers.values()) {
|
|
if (c.value.equals(v)) {
|
|
return c;
|
|
}
|
|
}
|
|
throw new IllegalArgumentException(v);
|
|
}
|
|
|
|
}
|