mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
RM Bugs:
* legacy dod:series class causing issues on a clean install when accessing the custom properties * updated read me git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@34911 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -20,6 +20,7 @@ Initial Setup
|
|||||||
Using Eclipse
|
Using Eclipse
|
||||||
|
|
||||||
- Start Eclipse in the usual way.
|
- Start Eclipse in the usual way.
|
||||||
|
Note: make sure the WAR dependancies have been exploded before opening Eclispe.
|
||||||
- Import projects found in rm-server and rm-share directories.
|
- Import projects found in rm-server and rm-share directories.
|
||||||
|
|
||||||
Deploying the RM AMPs
|
Deploying the RM AMPs
|
||||||
|
@@ -630,7 +630,11 @@ public class RecordsManagementAdminServiceImpl implements RecordsManagementAdmin
|
|||||||
Map<QName, PropertyDefinition> result = new HashMap<QName, PropertyDefinition>();
|
Map<QName, PropertyDefinition> result = new HashMap<QName, PropertyDefinition>();
|
||||||
for (QName customisableType : getCustomisable())
|
for (QName customisableType : getCustomisable())
|
||||||
{
|
{
|
||||||
result.putAll(getCustomPropertyDefinitions(customisableType));
|
Map<QName, PropertyDefinition> props = getCustomPropertyDefinitions(customisableType);
|
||||||
|
if (props != null)
|
||||||
|
{
|
||||||
|
result.putAll(props);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
@@ -640,9 +644,13 @@ public class RecordsManagementAdminServiceImpl implements RecordsManagementAdmin
|
|||||||
*/
|
*/
|
||||||
public Map<QName, PropertyDefinition> getCustomPropertyDefinitions(QName customisableType)
|
public Map<QName, PropertyDefinition> getCustomPropertyDefinitions(QName customisableType)
|
||||||
{
|
{
|
||||||
|
Map<QName, PropertyDefinition> propDefns = null;
|
||||||
QName relevantAspectQName = getCustomAspect(customisableType);
|
QName relevantAspectQName = getCustomAspect(customisableType);
|
||||||
AspectDefinition aspectDefn = dictionaryService.getAspect(relevantAspectQName);
|
AspectDefinition aspectDefn = dictionaryService.getAspect(relevantAspectQName);
|
||||||
Map<QName, PropertyDefinition> propDefns = aspectDefn.getProperties();
|
if (aspectDefn != null)
|
||||||
|
{
|
||||||
|
propDefns = aspectDefn.getProperties();
|
||||||
|
}
|
||||||
|
|
||||||
return propDefns;
|
return propDefns;
|
||||||
}
|
}
|
||||||
|
@@ -125,16 +125,19 @@ public class RecordsManagementTypeFormFilter extends RecordsManagementFormFilter
|
|||||||
ParameterCheck.mandatory("form", form);
|
ParameterCheck.mandatory("form", form);
|
||||||
|
|
||||||
Map<QName, PropertyDefinition> customProps = rmAdminService.getCustomPropertyDefinitions(customisableType);
|
Map<QName, PropertyDefinition> customProps = rmAdminService.getCustomPropertyDefinitions(customisableType);
|
||||||
|
|
||||||
if (logger.isDebugEnabled() == true)
|
if (customProps != null)
|
||||||
{
|
{
|
||||||
logger.debug("Found " + customProps.size() + " custom properties for customisable type " + customisableType);
|
if (logger.isDebugEnabled() == true)
|
||||||
|
{
|
||||||
|
logger.debug("Found " + customProps.size() + " custom properties for customisable type " + customisableType);
|
||||||
|
}
|
||||||
|
|
||||||
|
// setup field definition for each custom property
|
||||||
|
Collection<PropertyDefinition> properties = customProps.values();
|
||||||
|
List<Field> fields = FieldUtils.makePropertyFields(properties, CUSTOM_RM_FIELD_GROUP, namespaceService);
|
||||||
|
form.addFields(fields);
|
||||||
}
|
}
|
||||||
|
|
||||||
// setup field definition for each custom property
|
|
||||||
Collection<PropertyDefinition> properties = customProps.values();
|
|
||||||
List<Field> fields = FieldUtils.makePropertyFields(properties, CUSTOM_RM_FIELD_GROUP, namespaceService);
|
|
||||||
form.addFields(fields);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -96,9 +96,12 @@ public class CustomPropertyDefinitionsGet extends BaseCustomPropertyWebScript
|
|||||||
{
|
{
|
||||||
QName customisableType = mapToTypeQName(elementName);
|
QName customisableType = mapToTypeQName(elementName);
|
||||||
Map<QName, PropertyDefinition> currentCustomProps = rmAdminService.getCustomPropertyDefinitions(customisableType);
|
Map<QName, PropertyDefinition> currentCustomProps = rmAdminService.getCustomPropertyDefinitions(customisableType);
|
||||||
for (Entry<QName, PropertyDefinition> entry : currentCustomProps.entrySet())
|
if (currentCustomProps != null)
|
||||||
{
|
{
|
||||||
propData.add(entry.getValue());
|
for (Entry<QName, PropertyDefinition> entry : currentCustomProps.entrySet())
|
||||||
|
{
|
||||||
|
propData.add(entry.getValue());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user