public class PatchDAOImpl extends AbstractPatchDAOImpl
Modifier and Type | Class and Description |
---|---|
static class |
PatchDAOImpl.Oracle
Oracle-specific DAO
|
static class |
PatchDAOImpl.PostgreSQL
PostgreSQL-specific DAO
|
Modifier and Type | Field and Description |
---|---|
protected org.mybatis.spring.SqlSessionTemplate |
template |
Constructor and Description |
---|
PatchDAOImpl() |
Modifier and Type | Method and Description |
---|---|
void |
executeBatch() |
List<org.alfresco.service.cmr.repository.NodeRef> |
getChildrenOfTheSharedSurfConfigFolder(Long minNodeId,
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}
|
long |
getCountNodesWithAspects(Set<org.alfresco.service.namespace.QName> qnames) |
long |
getCountNodesWithTypId(org.alfresco.service.namespace.QName typeQName)
Gets the total number of nodes which match the given Type QName.
|
long |
getMaxAdmNodeID() |
List<Long> |
getNodesByAspectQNameId(Long aspectQNameId,
Long minNodeId,
Long maxNodeId)
Find all the nodes ids with the given aspect
|
List<Long> |
getNodesByContentPropertyMimetypeId(Long mimetypeId,
Long minNodeId,
Long maxNodeId)
Find all the nodes ids with the given content property set with the given mimetype
|
List<Long> |
getNodesByTypeQNameAndAspectQNameId(long typeQNameId,
long aspectQNameId,
long minNodeId,
long maxNodeId)
Find all the nodes ids with the given aspect and type
|
List<Long> |
getNodesByTypeQNameId(Long typeQNameId,
Long minNodeId,
Long maxNodeId)
Find all the nodes ids with the given type
|
List<Long> |
getNodesByTypeUriId(Long nsId,
Long minNodeId,
Long maxNodeId)
Find all the nodes ids with the given type uri
|
List<org.alfresco.util.Pair<org.alfresco.service.cmr.repository.NodeRef,String>> |
getNodesOfTypeWithNamePattern(org.alfresco.service.namespace.QName typeQName,
String namePattern)
Query for a list of nodes that have a given type and share the same name pattern (SQL LIKE syntax)
|
void |
setContentDataDAO(ContentDataDAO contentDataDAO) |
void |
setLocaleDAO(LocaleDAO localeDAO) |
void |
setQnameDAO(QNameDAO qnameDAO) |
void |
setSqlSessionTemplate(org.mybatis.spring.SqlSessionTemplate sqlSessionTemplate) |
void |
startBatch() |
int |
updateContentMimetypeIds(Long oldMimetypeId,
Long newMimetypeId)
Update all alf_content_data mimetype references.
|
int |
updatePersonSizeCurrentType()
Update all alf_node_properties of 'sizeCurrent' name to have correct persisted type of Long.
|
public final void setSqlSessionTemplate(org.mybatis.spring.SqlSessionTemplate sqlSessionTemplate)
public void setQnameDAO(QNameDAO qnameDAO)
public void setLocaleDAO(LocaleDAO localeDAO)
public void setContentDataDAO(ContentDataDAO contentDataDAO)
public void startBatch()
public void executeBatch()
public long getMaxAdmNodeID()
public int updateContentMimetypeIds(Long oldMimetypeId, Long newMimetypeId)
PatchDAO
oldMimetypeId
- the ID to search fornewMimetypeId
- the ID to change topublic int updatePersonSizeCurrentType()
PatchDAO
public List<org.alfresco.util.Pair<org.alfresco.service.cmr.repository.NodeRef,String>> getNodesOfTypeWithNamePattern(org.alfresco.service.namespace.QName typeQName, String namePattern)
PatchDAO
typeQName
- the node typenamePattern
- the SQL LIKE patternpublic long getCountNodesWithAspects(Set<org.alfresco.service.namespace.QName> qnames)
qnames
- the qnames to search forpublic List<Long> getNodesByTypeQNameId(Long typeQNameId, Long minNodeId, Long maxNodeId)
PatchDAO
typeQNameId
- - the id of the type qnameminNodeId
- - min node id in the result set - inclusivemaxNodeId
- - max node id in the result set - exclusivepublic List<Long> getNodesByTypeUriId(Long nsId, Long minNodeId, Long maxNodeId)
PatchDAO
nsId
- - the id of the type qname uriminNodeId
- - min node id in the result set - inclusivemaxNodeId
- - max node id in the result set - exclusivepublic List<Long> getNodesByAspectQNameId(Long aspectQNameId, Long minNodeId, Long maxNodeId)
PatchDAO
aspectQNameId
- - the id of the aspect qnameminNodeId
- - min node id in the result set - inclusivemaxNodeId
- - max node id in the result set - exclusivepublic List<Long> getNodesByContentPropertyMimetypeId(Long mimetypeId, Long minNodeId, Long maxNodeId)
PatchDAO
mimetypeId
- - the id of the content data mimetypeminNodeId
- - min node id in the result set - inclusivemaxNodeId
- - max node id in the result set - exclusivepublic List<Long> getNodesByTypeQNameAndAspectQNameId(long typeQNameId, long aspectQNameId, long minNodeId, long maxNodeId)
PatchDAO
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 - exclusivepublic long getCountNodesWithTypId(org.alfresco.service.namespace.QName typeQName)
PatchDAO
typeQName
- the qname to search forpublic List<org.alfresco.service.cmr.repository.NodeRef> getChildrenOfTheSharedSurfConfigFolder(Long minNodeId, Long maxNodeId)
PatchDAO
minNodeId
- - min node id in the result set - inclusivemaxNodeId
- - max node id in the result set - exclusiveCopyright © 2005–2017 Alfresco Software. All rights reserved.