View Javadoc
1 /* 2 * $Header: /cvsroot/ebxmlrr/ebxmlrr/src/share/com/sun/ebxml/registry/repository/RepositoryManager.java,v 1.13 2002/11/09 22:42:39 peteburg Exp $ 3 */ 4 package com.sun.ebxml.registry.repository; 5 6 import java.io.*; 7 import java.util.*; 8 9 import org.apache.xml.security.signature.*; 10 import org.apache.xml.serialize.*; 11 12 import com.sun.ebxml.registry.*; 13 import com.sun.ebxml.registry.util.*; 14 15 /*** 16 * The Repository Manager interface implemented by RepositoryManagers that 17 * control inserting, updating and deleting repository items. 18 * 19 * @author Adrian Chong 20 * @author Peter Burgess 21 * 22 * @version $Version: $ [$Date: 2002/11/09 22:42:39 $] 23 */ 24 public interface RepositoryManager { 25 26 /*** 27 * Gets the path for a RepositoryItem given its id. 28 */ 29 public String getRepositoryItemPath(String id) throws RegistryException; 30 31 /*** 32 * Insert the repository item. 33 * @param item The repository item. 34 */ 35 public void insert(RepositoryItem item) throws RegistryException; 36 37 /*** 38 * Returns the RepositoryItem with the given unique ID. 39 * 40 * @param id Unique id for repository item 41 * @return RepositoryItem instance 42 * @exception RegistryException 43 */ 44 public RepositoryItem getRepositoryItem(String id) throws RegistryException; 45 46 /*** 47 * Delete the repository item. 48 * @param id A unique id (UUID or URN) 49 * @throws RegistryException if the item does not exist 50 */ 51 public void delete(String id) throws RegistryException; 52 53 /*** 54 * Delete multiple repository items. 55 * @param ids ArrayList of repositoryItem ids. 56 * @throws RegistryException if any of the item do not exist 57 */ 58 public void delete(ArrayList ids) throws RegistryException; 59 60 /*** 61 * Updates a RepositoryItem. 62 */ 63 public void update(RepositoryItem item) throws RegistryException ; 64 65 /*** 66 * Return a ArrayList of non-existent repository items 67 * @param ids The ArrayList of repository items id. 68 */ 69 public ArrayList itemsExist(ArrayList ids) throws RegistryException; 70 71 /*** 72 * Get the size of a repository item in bytes. 73 * @param itemId The id of repository item, with "urn:uuid:". 74 * @return 0 if the file does not exist. 75 */ 76 public long getItemSize(String itemId) throws RegistryException; 77 78 /*** 79 * Get the total size an ArrayList of repository item in bytes. 80 * @param ids ArrayList of repository item ids 81 * @return 0 if the no items (or items do not exist). 82 */ 83 public long getItemsSize(ArrayList ids) throws RegistryException; 84 85 }

This page was automatically generated by Maven