Package org.alfresco.repo.domain.patch
Interface PatchDAO
-
- All Known Implementing Classes:
AbstractPatchDAOImpl,PatchDAOImpl,PatchDAOImpl.Oracle,PatchDAOImpl.PostgreSQL
public interface PatchDAOAdditional DAO services for patches- Since:
- 3.2
- Author:
- janv, Derek Hulley
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.util.List<org.alfresco.service.cmr.repository.NodeRef>getChildrenOfTheSharedSurfConfigFolder(java.lang.Long minNodeId, java.lang.Long maxNodeId)Finds folders of the shared surf-config (for all tenants): company_home/sites/surf-config/components company_home/sites/surf-config/pages company_home/sites/surf-config/pages/user company_home/sites/surf-config/pages/user{userId}longgetCountNodesWithAspects(java.util.Set<org.alfresco.service.namespace.QName> qnames)longgetCountNodesWithTypId(org.alfresco.service.namespace.QName typeQName)Gets the total number of nodes which match the given Type QName.longgetMaxAdmNodeID()Deprecated.in 4.1: useNodeDAO.getMaxNodeId()java.util.List<java.lang.Long>getNodesByAspectQNameId(java.lang.Long aspectQNameId, java.lang.Long minNodeId, java.lang.Long maxNodeId)Find all the nodes ids with the given aspectjava.util.List<java.lang.Long>getNodesByContentPropertyMimetypeId(java.lang.Long mimetypeId, java.lang.Long minNodeId, java.lang.Long maxNodeId)Find all the nodes ids with the given content property set with the given mimetypejava.util.List<java.lang.Long>getNodesByTypeQNameAndAspectQNameId(long typeQNameId, long aspectQNameId, long minNodeId, long maxNodeId)Find all the nodes ids with the given aspect and typejava.util.List<java.lang.Long>getNodesByTypeQNameId(java.lang.Long typeQNameId, java.lang.Long minNodeId, java.lang.Long maxNodeId)Find all the nodes ids with the given typejava.util.List<java.lang.Long>getNodesByTypeUriId(java.lang.Long uriId, java.lang.Long minNodeId, java.lang.Long maxNodeId)Find all the nodes ids with the given type urijava.util.List<org.alfresco.util.Pair<org.alfresco.service.cmr.repository.NodeRef,java.lang.String>>getNodesOfTypeWithNamePattern(org.alfresco.service.namespace.QName typeQName, java.lang.String namePattern)Query for a list of nodes that have a given type and share the same name pattern (SQL LIKE syntax)intupdateContentMimetypeIds(java.lang.Long oldMimetypeId, java.lang.Long newMimetypeId)Update all alf_content_data mimetype references.intupdatePersonSizeCurrentType()Update all alf_node_properties of 'sizeCurrent' name to have correct persisted type of Long.
-
-
-
Method Detail
-
getMaxAdmNodeID
@Deprecated long getMaxAdmNodeID()
Deprecated.in 4.1: useNodeDAO.getMaxNodeId()
-
updateContentMimetypeIds
int updateContentMimetypeIds(java.lang.Long oldMimetypeId, java.lang.Long newMimetypeId)Update all alf_content_data mimetype references.- Parameters:
oldMimetypeId- the ID to search fornewMimetypeId- the ID to change to- Returns:
- the number of rows affected
-
updatePersonSizeCurrentType
int updatePersonSizeCurrentType()
Update all alf_node_properties of 'sizeCurrent' name to have correct persisted type of Long.- Returns:
- the number of rows affected
-
getNodesOfTypeWithNamePattern
java.util.List<org.alfresco.util.Pair<org.alfresco.service.cmr.repository.NodeRef,java.lang.String>> getNodesOfTypeWithNamePattern(org.alfresco.service.namespace.QName typeQName, java.lang.String namePattern)Query for a list of nodes that have a given type and share the same name pattern (SQL LIKE syntax)- Parameters:
typeQName- the node typenamePattern- the SQL LIKE pattern- Returns:
- Returns the node ID and node name
-
getCountNodesWithAspects
long getCountNodesWithAspects(java.util.Set<org.alfresco.service.namespace.QName> qnames)
- Parameters:
qnames- the qnames to search for- Returns:
- Returns a count of the number of nodes that have either of the aspects
-
getNodesByTypeQNameId
java.util.List<java.lang.Long> getNodesByTypeQNameId(java.lang.Long typeQNameId, java.lang.Long minNodeId, java.lang.Long maxNodeId)Find all the nodes ids with the given type- Parameters:
typeQNameId- - the id of the type qnameminNodeId- - min node id in the result set - inclusivemaxNodeId- - max node id in the result set - exclusive- Returns:
- IDs of the nodes
-
getNodesByTypeUriId
java.util.List<java.lang.Long> getNodesByTypeUriId(java.lang.Long uriId, java.lang.Long minNodeId, java.lang.Long maxNodeId)Find all the nodes ids with the given type uri- Parameters:
uriId- - the id of the type qname uriminNodeId- - min node id in the result set - inclusivemaxNodeId- - max node id in the result set - exclusive- Returns:
- IDs of the nodes
-
getNodesByAspectQNameId
java.util.List<java.lang.Long> getNodesByAspectQNameId(java.lang.Long aspectQNameId, java.lang.Long minNodeId, java.lang.Long maxNodeId)Find all the nodes ids with the given aspect- Parameters:
aspectQNameId- - the id of the aspect qnameminNodeId- - min node id in the result set - inclusivemaxNodeId- - max node id in the result set - exclusive- Returns:
- IDs of the nodes
-
getNodesByContentPropertyMimetypeId
java.util.List<java.lang.Long> getNodesByContentPropertyMimetypeId(java.lang.Long mimetypeId, java.lang.Long minNodeId, java.lang.Long maxNodeId)Find all the nodes ids with the given content property set with the given mimetype- Parameters:
mimetypeId- - the id of the content data mimetypeminNodeId- - min node id in the result set - inclusivemaxNodeId- - max node id in the result set - exclusive- Returns:
- IDs of the nodes
-
getNodesByTypeQNameAndAspectQNameId
java.util.List<java.lang.Long> getNodesByTypeQNameAndAspectQNameId(long typeQNameId, long aspectQNameId, long minNodeId, long maxNodeId)Find all the nodes ids with the given aspect and type- Parameters:
typeQNameId- - the id of the type qnameaspectQNameId- - the id of the aspect qnameminNodeId- - min node id in the result set - inclusivemaxNodeId- - max node id in the result set - exclusive- Returns:
- List
-
getCountNodesWithTypId
long getCountNodesWithTypId(org.alfresco.service.namespace.QName typeQName)
Gets the total number of nodes which match the given Type QName.- Parameters:
typeQName- the qname to search for- Returns:
- count of nodes that match the typeQName
-
getChildrenOfTheSharedSurfConfigFolder
java.util.List<org.alfresco.service.cmr.repository.NodeRef> getChildrenOfTheSharedSurfConfigFolder(java.lang.Long minNodeId, java.lang.Long maxNodeId)Finds folders of the shared surf-config (for all tenants):- company_home/sites/surf-config/components
- company_home/sites/surf-config/pages
- company_home/sites/surf-config/pages/user
- company_home/sites/surf-config/pages/user{userId}
- Parameters:
minNodeId- - min node id in the result set - inclusivemaxNodeId- - max node id in the result set - exclusive- Returns:
- list of children nodeRefs
-
-