com.ptc.windchill.upgrade.ius
Class FileSystemBasedUpdateStore

java.lang.Object
  extended bycom.ptc.windchill.upgrade.ius.FileSystemBasedUpdateStore
All Implemented Interfaces:
UpdateStore

public class FileSystemBasedUpdateStore
extends Object
implements UpdateStore


Nested Class Summary
(package private) static class FileSystemBasedUpdateStore.AdditionalIUDependencies
           
private static class FileSystemBasedUpdateStore.CacheEntry
           
 
Field Summary
private  ArrayList additionalIuDependencies_
           
private static String AIUD_FILENAME_EXTENSION
           
private  HashMap contentCache_
           
private  File updatesPath_
           
 
Constructor Summary
FileSystemBasedUpdateStore(File path)
           
 
Method Summary
private  void addAdditionalDependenciesTo(IncrementalUpdate iu)
           
private static FileSystemBasedUpdateStore.CacheEntry createNewCacheEntryFrom(File file_loaded_from)
           
private  File createUpdateFileFor(UUID update_uuid)
           
 void deleteUpdate(UUID update_uuid)
           
 String describe()
           
private  void ensureAdditionalDependenciesAreRead()
           
 List getAllUpdateUuids()
          The UUIDs for all updates in the store in no particular order.
 IncrementalUpdate loadUpdate(UUID update_uuid)
           
 void saveUpdate(IncrementalUpdate update)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AIUD_FILENAME_EXTENSION

private static final String AIUD_FILENAME_EXTENSION
See Also:
Constant Field Values

updatesPath_

private File updatesPath_

contentCache_

private HashMap contentCache_

additionalIuDependencies_

private ArrayList additionalIuDependencies_
Constructor Detail

FileSystemBasedUpdateStore

public FileSystemBasedUpdateStore(File path)
Method Detail

describe

public String describe()
Specified by:
describe in interface UpdateStore

createUpdateFileFor

private final File createUpdateFileFor(UUID update_uuid)

deleteUpdate

public void deleteUpdate(UUID update_uuid)
                  throws UpdateStoreException
Specified by:
deleteUpdate in interface UpdateStore
Throws:
UpdateStoreException

getAllUpdateUuids

public List getAllUpdateUuids()
The UUIDs for all updates in the store in no particular order.

Specified by:
getAllUpdateUuids in interface UpdateStore
Returns:
a new non-null list that can be changed by the caller without ill effects

loadUpdate

public IncrementalUpdate loadUpdate(UUID update_uuid)
                             throws UpdateStoreException
Specified by:
loadUpdate in interface UpdateStore
Throws:
UpdateStoreException

saveUpdate

public void saveUpdate(IncrementalUpdate update)
                throws UpdateStoreException
Specified by:
saveUpdate in interface UpdateStore
Throws:
UpdateStoreException

createNewCacheEntryFrom

private static FileSystemBasedUpdateStore.CacheEntry createNewCacheEntryFrom(File file_loaded_from)
                                                                      throws UpdateStoreException
Throws:
UpdateStoreException

ensureAdditionalDependenciesAreRead

private void ensureAdditionalDependenciesAreRead()
                                          throws UpdateStoreException
Throws:
UpdateStoreException

addAdditionalDependenciesTo

private void addAdditionalDependenciesTo(IncrementalUpdate iu)
                                  throws UpdateStoreException
Throws:
UpdateStoreException