com.sun.ebxml.registry.repository
Class AbstractRepositoryManager

java.lang.Object
  |
  +--com.sun.ebxml.registry.repository.AbstractRepositoryManager
All Implemented Interfaces:
RepositoryManager
Direct Known Subclasses:
FileSystemRepositoryManager

public abstract class AbstractRepositoryManager
extends java.lang.Object
implements RepositoryManager

Abstract class implementing RepositoryManager interface that can be extended by RepositoryManagers that control inserting, updating and deleting repository items. Provides minimal implementation of some generic methods.

Version:
$Version: $ [$Date: 2002/11/09 22:47:58 $]
Author:
Adrian Chong, Peter Burgess

Constructor Summary
AbstractRepositoryManager()
           
 
Method Summary
 void delete(java.util.ArrayList ids)
          Delete multiple repository items.
 long getItemsSize(java.util.ArrayList ids)
          Get the total size an ArrayList of repository item in bytes.
 void update(RepositoryItem item)
          Updates a RepositoryItem.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sun.ebxml.registry.repository.RepositoryManager
delete, getItemSize, getRepositoryItem, getRepositoryItemPath, insert, itemsExist
 

Constructor Detail

AbstractRepositoryManager

public AbstractRepositoryManager()
Method Detail

delete

public void delete(java.util.ArrayList ids)
            throws RegistryException
Delete multiple repository items.

Specified by:
delete in interface RepositoryManager
Parameters:
ids - ArrayList of repositoryItem ids.
Throws:
RegistryException - if any of the item do not exist

update

public void update(RepositoryItem item)
            throws RegistryException
Updates a RepositoryItem.

Specified by:
update in interface RepositoryManager
Parameters:
item - repository item to be updated.
Throws:
RegistryException

getItemsSize

public long getItemsSize(java.util.ArrayList ids)
                  throws RegistryException
Get the total size an ArrayList of repository item in bytes.

Specified by:
getItemsSize in interface RepositoryManager
Parameters:
ids - ArrayList of repository item ids
Returns:
0 if the no items (or items do not exist).
RegistryException


Copyright © 2001-2003 OASIS. All Rights Reserved.