demo-objects.mets.local-server-demos.image-manip-demo.bdef-image-manip.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fcrepo-client Show documentation
Show all versions of fcrepo-client Show documentation
The Fedora Client is a Java Library that allows API access to a Fedora Repository. The client is typically one part of a full Fedora installation.
The newest version!
<?xml version="1.0" encoding="UTF-8"?> <!---********************************************************************************************--> <!-- SAMPLE FEDORA BEHAVIOR DEFINITION OBJECT ENCODED USING METS --> <!-- Creator: Theodore Serbinski --> <!-- Custodian: Cornell --> <!-- Note: Image Manipulation Servlet - abstract method definitions --> <!---********************************************************************************************--> <METS:mets xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:METS="http://www.loc.gov/METS/" xmlns:fedoraAudit="http://fedora.comm.nsdlib.org/audit" xmlns:fbs="http://fedora.comm.nsdlib.org/bindspec" xmlns:uvalibdesc="http://dl.lib.virginia.edu/bin/dtd/descmeta/descmeta.dtd" xmlns:uvalibadmin="http://dl.lib.virginia.edu/bin/admin/admin.dtd" xmlns:xlink="http://www.w3.org/TR/xlink" xsi:schemaLocation="http://www.loc.gov/standards/METS/ http://www.fedora.info/definitions/1/0/mets-fedora-ext.xsd" OBJID="demo:27" TYPE="FedoraBDefObject" LABEL="Behavior Definition Object for Image Manipulation Servlet" PROFILE="fedora:BDEF"> <METS:metsHdr> <METS:agent ROLE="IPOWNER"> <METS:name>fedoraAdmin</METS:name> </METS:agent> </METS:metsHdr> <!---*******************************************************************************************************************************************--> <!---User-Defined XML METADATA DATASTREAMS--> <!-- ****************************************************************************************************************************************** --> <!-- METHOD MAP: Usage pattern for Behavior Definition Objects. A Fedora Behavior Definition contains abstract method --> <!-- names and user input parameters. The method definitions represent what an end user would see as --> <!-- the set of methods that can be run as disseminations. The method definitions are stripped of any mechanism-specific --> <!-- information. The method return type is always a MIME-typed stream. --> <!-- NOTE: Some elements in the Method Map schema are not appropriate for usage when encoding a Fedora Behavior Definition. --> <!-- These are elements that pertain to mapping a concrete service definition (WSDL) to Fedora (in a Behavior Mechanism Object). --> <!-- The following Method Map schema entities do NOT apply to Behavior Definitions: --> <!-- element DefaultInputParm, element DatastreamInputParm, element MethodReturnType, --> <!-- and attributes wsdlMsgName and wsdlMsgOutput on element Method. --> <!-- ****************************************************************************************************************************************** --> <METS:amdSec ID="METHODMAP"> <METS:techMD ID="METHODMAP1.0" STATUS="A"> <METS:mdWrap MIMETYPE="text/xml" MDTYPE="OTHER" LABEL="Method Map for Fedora Behavior Definition for Image Manipulation Servlet"> <METS:xmlData> <fmm:MethodMap name="Fedora MethodMap for Image Manipulation Servlet" bDefPID="demo:27" xmlns:fmm="http://fedora.comm.nsdlib.org/service/methodmap"> <fmm:Method operationName="resizeImage"> <fmm:UserInputParm parmName="width" required="true" defaultValue="150" passBy="VALUE"/> </fmm:Method> <fmm:Method operationName="zoomImage"> <fmm:UserInputParm parmName="zoom" required="true" defaultValue="3" passBy="VALUE"/> </fmm:Method> <fmm:Method operationName="brightImage"> <fmm:UserInputParm parmName="bright" required="true" defaultValue="3.5" passBy="VALUE"/> </fmm:Method> <fmm:Method operationName="watermarkImage"> <fmm:UserInputParm parmName="watermark" required="true" defaultValue="Watermarked 2003" passBy="VALUE"/> </fmm:Method> <fmm:Method operationName="grayscaleImage"> </fmm:Method> <fmm:Method operationName="cropImage"> <fmm:UserInputParm parmName="x" required="true" defaultValue="30" passBy="VALUE"/> <fmm:UserInputParm parmName="y" required="true" defaultValue="100" passBy="VALUE"/> <fmm:UserInputParm parmName="width" required="false" defaultValue="" passBy="VALUE"/> <fmm:UserInputParm parmName="height" required="false" defaultValue="" passBy="VALUE"/> </fmm:Method> <fmm:Method operationName="convertImage"> <fmm:UserInputParm parmName="convertTo" required="true" defaultValue="gif" passBy="VALUE"> <fmm:ValidParmValues> <fmm:ValidParm value="jpg"/> <fmm:ValidParm value="gif"/> <fmm:ValidParm value="tiff"/> <fmm:ValidParm value="png"/> <fmm:ValidParm value="bmp"/> </fmm:ValidParmValues> </fmm:UserInputParm> </fmm:Method> </fmm:MethodMap> </METS:xmlData> </METS:mdWrap> </METS:techMD> </METS:amdSec> <!---*******************************************************************************************************************************************--> <!--- FEDORA DATASTREAM BINDING MAPS --> <!-- In Fedora the METS structure maps are associated with the DISSEMINATOR (see METS:behaviorSec).--> <!---*******************************************************************************************************************************************--> <!-- DATASTREAM BINDING MAP FOR THE FEDORA BOOTSTRAP MECHANISM (An internal Fedora service) --> <METS:structMap ID="S1" TYPE="fedora:dsBindingMap"> <METS:div TYPE="fedora-system:2" LABEL="Datastream Binding Map for Fedora Bootstrap Mechanism"> <METS:div TYPE="BDEF-METHODMAP" LABEL="Abstract behavior definition in Fedora Method Map format"> <METS:fptr FILEID="METHODMAP"/> </METS:div> </METS:div> </METS:structMap> <!---*******************************************************************************************************************************************--> <!--- DISSEMINATORS--> <!---*******************************************************************************************************************************************--> <!--- THE BOOTSTRAP DISSEMINATOR --> <!---*******************************************************************************************************************************************--> <!--- The Disseminator subscribes to the Fedora Bootstrap Behavior Definition. It uses the Fedora Bootstrap Behavior Mechanism to run the behaviors. --> <!-- The Bootstrap behaviors enable a client to get disseminations of the contents of this Behavior Defintion Object. --> <METS:behaviorSec ID="DISS1" STATUS="A"> <METS:serviceBinding ID="DISS1.0" STRUCTID="S1" BTYPE="fedora-system:1" LABEL="Bootstrap Behaviors"> <METS:interfaceMD LABEL="Bootstrap Behavior Definition" LOCTYPE="URN" xlink:href="fedora-system:1"/> <METS:serviceBindMD LABEL="Bootstrap Behavior Mechanism" LOCTYPE="URN" xlink:href="fedora-system:2"/> </METS:serviceBinding> </METS:behaviorSec> </METS:mets>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy