org.fcrepo.common.policy.ServiceDefinitionNamespace Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fcrepo-common Show documentation
Show all versions of fcrepo-common Show documentation
Common, generally useful utilities
/* The contents of this file are subject to the license and copyright terms
* detailed in the license directory at the root of the source tree (also
* available online at http://fedora-commons.org/license/).
*/
package org.fcrepo.common.policy;
import org.jboss.security.xacml.sunxacml.attr.AnyURIAttribute;
import org.jboss.security.xacml.sunxacml.attr.StringAttribute;
/**
* The Fedora Service Definition XACML namespace.
*
*
* Namespace URI : urn:fedora:names:fedora:2.1:resource:sdef
*
*/
public class ServiceDefinitionNamespace
extends XacmlNamespace {
public final XacmlName PID;
public final XacmlName NAMESPACE;
public final XacmlName LOCATION;
public final XacmlName STATE;
private ServiceDefinitionNamespace(XacmlNamespace parent, String localName) {
super(parent, localName);
PID = addName(new XacmlName(this, "pid", StringAttribute.identifier));
NAMESPACE =
addName(new XacmlName(this,
"namespace",
StringAttribute.identifier));
LOCATION =
addName(new XacmlName(this,
"location",
AnyURIAttribute.identifier));
STATE =
addName(new XacmlName(this, "state", StringAttribute.identifier));
}
public static ServiceDefinitionNamespace onlyInstance =
new ServiceDefinitionNamespace(ResourceNamespace.getInstance(),
"sdef");
public static final ServiceDefinitionNamespace getInstance() {
return onlyInstance;
}
}