Operation |
Details |
protected static createItem( ItemVO pubItem, AccountUserVO user):ItemVO |
Sequential |
public findFileInClasspath( String fileName):File |
Sequential Tags: | throws=FileNotFoundException
| Notes: | Finds a given file name in the classpath and returns the file. @return The found file. | |
public const getActualDateString():String |
Sequential Notes: | Returns the current date in a valid format. @return String that contains the actual date | |
protected static getComplexPubItemWithoutFiles():PubItemVO |
Sequential |
protected static getDocument( String xml, boolean namespaceAwareness):Document |
Sequential Notes: | Parse the given xml String into a org.w3c.dom.Document. @return The Document | |
protected static getMdsPublication():MdsPublicationVO |
Sequential |
protected static getNewPubItemWithoutFiles():PubItemVO |
Sequential Notes: | Get a new pub item. @return pub item | |
protected static getPubItemFromFramework( ItemRO pubItemRef, AccountUserVO accountUser):PubItemVO |
Sequential Notes: | Helper: Retrieves the item from the Framework ItemHandler and transforms it to a PubItemVO. | |
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 static getUserSystemAdministratorWithHandle():AccountUserVO |
Sequential Notes: | Logs in the user roland and returns the corresponding AccountUserVO @return The account user roland with handle set. | |
protected static getUserTestDepLibWithHandle():AccountUserVO |
Sequential Notes: | Logs in the user test_dep_lib and returns the corresponding AccountUserVO @return The account user test_dep_lib with handle set. | |
protected static getUserTestDepScientistWithHandle():AccountUserVO |
Sequential Notes: | Logs in the user test_dep_scientist and returns the corresponding AccountUserVO @return The account user test_dep_scientist with handle set. | |
private static getUserWithHandle( String userHandle):AccountUserVO |
Sequential |
protected static loginDepositorLibrary():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 Tags: | throws=ServiceException,HttpException,IOException,URISyntaxException
| Notes: | Logs the user roland in 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. | |
public 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 | |
protected static submitAndReleaseItem( ItemVO item, AccountUserVO user):ItemVO |
Sequential |
protected static 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 | |