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

@@ -14,7 +14,7 @@
dynamic-insert="false"
select-before-update="false"
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="fixesFromSchema" column="fixes_from_schema" type="integer" />
<property name="fixesToSchema" column="fixes_to_schema" type="integer" />

View File

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

View File

@@ -47,7 +47,7 @@ import org.alfresco.util.ISO9075;
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 NamespacePrefixResolver namespacePrefixResolver;
@@ -152,7 +152,7 @@ public class AuthorityDAOImpl implements AuthorityDAO
NodeRef authorityContainerRef = getAuthorityContainer();
nodeService.createNode(
authorityContainerRef,
ContentModel.ASSOC_MEMBER,
ContentModel.ASSOC_CHILDREN,
QName.createQName("usr", name, namespacePrefixResolver),
ContentModel.TYPE_AUTHORITY_CONTAINER,
props);