Uses of Class
org.dspace.sword.SWORDContext

Packages that use SWORDContext
org.dspace.sword   
 

Uses of SWORDContext in org.dspace.sword
 

Methods in org.dspace.sword that return SWORDContext
 SWORDContext SWORDAuthenticator.authenticate(AtomDocumentRequest request)
          Authenticate the given atom document request.
 SWORDContext SWORDAuthenticator.authenticate(Deposit deposit)
          Authenticate the deposit request.
 SWORDContext SWORDAuthenticator.authenticate(ServiceDocumentRequest request)
          Authenticate the given service document request.
 SWORDContext SWORDService.getSwordContext()
           
 

Methods in org.dspace.sword with parameters of type SWORDContext
 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.
 boolean SWORDAuthenticator.canSubmitTo(SWORDContext swordContext, Item item)
          Does the given context have the authority to submit to the given item.
 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)
 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?
 void SWORDService.setSwordContext(SWORDContext swordContext)
           
 

Constructors in org.dspace.sword with parameters of type SWORDContext
SWORDService(SWORDContext sc)
          Construct a new service instance around the given authenticated sword context
 



Copyright © 2010 DuraSpace. All Rights Reserved.