|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.extensions.surf.util.AbstractLifecycleBean
org.alfresco.repo.descriptor.DescriptorServiceImpl
public class DescriptorServiceImpl
Implementation of Descriptor Service.
| Nested Class Summary | |
|---|---|
static class |
DescriptorServiceImpl.BaseDescriptor
Base class for Descriptor implementations, provides a default getVersion() implementation. |
| Field Summary |
|---|
| Fields inherited from class org.springframework.extensions.surf.util.AbstractLifecycleBean |
|---|
log |
| Constructor Summary | |
|---|---|
DescriptorServiceImpl()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
Initialise Descriptors. |
Descriptor |
getCurrentRepositoryDescriptor()
Get current descriptor for the repository. |
Descriptor |
getInstalledRepositoryDescriptor()
Get descriptor for the repository as it was when first installed. |
LicenseDescriptor |
getLicenseDescriptor()
Gets the License Descriptor |
Descriptor |
getServerDescriptor()
Get descriptor for the alfresco software installed on the server. |
java.lang.String |
loadLicense()
Attempts to load the license. |
protected void |
onBootstrap(org.springframework.context.ApplicationEvent event)
On bootstrap load the special services for LicenseComponent and HeartBeat Also set installedRepoDescriptor and update current |
void |
onLicenseChange(LicenseDescriptor licenseDescriptor)
Notification of a license change. |
void |
onLicenseFail()
Notification that a license have failed to validate |
protected void |
onShutdown(org.springframework.context.ApplicationEvent event)
|
void |
setCurrentRepoDescriptorDAO(DescriptorDAO currentRepoDescriptorDAO)
Sets the current repo descriptor DAO. |
void |
setInstalledRepoDescriptorDAO(DescriptorDAO installedRepoDescriptorDAO)
Sets the installed repo descriptor DAO. |
void |
setRepoUsageComponent(RepoUsageComponent repoUsageComponent)
|
void |
setServerDescriptorDAO(DescriptorDAO serverDescriptorDAO)
Sets the server descriptor DAO. |
void |
setTransactionService(TransactionService transactionService)
Sets the transaction service. |
| Methods inherited from class org.springframework.extensions.surf.util.AbstractLifecycleBean |
|---|
getApplicationContext, onApplicationEvent, setApplicationContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DescriptorServiceImpl()
| Method Detail |
|---|
public void setServerDescriptorDAO(DescriptorDAO serverDescriptorDAO)
serverDescriptorDAO - the new server descriptor DAOpublic void setCurrentRepoDescriptorDAO(DescriptorDAO currentRepoDescriptorDAO)
currentRepoDescriptorDAO - the new current repo descriptor DAOpublic void setInstalledRepoDescriptorDAO(DescriptorDAO installedRepoDescriptorDAO)
installedRepoDescriptorDAO - the new installed repo descriptor DAOpublic void setTransactionService(TransactionService transactionService)
transactionService - transaction servicepublic void setRepoUsageComponent(RepoUsageComponent repoUsageComponent)
public Descriptor getServerDescriptor()
DescriptorServiceThe information contained by this descriptor is read from a property file. The following properties are available in the descriptor
getServerDescriptor in interface DescriptorServicepublic Descriptor getCurrentRepositoryDescriptor()
DescriptorServiceThe information in this descriptor is read from a node in the system store. After the patch process runs successfully, the version Major/Minor/Revision should be equal to the server descriptor.
The "repository id" that uniquely identifies each alfresco repository is available in the "id" property.
The following properties are available in the descriptor
getCurrentRepositoryDescriptor in interface DescriptorServicepublic Descriptor getInstalledRepositoryDescriptor()
DescriptorServiceThe information in this descriptor is read from a node in the system store.
getInstalledRepositoryDescriptor in interface DescriptorServicepublic LicenseDescriptor getLicenseDescriptor()
DescriptorService
getLicenseDescriptor in interface DescriptorServicepublic java.lang.String loadLicense()
loadLicense in interface DescriptorServiceprotected void onBootstrap(org.springframework.context.ApplicationEvent event)
onBootstrap in class org.springframework.extensions.surf.util.AbstractLifecycleBeanprotected void onShutdown(org.springframework.context.ApplicationEvent event)
onShutdown in class org.springframework.extensions.surf.util.AbstractLifecycleBean
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exception - the exceptionpublic void onLicenseChange(LicenseDescriptor licenseDescriptor)
LicenseService.LicenseChangeHandler
onLicenseChange in interface LicenseService.LicenseChangeHandlerlicenseDescriptor - the new license (never null)public void onLicenseFail()
onLicenseFail in interface LicenseService.LicenseChangeHandler
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||