Operation |
Details |
private addIdentifiers( MdsPublicationVO mds):List |
Sequential |
public static assertXMLExist( String message, Node node, String xPath):void |
Sequential Notes: | Assert that the Element/Attribute selected by the xPath exists. | |
public static assertXMLValid( String xmlData):void |
Sequential Notes: | Assert that the XML is valid to the schema. @param schemaFileName | |
private createAnotherCreator():CreatorVO |
Sequential |
private createComplexSources( TextVO title, CreatorVO creator, List identifierList, List sourcesList, PublishingInfoVO publishingInfoVO):void |
Sequential |
private createCreator( MdsPublicationVO mds):CreatorVO |
Sequential |
private createEvent():EventVO |
Sequential |
protected createItemWithFile( String userHandle):String |
Sequential Notes: | Creates an item with a file in the framework. @return The XML of the created item with a file, given back by the framework. | |
private createSource():SourceVO |
Sequential |
public static findFileInClasspath( String fileName):File |
Sequential Tags: | throws=FileNotFoundException
| Notes: | Searches the Java classpath for a given file name and gives back the file (or a FileNotFoundException). @return The file | |
public static formatDate( Date date):String |
Sequential Notes: | Formats a given date to the format used by the framework. @return The formatted date | |
protected getAccountUser( String userHandle):AccountUserVO |
Sequential Notes: | @return The AccountUserVO | |
public static getAttributeValue( Node node, String xPath, String attributeName):String |
Sequential Notes: | Return the text value of the selected attribute. @return The text value of the selected attribute. | |
protected getComplexPubItemWithoutFiles():PubItemVO |
Sequential Notes: | Creates a well-defined, complex PubItemVO without files. @return pubItem | |
protected static getDocument( String xml, boolean namespaceAwareness):Document |
Sequential Notes: | Parse the given xml String into a Document. @return The Document. | |
protected getFacesAlbumContainer():ContainerVO |
Sequential Tags: | throws=IOException,URISyntaxException
| Notes: | Creates a well-defined, simple Faces container without members. @return The container | |
protected static getLastModificationDate( String item):String |
Sequential Notes: | Search the given String for the first occurence of "last-modification-date" and return its value. @return The last-modification-date value | |
private getMdsFacesAlbum():MdsFacesContainerVO |
Sequential Notes: | Create metadata for a Faces album. @return The metadata VO | |
protected getMdsPublication1():MdsPublicationVO |
Sequential Notes: | Creates a well-defined, complex MdsPublicationVO. @return The generated MdsPublicationVO. | |
protected getMdsPublication2():MdsPublicationVO |
Sequential Notes: | Creates a well-defined, complex MdsPublicationVO. @return The generated MdsPublicationVO. | |
private static getNameSpaceFromXml( String xmlData):String |
Sequential Tags: | throws=ParserConfigurationException,SAXException,IOException,UnsupportedEncodingException
| |
protected static getObjid( String item):String |
Sequential Notes: | Search the given String for the first occurence of "objid" and return its value. @return The objid value | |
protected getPubItem2():PubItemVO |
Sequential Notes: | Creates anpther well-defined PubItemVO. @return pubItem | |
protected getPubItemNamedTheFirstOfAll():PubItemVO |
Sequential Notes: | Creates a well-defined PubItemVO named "PubMan: The first of all.". @return pubItem | |
protected getPubItemResultNamedTheFirstOfAll():ItemResultVO |
Sequential Notes: | Creates a well-defined PubItemVO named "PubMan: The first of all.". @return pubItem | |
protected getPubItemWithoutFiles():PubItemVO |
Sequential Notes: | Creates a well-defined PubItemVO without any files attached. @return pubItem | |
public static getRootElementAttributeValue( Document document, String attributeName):String |
Sequential Notes: | Gets the value of the specified attribute of the root element from the document. @return Returns the attribute value. | |
private static getSchema( String schemaFileName):Schema |
Sequential Notes: | Gets the <code>Schema</code> object for the provided <code>File</code>. @param schemaStream The file containing the schema. @return Returns the <code>Schema</code> object. | |
protected static getService( String serviceName):Object |
Sequential Tags: | throws=NamingException
| Notes: | Helper method to retrieve a EJB service instance. The name to be passed to the method is normally 'ServiceXY.SERVICE_NAME'. @return instance of the EJB service | |
protected getValue( Document document, String xpathExpression):String |
Sequential Tags: | throws=TransformerException
| Notes: | Delivers the value of one distinct node in an <code>org.w3c.dom.Document</code>. @return The value of the node. | |
private static initializeSchemas():void |
Sequential Tags: | throws=IOException,SAXException,ParserConfigurationException
| |
protected static loginAuthor():String |
Sequential Tags: | throws=ServiceException,HttpException,IOException,URISyntaxException
| Notes: | Logs the user test_author in and returns the corresponding user handle. @return userHandle | |
protected static loginEditor():String |
Sequential Tags: | throws=ServiceException,HttpException,IOException,URISyntaxException
| Notes: | Logs the user test_editor in and returns the corresponding user handle. @return userHandle | |
protected static loginLibrarian():String |
Sequential Tags: | throws=ServiceException,HttpException,IOException,URISyntaxException
| Notes: | Logs the user test_dep_lib in and returns the corresponding user handle. @return userHandle | |
protected static loginScientist():String |
Sequential Tags: | throws=ServiceException,HttpException,IOException,URISyntaxException
| Notes: | Logs the user test_dep_scientist in and returns the corresponding user handle. @return userHandle | |
protected static loginSystemAdministrator():String |
Sequential Notes: | Logs the user roland in who is a system administrator and returns the corresponding user handle. @return userHandle | |
protected static loginUser( String userid, String password):String |
Sequential Tags: | throws=HttpException,IOException,ServiceException,URISyntaxException
| Notes: | Logs in the given user with the given password. @return The handle for the logged in user. | |
protected static logout( String userHandle):void |
Sequential Tags: | throws=RemoteException,ServiceException,URISyntaxException
| Notes: | Logs the user with the given userHandle out from the system. | |
protected static readFile( String fileName):String |
Sequential Notes: | Reads contents from text file and returns it as String. @return Entire contents of filename as a String | |
public static selectNodeList( Node node, String xpathExpression):NodeList |
Sequential Tags: | throws=TransformerException
| Notes: | Return the list of children of the node selected by the xPath. @return The list of children of the node selected by the xPath. | |
public static selectSingleNode( Node node, String xpathExpression):Node |
Sequential Tags: | throws=TransformerException
| Notes: | Return the child of the node selected by the xPath. @return The child of the node selected by the xPath. | |
protected static toString( Node node, boolean omitXMLDeclaration):String |
Sequential Notes: | Serialize the given Dom Object to a String. @param xml The Xml Node to serialize. @return The String representation of the Xml Node. | |
protected uploadFile( String fileName, String mimetype, String userHandle):URL |
Sequential Notes: | Uploads a file to the staging servlet and returns the corresponding URL. @return The URL of the uploaded file. | |