public class RepositoryManager
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
JCMS_UPLOAD_REPOSITORY  | 
static java.lang.String | 
REVISION  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
addRepository(Repository configuration)
A new repository is added to the manager, except if :
 
   it is null; 
   the id is alreadey used for another configuration; 
   the conditions are not verified. 
 | 
boolean | 
executeNextPostponedAlarmNow(java.lang.String id)
Execute now, in a specific thread (not in the current thread) the AlarmListener 
 used to process postponed item. 
 | 
boolean | 
executeNextScanAlarmNow(java.lang.String id)
Execute now, in a specific thread (not in the current thread) the AlarmListener 
 used to trigger directory scanning. 
 | 
static RepositoryManager | 
getInstance()
The first time, instanciate the RepositoryManager. 
 | 
java.util.Date | 
getNextPostponedProcessingDate(java.lang.String id)
Returns the date of the next call to the AlarmListener scheduled for postponed item processing. 
 | 
java.util.Date | 
getNextScanDate(java.lang.String id)
Returns the date of the next call to the AlarmListener scheduled for directory scanning 
 | 
java.util.Collection<Repository> | 
getRepositories()
Gives the collection of RepositoryConfiguration registered in the manager. 
 | 
Repository | 
getRepository(java.lang.String id)
Gives the RepositoryConfiguration mapped with this id. 
 | 
boolean | 
isLaunched(java.lang.String id)
We store in memory the information that a repository is stored. 
 | 
boolean | 
launchRepository(java.lang.String id)
Launch a repository if not. 
 | 
Repository | 
removeRepository(java.lang.String id)
Stops, removes and returns the repository mapped to this id off from the manager. 
 | 
boolean | 
stopRepository(java.lang.String id)
Stops the treatment if needed and checkout the AlarmEntry. 
 | 
public static final java.lang.String REVISION
public static final java.lang.String JCMS_UPLOAD_REPOSITORY
public static RepositoryManager getInstance()
public boolean addRepository(Repository configuration)
launchRepository(String)configuration - the Repository configuration to add to the managerpublic Repository removeRepository(java.lang.String id)
Returns null if no repository is mapped to this id.
id - the id of the Repositorypublic Repository getRepository(java.lang.String id)
id - The id of the repositorypublic java.util.Collection<Repository> getRepositories()
public boolean isLaunched(java.lang.String id)
id - The id of the repositorypublic boolean launchRepository(java.lang.String id)
id - The id of the repositorypublic boolean stopRepository(java.lang.String id)
id - The id of the repositorypublic boolean executeNextScanAlarmNow(java.lang.String id)
id - The id of the repositorypublic boolean executeNextPostponedAlarmNow(java.lang.String id)
id - The id of the repositorypublic java.util.Date getNextScanDate(java.lang.String id)
id - The id of the repositorypublic java.util.Date getNextPostponedProcessingDate(java.lang.String id)
id - The id of the repositoryCopyright © 2001-2018 Jalios SA. All Rights Reserved.