- add TenantService hooks to (Db)NodeService

- add deleteStore to NodeService (not yet exposed via public API)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6391 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jan Vonka
2007-08-01 16:30:28 +00:00
parent 0c6e62605d
commit f75175cbd3
6 changed files with 239 additions and 21 deletions

View File

@@ -449,5 +449,47 @@
assoc.id
]]>
</query>
<query name="node.GetNodeStatusesForStore">
select
status
from
org.alfresco.repo.domain.hibernate.NodeStatusImpl as status
where
status.key.protocol = :protocol and
status.key.identifier = :identifier
</query>
<query name="node.GetChildAssocsForStore">
select
assoc
from
org.alfresco.repo.domain.hibernate.ChildAssocImpl as assoc
where
assoc.parent.id in (select
node.id
from
org.alfresco.repo.domain.hibernate.NodeImpl node
where
node.store.key.protocol = :protocol and
node.store.key.identifier = :identifier)
</query>
<query name="node.GetNodesExceptRootForStore">
select
node
from
org.alfresco.repo.domain.hibernate.NodeImpl as node
where
node.store.key.protocol = :nodeProtocol and
node.store.key.identifier = :nodeIdentifier and
node.id != (select
rootNode.id
from
org.alfresco.repo.domain.hibernate.StoreImpl store
where
store.key.protocol = :storeProtocol and
store.key.identifier = :storeIdentifier)
</query>
</hibernate-mapping>