mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-14 13:33:08 +00:00
Silly whitespace cleanups
This commit is contained in:
@@ -562,7 +562,7 @@ public class EZIDIdentifierProvider
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get configured value of EZID username.
|
* Get configured value of EZID username.
|
||||||
* @throws IdentifierException
|
* @throws IdentifierException
|
||||||
*/
|
*/
|
||||||
private String loadUser()
|
private String loadUser()
|
||||||
throws IdentifierException
|
throws IdentifierException
|
||||||
@@ -580,7 +580,7 @@ public class EZIDIdentifierProvider
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get configured value of EZID password.
|
* Get configured value of EZID password.
|
||||||
* @throws IdentifierException
|
* @throws IdentifierException
|
||||||
*/
|
*/
|
||||||
private String loadPassword()
|
private String loadPassword()
|
||||||
throws IdentifierException
|
throws IdentifierException
|
||||||
@@ -598,7 +598,7 @@ public class EZIDIdentifierProvider
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get configured value of EZID "shoulder".
|
* Get configured value of EZID "shoulder".
|
||||||
* @throws IdentifierException
|
* @throws IdentifierException
|
||||||
*/
|
*/
|
||||||
private String loadAuthority()
|
private String loadAuthority()
|
||||||
throws IdentifierException
|
throws IdentifierException
|
||||||
@@ -626,7 +626,7 @@ public class EZIDIdentifierProvider
|
|||||||
Item item = (Item) dso; // TODO generalize to DSO when all DSOs have metadata.
|
Item item = (Item) dso; // TODO generalize to DSO when all DSOs have metadata.
|
||||||
|
|
||||||
Map<String, String> mapped = new HashMap<String, String>();
|
Map<String, String> mapped = new HashMap<String, String>();
|
||||||
|
|
||||||
for (Entry<String, String> datum : crosswalk.entrySet())
|
for (Entry<String, String> datum : crosswalk.entrySet())
|
||||||
{
|
{
|
||||||
DCValue[] values = item.getMetadata(datum.getValue());
|
DCValue[] values = item.getMetadata(datum.getValue());
|
||||||
|
@@ -57,7 +57,7 @@ public class EZIDRequest
|
|||||||
/**
|
/**
|
||||||
* Prepare a context for requests concerning a specific identifier or
|
* Prepare a context for requests concerning a specific identifier or
|
||||||
* authority prefix.
|
* authority prefix.
|
||||||
*
|
*
|
||||||
* @param scheme URL scheme for access to the EZID service.
|
* @param scheme URL scheme for access to the EZID service.
|
||||||
* @param host Host name for access to the EZID service.
|
* @param host Host name for access to the EZID service.
|
||||||
* @param authority DOI authority prefix, e.g. "10.5072/FK2".
|
* @param authority DOI authority prefix, e.g. "10.5072/FK2".
|
||||||
@@ -93,7 +93,7 @@ public class EZIDRequest
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Fetch the metadata bound to an identifier.
|
* Fetch the metadata bound to an identifier.
|
||||||
*
|
*
|
||||||
* @throws IdentifierException if the response is error or body malformed.
|
* @throws IdentifierException if the response is error or body malformed.
|
||||||
* @throws IOException if the HTTP request fails.
|
* @throws IOException if the HTTP request fails.
|
||||||
* @throws URISyntaxException
|
* @throws URISyntaxException
|
||||||
|
@@ -34,11 +34,11 @@ public class EZIDRequestFactory
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Configure an EZID request.
|
* Configure an EZID request.
|
||||||
*
|
*
|
||||||
* @param authority our DOI authority number.
|
* @param authority our DOI authority number.
|
||||||
* @param username EZID user name.
|
* @param username EZID user name.
|
||||||
* @param password {@code username}'s password.
|
* @param password {@code username}'s password.
|
||||||
* @throws URISyntaxException
|
* @throws URISyntaxException
|
||||||
*/
|
*/
|
||||||
public EZIDRequest getInstance(String authority, String username, String password)
|
public EZIDRequest getInstance(String authority, String username, String password)
|
||||||
throws URISyntaxException
|
throws URISyntaxException
|
||||||
|
@@ -61,10 +61,10 @@ public class EZIDIdentifierProviderTest
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a fresh Item, installed in the repository.
|
* Create a fresh Item, installed in the repository.
|
||||||
*
|
*
|
||||||
* @throws SQLException
|
* @throws SQLException
|
||||||
* @throws AuthorizeException
|
* @throws AuthorizeException
|
||||||
* @throws IOException
|
* @throws IOException
|
||||||
*/
|
*/
|
||||||
private Item newItem(Context ctx)
|
private Item newItem(Context ctx)
|
||||||
throws SQLException, AuthorizeException, IOException
|
throws SQLException, AuthorizeException, IOException
|
||||||
@@ -132,14 +132,14 @@ public class EZIDIdentifierProviderTest
|
|||||||
Context ctx = new Context();
|
Context ctx = new Context();
|
||||||
dumpMetadata(Item.find(ctx, itemID));
|
dumpMetadata(Item.find(ctx, itemID));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Before
|
@Before
|
||||||
public void setUp()
|
public void setUp()
|
||||||
{
|
{
|
||||||
context.setCurrentUser(eperson);
|
context.setCurrentUser(eperson);
|
||||||
context.turnOffAuthorisationSystem();
|
context.turnOffAuthorisationSystem();
|
||||||
}
|
}
|
||||||
|
|
||||||
@After
|
@After
|
||||||
public void tearDown()
|
public void tearDown()
|
||||||
{
|
{
|
||||||
@@ -277,7 +277,7 @@ public class EZIDIdentifierProviderTest
|
|||||||
DSpaceObject result = instance.resolve(context, identifier, attributes);
|
DSpaceObject result = instance.resolve(context, identifier, attributes);
|
||||||
assertEquals(expResult, result);
|
assertEquals(expResult, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test of lookup method, of class DataCiteIdentifierProvider.
|
* Test of lookup method, of class DataCiteIdentifierProvider.
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user