public interface QNameDAO
Modifier and Type | Method and Description |
---|---|
Map<org.alfresco.service.namespace.QName,? extends Object> |
convertIdMapToQNameMap(Map<Long,? extends Object> idMap)
Convenience method to convert map keys from QName IDs to QNames
|
Set<org.alfresco.service.namespace.QName> |
convertIdsToQNames(Set<Long> ids)
Bulk-convert QName IDs into QNames
|
Set<Long> |
convertQNamesToIds(Set<org.alfresco.service.namespace.QName> qnames,
boolean create)
Bulk-convert QNames into QName IDs.
|
void |
deleteQName(org.alfresco.service.namespace.QName qname)
Delete a QName.
|
org.alfresco.util.Pair<Long,String> |
getNamespace(Long id) |
org.alfresco.util.Pair<Long,String> |
getNamespace(String namespaceUri) |
org.alfresco.util.Pair<Long,String> |
getOrCreateNamespace(String namespaceUri)
Get an existing instance matching the URI or create one if necessary.
|
org.alfresco.util.Pair<Long,org.alfresco.service.namespace.QName> |
getOrCreateQName(org.alfresco.service.namespace.QName qname)
Get an existing instance matching the QName or create one if necessary.
|
org.alfresco.util.Pair<Long,org.alfresco.service.namespace.QName> |
getQName(Long id) |
org.alfresco.util.Pair<Long,org.alfresco.service.namespace.QName> |
getQName(org.alfresco.service.namespace.QName qname) |
void |
updateNamespace(String oldNamespaceUri,
String newNamespaceUri)
Modifies an existing namespace URI.
|
org.alfresco.util.Pair<Long,org.alfresco.service.namespace.QName> |
updateQName(org.alfresco.service.namespace.QName qnameOld,
org.alfresco.service.namespace.QName qnameNew)
Modify an existing QName.
|
org.alfresco.util.Pair<Long,String> getNamespace(Long id)
id
- the unique ID of the entityorg.alfresco.error.AlfrescoRuntimeException
- if the ID provided is invalidorg.alfresco.util.Pair<Long,String> getNamespace(String namespaceUri)
namespaceUri
- the namespace URI to query fororg.alfresco.util.Pair<Long,String> getOrCreateNamespace(String namespaceUri)
namespaceUri
- the namespace URI to createvoid updateNamespace(String oldNamespaceUri, String newNamespaceUri)
oldNamespaceUri
- the old namespace URInewNamespaceUri
- the new namespace URIorg.alfresco.error.AlfrescoRuntimeException
- if the new namespace is in useorg.alfresco.util.Pair<Long,org.alfresco.service.namespace.QName> getQName(Long id)
id
- the unique ID of the entityorg.alfresco.error.AlfrescoRuntimeException
- if the ID provided is invalidorg.alfresco.util.Pair<Long,org.alfresco.service.namespace.QName> getQName(org.alfresco.service.namespace.QName qname)
qname
- the QName to query fororg.alfresco.util.Pair<Long,org.alfresco.service.namespace.QName> getOrCreateQName(org.alfresco.service.namespace.QName qname)
qname
- the QName to query fororg.alfresco.util.Pair<Long,org.alfresco.service.namespace.QName> updateQName(org.alfresco.service.namespace.QName qnameOld, org.alfresco.service.namespace.QName qnameNew)
qnameOld
- the old QName, which must existqnameNew
- the new QName, which must not existvoid deleteQName(org.alfresco.service.namespace.QName qname)
Set<org.alfresco.service.namespace.QName> convertIdsToQNames(Set<Long> ids)
ids
- the IDsMap<org.alfresco.service.namespace.QName,? extends Object> convertIdMapToQNameMap(Map<Long,? extends Object> idMap)
idMap
- a map of objects keyed by QName IDSet<Long> convertQNamesToIds(Set<org.alfresco.service.namespace.QName> qnames, boolean create)
qnames
- the QNames to convertcreate
- true to create any missing QName entitiesCopyright © 2005–2017 Alfresco Software. All rights reserved.