|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface describes the registry for OpenCms.
| Field Summary | |
static int |
C_ANY_VERSION
|
static String |
C_MODULE_PATH
The name of the folder to extend the exportpath |
static String |
C_MODULE_TYPE_SIMPLE
Type identificator for "simple" (5.0 style) modules |
static String |
C_MODULE_TYPE_TRADITIONAL
Type identificator for "traditional" modules |
| Method Summary | |
I_CmsRegistry |
clone(CmsObject cms)
This method clones the registry. |
void |
createModule(String modulename,
String niceModulename,
String description,
String author,
String type,
Map exportPoints,
long createDate,
float version)
This method creates a new module in the repository. |
void |
createModule(String modulename,
String niceModulename,
String description,
String author,
String type,
Map exportPoints,
String createDate,
float version)
This method creates a new module in the repository. |
Vector |
deleteCheckDependencies(String modulename,
boolean replaceMode)
Checks which modules depend on this module. |
void |
deleteGetConflictingFileNames(String modulename,
Vector filesWithProperty,
Vector missingFiles,
Vector wrongChecksum,
Vector filesInUse,
Vector resourcesForProject)
This method checks for conflicting files before the deletion of a module. |
void |
deleteModule(String module,
Vector exclusion,
boolean replaceMode,
I_CmsReport report)
Deletes a module. |
void |
deleteModuleView(String modulename)
Deletes the view for a module. |
void |
exportModule(String moduleName,
String[] resources,
String fileName,
I_CmsReport report)
This method exports a module to the filesystem. |
Hashtable |
getExportpoints()
Returns all exportpoints and paths. |
String |
getModuleAuthor(String modulename)
This method returns the author of the module. |
String |
getModuleAuthorEmail(String modulename)
This method returns the email of author of the module. |
long |
getModuleCreateDate(String modulname)
Gets the create date of the module. |
int |
getModuleDependencies(String modulename,
Vector modules,
Vector minVersions,
Vector maxVersions)
Returns the module dependencies for the module. |
String |
getModuleDescription(String module)
Returns the description of the module. |
String |
getModuleDocumentPath(String modulename)
Gets the url to the documentation of the module. |
int |
getModuleExportables(Hashtable classes)
Returns all exportable classes for all modules. |
int |
getModuleFiles(String modulename,
Vector retNames,
Vector retCodes)
Returns all filenames and hashcodes belonging to the module. |
int |
getModuleLifeCycle(Vector classes)
Returns all lifecycle classes for all modules. |
Class |
getModuleMaintenanceEventClass(String modulname)
Returns the class, that receives all maintenance-events for the module. |
String |
getModuleMaintenanceEventName(String modulname)
Returns the name of the class, that receives all maintenance-events for the module. |
Enumeration |
getModuleNames()
Returns the names of all available modules. |
String |
getModuleNiceName(String module)
Gets the nice name of the module. |
String |
getModuleParameter(String modulename,
String parameter)
Gets a parameter for a module. |
boolean |
getModuleParameterBoolean(String modulname,
String parameter)
Returns a parameter for a module. |
boolean |
getModuleParameterBoolean(String modulname,
String parameter,
boolean defaultValue)
Returns a parameter for a module. |
Boolean |
getModuleParameterBoolean(String modulname,
String parameter,
Boolean defaultValue)
Returns a parameter for a module. |
byte |
getModuleParameterByte(String modulname,
String parameter)
Returns a parameter for a module. |
byte |
getModuleParameterByte(String modulname,
String parameter,
byte defaultValue)
Returns a parameter for a module. |
Byte |
getModuleParameterByte(String modulname,
String parameter,
Byte defaultValue)
Returns a parameter for a module. |
String |
getModuleParameterDescription(String modulname,
String parameter)
Returns a description for parameter in a module. |
double |
getModuleParameterDouble(String modulname,
String parameter)
Returns a parameter for a module. |
double |
getModuleParameterDouble(String modulname,
String parameter,
double defaultValue)
Returns a parameter for a module. |
Double |
getModuleParameterDouble(String modulname,
String parameter,
Double defaultValue)
Returns a parameter for a module. |
float |
getModuleParameterFloat(String modulname,
String parameter)
Returns a parameter for a module. |
float |
getModuleParameterFloat(String modulname,
String parameter,
float defaultValue)
Returns a parameter for a module. |
Float |
getModuleParameterFloat(String modulname,
String parameter,
Float defaultValue)
Returns a parameter for a module. |
int |
getModuleParameterInteger(String modulname,
String parameter)
Returns a parameter for a module. |
int |
getModuleParameterInteger(String modulname,
String parameter,
int defaultValue)
Returns a parameter for a module. |
Integer |
getModuleParameterInteger(String modulname,
String parameter,
Integer defaultValue)
Returns a parameter for a module. |
long |
getModuleParameterLong(String modulname,
String parameter)
Returns a parameter for a module. |
long |
getModuleParameterLong(String modulname,
String parameter,
long defaultValue)
Returns a parameter for a module. |
Long |
getModuleParameterLong(String modulname,
String parameter,
Long defaultValue)
Returns a parameter for a module. |
String[] |
getModuleParameterNames(String modulename)
Gets all parameter-names for a module. |
String |
getModuleParameterString(String modulname,
String parameter)
Returns a parameter for a module. |
String |
getModuleParameterString(String modulname,
String parameter,
String defaultValue)
Returns a parameter for a module. |
String |
getModuleParameterType(String modulename,
String parameter)
This method returns the type of a parameter in a module. |
int |
getModulePublishables(Vector classes,
String requiredMethod)
Returns all publishable classes for all modules. |
String |
getModulePublishClass(String modulname)
Returns the name of the class, that contains the publish method of the module. |
String[] |
getModuleRepositories(String modulename)
Returns all repositories for a module. |
String |
getModuleType(String theModulename)
Returns the value of the "type" node of a module subtree in the registry. |
long |
getModuleUploadDate(String modulename)
Returns the upload-date for the module. |
String |
getModuleUploadedBy(String module)
Returns the user-name of the user who had uploaded the module. |
float |
getModuleVersion(String modulename)
This method returns the version of the module. |
String |
getModuleViewName(String modulename)
Returns the name of the view, that is implemented by the module. |
String |
getModuleViewUrl(String modulename)
Returns the url to the view-url for the module within the system. |
String[] |
getRepositories()
Returns all repositories for all modules. |
int |
getResourceTypes(Vector names,
Vector launcherTypes,
Vector launcherClass,
Vector resourceClass)
Returns all Resourcetypes and korresponding parameter for System and all modules. |
Element |
getSystemElement()
Return the XML "system" node Element from the registry for further processing in another class. |
String |
getSystemValue(String key)
Returns a value for a system-key. |
Hashtable |
getSystemValues(String key)
Returns a vector of value for a system-key. |
int |
getViews(Vector views,
Vector urls)
Returns all views and korresponding urls for all modules. |
Vector |
importCheckDependencies(String moduleZip,
boolean replaceMode)
Checks the dependencies for a new or replaced module. |
Vector |
importGetConflictingFileNames(String moduleZip)
Checks for files that already exist in the system but should be replaced by the module. |
Map |
importGetModuleInfo(String moduleZip)
Returns the name of the module to be imported. |
Vector |
importGetResourcesForProject(String moduleZip)
Returns all files that are needed to create a project for the module-import. |
void |
importModule(String moduleZip,
Vector exclusion,
I_CmsReport report)
Imports a module. |
boolean |
moduleExists(String modulename)
Checks if the module exists already in the repository. |
void |
setModuleAuthor(String modulename,
String author)
This method sets the author of the module. |
void |
setModuleAuthorEmail(String modulename,
String email)
This method sets the email of author of the module. |
void |
setModuleCreateDate(String modulname,
long createdate)
Sets the create date of the module. |
void |
setModuleCreateDate(String modulname,
String createdate)
Sets the create date of the module. |
void |
setModuleDependencies(String modulename,
Vector modules,
Vector minVersions,
Vector maxVersions)
Sets the module dependencies for the module. |
void |
setModuleDescription(String module,
String description)
Sets the description of the module. |
void |
setModuleDocumentPath(String modulename,
String url)
Sets the url to the documentation of the module. |
void |
setModuleMaintenanceEventClass(String modulname,
String classname)
Sets the classname, that receives all maintenance-events for the module. |
void |
setModuleNiceName(String module,
String nicename)
Sets the description of the module. |
void |
setModuleParameter(String modulename,
String parameter,
boolean value)
Sets a parameter for a module. |
void |
setModuleParameter(String modulename,
String parameter,
Boolean value)
Sets a parameter for a module. |
void |
setModuleParameter(String modulename,
String parameter,
byte value)
Sets a parameter for a module. |
void |
setModuleParameter(String modulename,
String parameter,
Byte value)
Sets a parameter for a module. |
void |
setModuleParameter(String modulename,
String parameter,
double value)
Sets a parameter for a module. |
void |
setModuleParameter(String modulename,
String parameter,
Double value)
Sets a parameter for a module. |
void |
setModuleParameter(String modulename,
String parameter,
float value)
Sets a parameter for a module. |
void |
setModuleParameter(String modulename,
String parameter,
Float value)
Sets a parameter for a module. |
void |
setModuleParameter(String modulename,
String parameter,
int value)
Sets a parameter for a module. |
void |
setModuleParameter(String modulename,
String parameter,
Integer value)
Sets a parameter for a module. |
void |
setModuleParameter(String modulename,
String parameter,
long value)
Sets a parameter for a module. |
void |
setModuleParameter(String modulename,
String parameter,
Long value)
Sets a parameter for a module. |
void |
setModuleParameter(String modulename,
String parameter,
String value)
Sets a parameter for a module. |
void |
setModuleParameterdef(String modulename,
Vector names,
Vector descriptions,
Vector types,
Vector values)
Sets the module dependencies for the module. |
void |
setModulePublishClass(String modulname,
String classname)
Sets the classname, that contains the publish method of the module. |
void |
setModuleRepositories(String modulename,
String[] repositories)
Sets all repositories for a module. |
void |
setModuleType(String theModulename,
String theModuleType)
Sets the type for a given module. |
void |
setModuleVersion(String modulename,
String version)
This method sets the version of the module. |
void |
setModuleView(String modulename,
String viewname,
String viewurl)
Sets a view for a module |
void |
setSystemValue(String dataName,
String value)
Public method to set system values. |
void |
setSystemValues(String dataName,
Hashtable values)
Public method to set system values with hashtable. |
| Field Detail |
public static final int C_ANY_VERSION
public static final String C_MODULE_PATH
public static final String C_MODULE_TYPE_TRADITIONAL
public static final String C_MODULE_TYPE_SIMPLE
| Method Detail |
public I_CmsRegistry clone(CmsObject cms)
public void createModule(String modulename,
String niceModulename,
String description,
String author,
String type,
Map exportPoints,
long createDate,
float version)
throws CmsException
modulename - the name of the moduleniceModulename - another name of the moduledescription - the description of the moduleauthor - the name of the authortype - the type of the moduleexportPoints - a map of all export points of the modulecreateDate - the creation date of the moduleversion - the version number of the module
CmsException - if the user has no right to create a new module
public void createModule(String modulename,
String niceModulename,
String description,
String author,
String type,
Map exportPoints,
String createDate,
float version)
throws CmsException
modulename - the name of the moduleniceModulename - another name of the moduledescription - the description of the moduleauthor - the name of the authortype - the type of the moduleexportPoints - a map of all export points of the modulecreateDate - the creation date of the module in the format: mm.dd.yyyyversion - the version number of the module
CmsException - if the user has no right to create a new module
public Vector deleteCheckDependencies(String modulename,
boolean replaceMode)
throws CmsException
If a module depends on this module, the name will be returned in the vector.
replaceMode - if true this is for module replacement,
if false it is form module deletion
CmsException
public void deleteGetConflictingFileNames(String modulename,
Vector filesWithProperty,
Vector missingFiles,
Vector wrongChecksum,
Vector filesInUse,
Vector resourcesForProject)
throws CmsException
modulename - the name of the module that should be deleted.filesWithProperty - a return value. The files that are marked with the module-property for this module.missingFiles - a return value. The files that are missing.wrongChecksum - a return value. The files that should be deleted but have another checksum as at import-time.filesInUse - a return value. The files that should be deleted but are in use by other modules.resourcesForProject - a return value. The files that should be copied to a project to delete.
CmsException
public void deleteModule(String module,
Vector exclusion,
boolean replaceMode,
I_CmsReport report)
throws CmsException
This method is synchronized, so only one module can be deleted at a time.
module - the name of the module to be deletedexclusion - a Vector with resource names that should be excluded from this deletionreplaceMode - if true this is for module replacement, so no dependencies will be checkedreport - a report for the output
CmsException - in case of an error during deletion
public void deleteModuleView(String modulename)
throws CmsException
CmsException
public void exportModule(String moduleName,
String[] resources,
String fileName,
I_CmsReport report)
throws CmsException
moduleName - the name of the module to be exported.fileName - the name of the file to write the export to.
CmsExceptionpublic String getModuleAuthor(String modulename)
public String getModuleAuthorEmail(String modulename)
public long getModuleCreateDate(String modulname)
public int getModuleDependencies(String modulename,
Vector modules,
Vector minVersions,
Vector maxVersions)
modules - Vector in this parameter the names of the dependend modules will be returned.minVersions - Vector in this parameter the minimum versions of the dependend modules will be returned.maxVersions - Vector in this parameter the maximum versions of the dependend modules will be returned.
public String getModuleDescription(String module)
public String getModuleDocumentPath(String modulename)
public int getModuleFiles(String modulename,
Vector retNames,
Vector retCodes)
retNames - the names of the resources belonging to the module.retCodes - the hashcodes of the resources belonging to the module.
public Class getModuleMaintenanceEventClass(String modulname)
public String getModuleMaintenanceEventName(String modulname)
public Enumeration getModuleNames()
public String getModuleNiceName(String module)
public String getModuleParameter(String modulename,
String parameter)
modulename - java.lang.String the name of the module.parameter - java.lang.String the name of the parameter to set.
public boolean getModuleParameterBoolean(String modulname,
String parameter)
modulname - String the name of the module.parameter - String the name of the parameter.
public Boolean getModuleParameterBoolean(String modulname,
String parameter,
Boolean defaultValue)
modulname - String the name of the module.parameter - String the name of the parameter.
public boolean getModuleParameterBoolean(String modulname,
String parameter,
boolean defaultValue)
modulname - String the name of the module.parameter - String the name of the parameter.
public byte getModuleParameterByte(String modulname,
String parameter)
modulname - String the name of the module.parameter - String the name of the parameter.
public byte getModuleParameterByte(String modulname,
String parameter,
byte defaultValue)
modulname - String the name of the module.parameter - String the name of the parameter.
public Byte getModuleParameterByte(String modulname,
String parameter,
Byte defaultValue)
modulname - String the name of the module.parameter - String the name of the parameter.
public String getModuleParameterDescription(String modulname,
String parameter)
modulname - String the name of the module.parameter - String the name of the parameter.
public double getModuleParameterDouble(String modulname,
String parameter)
modulname - String the name of the module.parameter - String the name of the parameter.
public double getModuleParameterDouble(String modulname,
String parameter,
double defaultValue)
modulname - String the name of the module.parameter - String the name of the parameter.
public Double getModuleParameterDouble(String modulname,
String parameter,
Double defaultValue)
modulname - String the name of the module.parameter - String the name of the parameter.
public float getModuleParameterFloat(String modulname,
String parameter)
modulname - String the name of the module.parameter - String the name of the parameter.
public float getModuleParameterFloat(String modulname,
String parameter,
float defaultValue)
modulname - String the name of the module.parameter - String the name of the parameter.
public Float getModuleParameterFloat(String modulname,
String parameter,
Float defaultValue)
modulname - String the name of the module.parameter - String the name of the parameter.
public int getModuleParameterInteger(String modulname,
String parameter)
modulname - String the name of the module.parameter - String the name of the parameter.
public int getModuleParameterInteger(String modulname,
String parameter,
int defaultValue)
modulname - String the name of the module.parameter - String the name of the parameter.
public Integer getModuleParameterInteger(String modulname,
String parameter,
Integer defaultValue)
modulname - String the name of the module.parameter - String the name of the parameter.
public long getModuleParameterLong(String modulname,
String parameter)
modulname - String the name of the module.parameter - String the name of the parameter.
public long getModuleParameterLong(String modulname,
String parameter,
long defaultValue)
modulname - String the name of the module.parameter - String the name of the parameter.
public Long getModuleParameterLong(String modulname,
String parameter,
Long defaultValue)
modulname - String the name of the module.parameter - String the name of the parameter.
public String[] getModuleParameterNames(String modulename)
modulename - String the name of the module.
public String getModuleParameterString(String modulname,
String parameter)
modulname - String the name of the module.parameter - String the name of the parameter.
public String getModuleParameterString(String modulname,
String parameter,
String defaultValue)
modulname - String the name of the module.parameter - String the name of the parameter.
public String getModuleParameterType(String modulename,
String parameter)
modulename - the name of the module.parameter - the name of the parameter.
public String[] getModuleRepositories(String modulename)
public long getModuleUploadDate(String modulename)
public String getModuleUploadedBy(String module)
public float getModuleVersion(String modulename)
public String getModuleViewName(String modulename)
public String getModuleViewUrl(String modulename)
public int getModuleLifeCycle(Vector classes)
public String getModulePublishClass(String modulname)
public int getModulePublishables(Vector classes,
String requiredMethod)
public int getModuleExportables(Hashtable classes)
public String[] getRepositories()
public int getResourceTypes(Vector names,
Vector launcherTypes,
Vector launcherClass,
Vector resourceClass)
public String getSystemValue(String key)
<system><mailserver>mail.server.com</mailserver></system>
can be requested via getSystemValue("mailserver"); and returns "mail.server.com.
public Hashtable getSystemValues(String key)
public Element getSystemElement()
public int getViews(Vector views,
Vector urls)
public Vector importCheckDependencies(String moduleZip,
boolean replaceMode)
throws CmsException
moduleZip - the name of the zipfile for the new module.replaceMode - if true this is for module replacement,
if false it is form module deletion
CmsException
public Vector importGetConflictingFileNames(String moduleZip)
throws CmsException
moduleZip - The name of the zip-file to import.
CmsExceptionpublic Map importGetModuleInfo(String moduleZip)
moduleZip - the name of the zip-file to import from.
public Vector importGetResourcesForProject(String moduleZip)
throws CmsException
moduleZip - The name of the zip-file to import.
CmsException
public void importModule(String moduleZip,
Vector exclusion,
I_CmsReport report)
throws CmsException
moduleZip - the name of the zip-file to import from.exclusion - a Vector with resource-names that should be excluded from this import.
CmsExceptionpublic boolean moduleExists(String modulename)
public void setModuleAuthor(String modulename,
String author)
throws CmsException
CmsException
public void setModuleAuthorEmail(String modulename,
String email)
throws CmsException
CmsException
public void setModuleCreateDate(String modulname,
long createdate)
throws CmsException
CmsException
public void setModuleCreateDate(String modulname,
String createdate)
throws CmsException
CmsException
public void setModuleDependencies(String modulename,
Vector modules,
Vector minVersions,
Vector maxVersions)
throws CmsException
modules - Vector in this parameter the names of the dependend modules will be returned.minVersions - Vector in this parameter the minimum versions of the dependend modules will be returned.maxVersions - Vector in this parameter the maximum versions of the dependend modules will be returned.
CmsException
public void setModuleDescription(String module,
String description)
throws CmsException
CmsException
public void setModuleDocumentPath(String modulename,
String url)
throws CmsException
CmsException
public void setModuleMaintenanceEventClass(String modulname,
String classname)
throws CmsException
CmsException
public void setModulePublishClass(String modulname,
String classname)
throws CmsException
CmsException
public void setModuleNiceName(String module,
String nicename)
throws CmsException
CmsException
public void setModuleParameter(String modulename,
String parameter,
byte value)
throws CmsException
modulename - java.lang.String the name of the module.parameter - java.lang.String the name of the parameter to set.
CmsException
public void setModuleParameter(String modulename,
String parameter,
double value)
throws CmsException
modulename - java.lang.String the name of the module.parameter - java.lang.String the name of the parameter to set.
CmsException
public void setModuleParameter(String modulename,
String parameter,
float value)
throws CmsException
modulename - java.lang.String the name of the module.parameter - java.lang.String the name of the parameter to set.
CmsException
public void setModuleParameter(String modulename,
String parameter,
int value)
throws CmsException
modulename - java.lang.String the name of the module.parameter - java.lang.String the name of the parameter to set.
CmsException
public void setModuleParameter(String modulename,
String parameter,
long value)
throws CmsException
modulename - java.lang.String the name of the module.parameter - java.lang.String the name of the parameter to set.
CmsException
public void setModuleParameter(String modulename,
String parameter,
Boolean value)
throws CmsException
modulename - java.lang.String the name of the module.parameter - java.lang.String the name of the parameter to set.
CmsException
public void setModuleParameter(String modulename,
String parameter,
Byte value)
throws CmsException
modulename - java.lang.String the name of the module.parameter - java.lang.String the name of the parameter to set.
CmsException
public void setModuleParameter(String modulename,
String parameter,
Double value)
throws CmsException
modulename - java.lang.String the name of the module.parameter - java.lang.String the name of the parameter to set.
CmsException
public void setModuleParameter(String modulename,
String parameter,
Float value)
throws CmsException
modulename - java.lang.String the name of the module.parameter - java.lang.String the name of the parameter to set.
CmsException
public void setModuleParameter(String modulename,
String parameter,
Integer value)
throws CmsException
modulename - java.lang.String the name of the module.parameter - java.lang.String the name of the parameter to set.
CmsException
public void setModuleParameter(String modulename,
String parameter,
Long value)
throws CmsException
modulename - java.lang.String the name of the module.parameter - java.lang.String the name of the parameter to set.
CmsException
public void setModuleParameter(String modulename,
String parameter,
String value)
throws CmsException
modulename - java.lang.String the name of the module.parameter - java.lang.String the name of the parameter to set.value - java.lang.String the value to set for the parameter.
CmsException
public void setModuleParameter(String modulename,
String parameter,
boolean value)
throws CmsException
modulename - java.lang.String the name of the module.parameter - java.lang.String the name of the parameter to set.
CmsException
public void setModuleParameterdef(String modulename,
Vector names,
Vector descriptions,
Vector types,
Vector values)
throws CmsException
names - Vector with parameternamesdescriptions - Vector with parameterdescriptionstypes - Vector with parametertypes (string, float,...)values - Vector with defaultvalues for parameters
CmsException
public void setModuleRepositories(String modulename,
String[] repositories)
throws CmsException
CmsException
public void setModuleVersion(String modulename,
String version)
throws CmsException
modulename - the name of the module.version - the version of the module.
CmsException
public void setModuleView(String modulename,
String viewname,
String viewurl)
throws CmsException
CmsException
public void setSystemValue(String dataName,
String value)
throws CmsException
CmsException
public void setSystemValues(String dataName,
Hashtable values)
throws CmsException
CmsExceptionpublic Hashtable getExportpoints()
public String getModuleType(String theModulename)
public void setModuleType(String theModulename,
String theModuleType)
theModuleType - the new type of the module
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||