mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Added module status to module.properties file saved in WAR for later use. Added contribution to return node path in Reference object. Fixed issues with web service caused by outdated Jars and incorrect AuthenticationService
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4980 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -22,6 +22,7 @@ import java.util.Properties;
|
||||
|
||||
import org.alfresco.repo.module.tool.ModuleManagementToolException;
|
||||
import org.alfresco.service.cmr.module.ModuleDetails;
|
||||
import org.alfresco.service.cmr.module.ModuleInstallState;
|
||||
import org.alfresco.util.VersionNumber;
|
||||
|
||||
/**
|
||||
@@ -39,6 +40,7 @@ public class ModuleDetailsImpl implements ModuleDetails
|
||||
protected static final String PROP_DESCRIPTION = "module.description";
|
||||
protected static final String PROP_VERSION = "module.version";
|
||||
protected static final String PROP_INSTALL_DATE = "module.installDate";
|
||||
protected static final String PROP_INSTALL_STATE = "module.installState";
|
||||
|
||||
/** Properties object */
|
||||
protected Properties properties;
|
||||
@@ -130,6 +132,20 @@ public class ModuleDetailsImpl implements ModuleDetails
|
||||
return this.properties.getProperty(PROP_INSTALL_DATE);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see org.alfresco.service.cmr.module.ModuleDetails#getInstallState()
|
||||
*/
|
||||
public ModuleInstallState getInstallState()
|
||||
{
|
||||
ModuleInstallState result = ModuleInstallState.INSTALLED;
|
||||
String value = this.properties.getProperty(PROP_INSTALL_STATE);
|
||||
if (value != null && value.length() != 0)
|
||||
{
|
||||
result = ModuleInstallState.valueOf(value);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see java.lang.Object#toString()
|
||||
*/
|
||||
|
Reference in New Issue
Block a user