mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Fixed permission bug appearing as Hibernate null issue.
Added an index on the "NodeRef" portion of the node table. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2735 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -21,6 +21,8 @@
|
|||||||
<id name="id" column="id" type="long" >
|
<id name="id" column="id" type="long" >
|
||||||
<generator class="native" />
|
<generator class="native" />
|
||||||
</id>
|
</id>
|
||||||
|
<!-- the natural ID of the node -->
|
||||||
|
<natural-id mutable="true">
|
||||||
<!-- forward assoc to store -->
|
<!-- forward assoc to store -->
|
||||||
<many-to-one
|
<many-to-one
|
||||||
name="store"
|
name="store"
|
||||||
@@ -34,6 +36,7 @@
|
|||||||
</many-to-one>
|
</many-to-one>
|
||||||
<!-- the store-unique identifier -->
|
<!-- the store-unique identifier -->
|
||||||
<property name="uuid" column="uuid" type="string" length="36" />
|
<property name="uuid" column="uuid" type="string" length="36" />
|
||||||
|
</natural-id>
|
||||||
<property name="typeQName" column="type_qname" type="QName" length="255" not-null="true" />
|
<property name="typeQName" column="type_qname" type="QName" length="255" not-null="true" />
|
||||||
<!-- inverse assoc to access control list -->
|
<!-- inverse assoc to access control list -->
|
||||||
<one-to-one
|
<one-to-one
|
||||||
@@ -43,15 +46,6 @@
|
|||||||
lazy="no-proxy"
|
lazy="no-proxy"
|
||||||
fetch="select"
|
fetch="select"
|
||||||
cascade="delete" />
|
cascade="delete" />
|
||||||
<!-- inverse assoc to node status -->
|
|
||||||
<!--
|
|
||||||
<one-to-one
|
|
||||||
name="status"
|
|
||||||
class="org.alfresco.repo.domain.hibernate.NodeStatusImpl"
|
|
||||||
property-ref="node"
|
|
||||||
lazy="no-proxy"
|
|
||||||
fetch="select" />
|
|
||||||
-->
|
|
||||||
<!-- forward assoc to properties -->
|
<!-- forward assoc to properties -->
|
||||||
<map
|
<map
|
||||||
name="properties"
|
name="properties"
|
||||||
|
@@ -141,7 +141,12 @@ public class PermissionsDaoComponentImpl extends HibernateDaoSupport implements
|
|||||||
DbAccessControlList acl = null;
|
DbAccessControlList acl = null;
|
||||||
if (results.size() == 0)
|
if (results.size() == 0)
|
||||||
{
|
{
|
||||||
// we'll return null
|
// create it
|
||||||
|
if (create)
|
||||||
|
{
|
||||||
|
acl = createAccessControlList(nodeRef);
|
||||||
|
}
|
||||||
|
// else null will be returned
|
||||||
}
|
}
|
||||||
else if (results.size() > 0)
|
else if (results.size() > 0)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user