Fix type assoc type for top level groups

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@3008 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Andrew Hind
2006-06-01 13:22:11 +00:00
parent cd2afd1504
commit a28b0141f3
6 changed files with 21 additions and 13 deletions

View File

@@ -67,3 +67,8 @@ patch.descriptorUpdate.result=Repository descriptor updated
patch.scriptsFolder.description=Ensures the existence of the 'Scripts' folder. patch.scriptsFolder.description=Ensures the existence of the 'Scripts' folder.
patch.scriptsFolder.result.exists=The scripts folder already exists: {0} patch.scriptsFolder.result.exists=The scripts folder already exists: {0}
patch.scriptsFolder.result.created=The scripts folder was successfully created: {0} patch.scriptsFolder.result.created=The scripts folder was successfully created: {0}
patch.topLevelGroupParentChildAssociationTypePatch.description=Ensure top level groups have the correct child association type.
patch.topLevelGroupParentChildAssociationTypePatch.=Fixed top level groups child association type.

View File

@@ -360,4 +360,13 @@
</property> </property>
</bean> </bean>
<bean id="patch.topLevelGroupParentChildAssociationTypePatch" class="org.alfresco.repo.admin.patch.impl.TopLevelGroupParentChildAssociationTypePatch" parent="basePatch">
<property name="id"><value>patch.topLevelGroupParentChildAssociationTypePatch</value></property>
<property name="description"><value>patch.topLevelGroupParentChildAssociationTypePatch.description</value></property>
<property name="fixesFromSchema"><value>0</value></property>
<property name="fixesToSchema"><value>13</value></property>
<property name="targetSchema"><value>14</value></property>
</bean>
</beans> </beans>

View File

@@ -7,7 +7,7 @@
version.major=1 version.major=1
version.minor=3 version.minor=3
version.revision=0 version.revision=0
version.label=RC1 version.label=RC2 (dev)
# Edition label # Edition label
@@ -15,4 +15,4 @@ version.edition=Community Network
# Schema number # Schema number
version.schema=13 version.schema=14

View File

@@ -14,7 +14,7 @@
dynamic-insert="false" dynamic-insert="false"
select-before-update="false" select-before-update="false"
optimistic-lock="version" > optimistic-lock="version" >
<id column="id" length="32" name="id" type="string" /> <id column="id" length="64" name="id" type="string" />
<property name="description" column="description" type="string" length="1024" /> <property name="description" column="description" type="string" length="1024" />
<property name="fixesFromSchema" column="fixes_from_schema" type="integer" /> <property name="fixesFromSchema" column="fixes_from_schema" type="integer" />
<property name="fixesToSchema" column="fixes_to_schema" type="integer" /> <property name="fixesToSchema" column="fixes_to_schema" type="integer" />

View File

@@ -286,14 +286,8 @@ public class IntegrityChecker
childAssocRef.getChildRef()); childAssocRef.getChildRef());
save(event); save(event);
// check target role onCreateChildAssociation(childAssocRef);
event = new AssocTargetRoleIntegrityEvent(
nodeService,
dictionaryService,
childAssocRef.getParentRef(),
childAssocRef.getTypeQName(),
childAssocRef.getQName());
save(event);
// check for associations defined on the new node (child) // check for associations defined on the new node (child)
NodeRef childRef = childAssocRef.getChildRef(); NodeRef childRef = childAssocRef.getChildRef();

View File

@@ -47,7 +47,7 @@ import org.alfresco.util.ISO9075;
public class AuthorityDAOImpl implements AuthorityDAO public class AuthorityDAOImpl implements AuthorityDAO
{ {
private static final StoreRef STOREREF_USERS = new StoreRef("user", "alfrescoUserStore"); public static final StoreRef STOREREF_USERS = new StoreRef("user", "alfrescoUserStore");
private NodeService nodeService; private NodeService nodeService;
private NamespacePrefixResolver namespacePrefixResolver; private NamespacePrefixResolver namespacePrefixResolver;
@@ -152,7 +152,7 @@ public class AuthorityDAOImpl implements AuthorityDAO
NodeRef authorityContainerRef = getAuthorityContainer(); NodeRef authorityContainerRef = getAuthorityContainer();
nodeService.createNode( nodeService.createNode(
authorityContainerRef, authorityContainerRef,
ContentModel.ASSOC_MEMBER, ContentModel.ASSOC_CHILDREN,
QName.createQName("usr", name, namespacePrefixResolver), QName.createQName("usr", name, namespacePrefixResolver),
ContentModel.TYPE_AUTHORITY_CONTAINER, ContentModel.TYPE_AUTHORITY_CONTAINER,
props); props);