| Modifier and Type | Method and Description |
|---|---|
SwordContext |
SwordAuthenticator.authenticate(org.swordapp.server.AuthCredentials auth)
Authenticate the given service document request.
|
SwordContext |
DSpaceSwordAPI.doAuth(org.swordapp.server.AuthCredentials authCredentials) |
SwordContext |
DSpaceSwordAPI.noAuthContext() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
SwordAuthenticator.canSubmit(SwordContext swordContext,
DSpaceObject dso,
VerboseDescription msg)
Can the users contained in this object's member SwordContext
make a successful submission to the selected collection.
|
boolean |
SwordAuthenticator.canSubmitTo(SwordContext swordContext,
Collection collection)
Can the current SWORD Context permit deposit into the given
collection in the given DSpace Context?
IF: the authenticated user is an administrator
AND:
(the on-behalf-of user is an administrator
OR the on-behalf-of user is authorised to ADD
OR the on-behalf-of user is null)
OR IF: the authenticated user is authorised to ADD
AND:
(the on-behalf-of user is an administrator
OR the on-behalf-of user is authorised to ADD
OR the on-behalf-of user is null)
|
boolean |
SwordAuthenticator.canSubmitTo(SwordContext context,
DSpaceObject dso)
Can the given context submit to the specified DSpace object?
This forwards to the individual methods for different object types;
see their documentation for details of the conditions.
|
boolean |
SwordAuthenticator.canSubmitTo(SwordContext swordContext,
Item item) |
protected DepositResult |
CollectionDepositManagerDSpace.createNewFromBinary(SwordContext swordContext,
Collection collection,
org.swordapp.server.Deposit deposit,
org.swordapp.server.AuthCredentials authCredentials,
SwordConfigurationDSpace swordConfig) |
protected DepositResult |
CollectionDepositManagerDSpace.createNewFromEntry(SwordContext swordContext,
Collection collection,
org.swordapp.server.Deposit deposit,
org.swordapp.server.AuthCredentials authCredentials,
SwordConfigurationDSpace swordConfig) |
protected DepositResult |
CollectionDepositManagerDSpace.createNewFromMultipart(SwordContext swordContext,
Collection collection,
org.swordapp.server.Deposit deposit,
org.swordapp.server.AuthCredentials authCredentials,
SwordConfigurationDSpace swordConfig) |
protected DepositResult |
ContainerManagerDSpace.doAddMetadata(SwordContext swordContext,
Item item,
org.swordapp.server.Deposit deposit,
org.swordapp.server.AuthCredentials authCredentials,
SwordConfigurationDSpace swordConfig) |
protected DepositResult |
ContainerManagerDSpace.doAddMetadata(SwordContext swordContext,
Item item,
org.swordapp.server.Deposit deposit,
org.swordapp.server.AuthCredentials authCredentials,
SwordConfigurationDSpace swordConfig,
DepositResult result) |
protected void |
ContainerManagerDSpace.doContainerDelete(SwordContext swordContext,
Item item,
org.swordapp.server.AuthCredentials authCredentials,
SwordConfigurationDSpace swordConfig) |
List<Collection> |
SwordAuthenticator.getAllowedCollections(SwordContext swordContext)
Get an array of all the collections that the current SWORD
context will allow deposit onto in the given DSpace context
Forwards to:
getAllowedCollections(swordContext, null)
See that method for details of the conditions applied
|
List<Collection> |
SwordAuthenticator.getAllowedCollections(SwordContext swordContext,
Community community)
Get an array of all the collections that the current SWORD
context will allow deposit onto in the given DSpace context
IF: the authenticated user is an administrator
AND:
(the on-behalf-of user is an administrator
OR the on-behalf-of user is authorised to ADD
OR the on-behalf-of user is null)
OR IF: the authenticated user is authorised to ADD
AND:
(the on-behalf-of user is an administrator
OR the on-behalf-of user is authorised to ADD
OR the on-behalf-of user is null)
|
List<Community> |
SwordAuthenticator.getAllowedCommunities(SwordContext swordContext)
Get an array of all the communities that the current SWORD
context will allow deposit onto in the given DSpace context
The user may submit to a community if the following conditions
are met:
IF: the authenticated user is an administrator
AND:
(the on-behalf-of user is an administrator
OR the on-behalf-of user is authorised to READ
OR the on-behalf-of user is null)
OR IF: the authenticated user is authorised to READ
AND:
(the on-behalf-of user is an administrator
OR the on-behalf-of user is authorised to READ
OR the on-behalf-of user is null)
|
List<Item> |
SwordAuthenticator.getAllowedItems(SwordContext swordContext,
Collection collection)
Get a list of all the items that the current SWORD
context will allow deposit onto in the given DSpace context
IF: the authenticated user is an administrator
AND:
(the on-behalf-of user is an administrator
OR the on-behalf-of user is authorised to WRITE on the item and ADD on the ORIGINAL bundle
OR the on-behalf-of user is null)
OR IF: the authenticated user is authorised to WRITE on the item and ADD on the ORIGINAL bundle
AND:
(the on-behalf-of user is an administrator
OR the on-behalf-of user is authorised to WRITE on the item and ADD on the ORIGINAL bundle
OR the on-behalf-of user is null)
|
List<Community> |
SwordAuthenticator.getCommunities(SwordContext swordContext,
Community community)
Get an array of all the collections that the current SWORD
context will allow deposit onto in the given DSpace context
The user may submit to a community if the following conditions
are met:
IF: the authenticated user is an administrator
AND:
(the on-behalf-of user is an administrator
OR the on-behalf-of user is authorised to READ
OR the on-behalf-of user is null)
OR IF: the authenticated user is authorised to READ
AND:
(the on-behalf-of user is an administrator
OR the on-behalf-of user is authorised to READ
OR the on-behalf-of user is null)
|
org.swordapp.server.ServiceDocument |
ServiceDocumentManagerDSpace.getServiceDocument(SwordContext context,
String url,
SwordConfigurationDSpace swordConfig) |
boolean |
SwordAuthenticator.isOnBehalfOfAdmin(SwordContext swordContext)
Is the given onBehalfOf user DSpace administrator? This translates
as asking the question of whether the given eperson is a member
of the special DSpace group Administrator, with id 1
|
boolean |
SwordAuthenticator.isOnBehalfOfInGroup(SwordContext swordContext,
Group group)
Is the onBehalfOf user a member of the given group or
one of its sub groups?
|
boolean |
SwordAuthenticator.isUserAdmin(SwordContext swordContext)
Is the authenticated user a DSpace administrator? This translates
as asking the question of whether the given eperson is a member
of the special DSpace group Administrator, with id 1
|
boolean |
SwordAuthenticator.isUserInGroup(SwordContext swordContext,
Group group)
Is the authenticated user a member of the given group
or one of its sub groups?
|
Copyright © 2013 DuraSpace. All Rights Reserved.