All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.fcrepo.common.policy.ObjectNamespace Maven / Gradle / Ivy

There is a newer version: 6.5.0
Show newest version
/* 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.DateTimeAttribute;
import org.jboss.security.xacml.sunxacml.attr.IntegerAttribute;
import org.jboss.security.xacml.sunxacml.attr.StringAttribute;

/**
 * The Fedora Object XACML namespace.
 *
 * 
 * Namespace URI    : urn:fedora:names:fedora:2.1:resource:object
 * 
*/ public class ObjectNamespace extends XacmlNamespace { public final XacmlName CONTROL_GROUP; public final XacmlName CREATED_DATETIME; public final XacmlName LAST_MODIFIED_DATETIME; public final XacmlName NAMESPACE; //not a "patterning" error; this is the pid prefix, part before ":" public final XacmlName OBJECT_TYPE; public final XacmlName OWNER; public final XacmlName PID; public final XacmlName STATE; public final XacmlName NEW_STATE; public final XacmlName FORMAT_URI; //for serialization public final XacmlName CONTEXT; //for serialization public final XacmlName ENCODING; //for serialization public final XacmlName N_PIDS; private ObjectNamespace(XacmlNamespace parent, String localName) { super(parent, localName); // Properties PID = addName(new XacmlName(this, "pid", StringAttribute.identifier)); NAMESPACE = addName(new XacmlName(this, "namespace", StringAttribute.identifier)); //see declaration STATE = addName(new XacmlName(this, "state", StringAttribute.identifier)); NEW_STATE = addName(new XacmlName(this, "newState", StringAttribute.identifier)); CONTROL_GROUP = addName(new XacmlName(this, "controlGroup", StringAttribute.identifier)); OWNER = addName(new XacmlName(this, "owner", StringAttribute.identifier)); CREATED_DATETIME = addName(new XacmlName(this, "createdDate", DateTimeAttribute.identifier)); LAST_MODIFIED_DATETIME = addName(new XacmlName(this, "lastModifiedDate", DateTimeAttribute.identifier)); OBJECT_TYPE = addName(new XacmlName(this, "objectType", StringAttribute.identifier)); CONTEXT = addName(new XacmlName(this, "context", StringAttribute.identifier)); ENCODING = addName(new XacmlName(this, "encoding", StringAttribute.identifier)); FORMAT_URI = addName(new XacmlName(this, "formatUri", AnyURIAttribute.identifier)); N_PIDS = addName(new XacmlName(this, "nPids", IntegerAttribute.identifier)); // Values } public static ObjectNamespace onlyInstance = new ObjectNamespace(ResourceNamespace.getInstance(), "object"); public static final ObjectNamespace getInstance() { return onlyInstance; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy