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
|
||||
|
||||
- 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.
|
||||
|
||||
Deploying the RM AMPs
|
||||
|
@@ -630,7 +630,11 @@ public class RecordsManagementAdminServiceImpl implements RecordsManagementAdmin
|
||||
Map<QName, PropertyDefinition> result = new HashMap<QName, PropertyDefinition>();
|
||||
for (QName customisableType : getCustomisable())
|
||||
{
|
||||
result.putAll(getCustomPropertyDefinitions(customisableType));
|
||||
Map<QName, PropertyDefinition> props = getCustomPropertyDefinitions(customisableType);
|
||||
if (props != null)
|
||||
{
|
||||
result.putAll(props);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
@@ -640,9 +644,13 @@ public class RecordsManagementAdminServiceImpl implements RecordsManagementAdmin
|
||||
*/
|
||||
public Map<QName, PropertyDefinition> getCustomPropertyDefinitions(QName customisableType)
|
||||
{
|
||||
Map<QName, PropertyDefinition> propDefns = null;
|
||||
QName relevantAspectQName = getCustomAspect(customisableType);
|
||||
AspectDefinition aspectDefn = dictionaryService.getAspect(relevantAspectQName);
|
||||
Map<QName, PropertyDefinition> propDefns = aspectDefn.getProperties();
|
||||
if (aspectDefn != null)
|
||||
{
|
||||
propDefns = aspectDefn.getProperties();
|
||||
}
|
||||
|
||||
return propDefns;
|
||||
}
|
||||
|
@@ -126,6 +126,8 @@ public class RecordsManagementTypeFormFilter extends RecordsManagementFormFilter
|
||||
|
||||
Map<QName, PropertyDefinition> customProps = rmAdminService.getCustomPropertyDefinitions(customisableType);
|
||||
|
||||
if (customProps != null)
|
||||
{
|
||||
if (logger.isDebugEnabled() == true)
|
||||
{
|
||||
logger.debug("Found " + customProps.size() + " custom properties for customisable type " + customisableType);
|
||||
@@ -136,6 +138,7 @@ public class RecordsManagementTypeFormFilter extends RecordsManagementFormFilter
|
||||
List<Field> fields = FieldUtils.makePropertyFields(properties, CUSTOM_RM_FIELD_GROUP, namespaceService);
|
||||
form.addFields(fields);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* @see org.alfresco.repo.forms.processor.Filter#afterPersist(java.lang.Object, org.alfresco.repo.forms.FormData, java.lang.Object)
|
||||
|
@@ -96,11 +96,14 @@ public class CustomPropertyDefinitionsGet extends BaseCustomPropertyWebScript
|
||||
{
|
||||
QName customisableType = mapToTypeQName(elementName);
|
||||
Map<QName, PropertyDefinition> currentCustomProps = rmAdminService.getCustomPropertyDefinitions(customisableType);
|
||||
if (currentCustomProps != null)
|
||||
{
|
||||
for (Entry<QName, PropertyDefinition> entry : currentCustomProps.entrySet())
|
||||
{
|
||||
propData.add(entry.getValue());
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new WebScriptException(Status.STATUS_BAD_REQUEST, "Either elementName or propId must be specified.");
|
||||
|
Reference in New Issue
Block a user