Package com.tridion.storage.namespace
Interface NamespaceServiceApi
public interface NamespaceServiceApi
Namespace service interface.
-
Method Summary
Modifier and TypeMethodDescriptionintGet namespace id from database corresponding to namespace prefix in configuration file (tcm or ish).intgetInternalNamespaceIdByItemType(int itemType) Get namespace id by prefix provided in configuration file and incoming item type parameter.intgetInternalNamespaceIdByItemType(int baseNamespaceId, int itemType) Get namespace id from database corresponding to base namespace and type.getInternalNamespacePrefixById(int namespaceId) Get namespace prefix by id.
-
Method Details
-
getBaseNamespaceIdFromConfiguration
int getBaseNamespaceIdFromConfiguration() throws com.tridion.broker.StorageExceptionGet namespace id from database corresponding to namespace prefix in configuration file (tcm or ish).- Returns:
- namespace id
- Throws:
com.tridion.broker.StorageException
-
getInternalNamespaceIdByItemType
int getInternalNamespaceIdByItemType(int baseNamespaceId, int itemType) throws com.tridion.broker.StorageException Get namespace id from database corresponding to base namespace and type.- Parameters:
baseNamespaceId- base namespace id (eg 1 for tcm)itemType- integer value of type (eg 64 for PAGE)- Returns:
- namespace id
- Throws:
com.tridion.broker.StorageException
-
getInternalNamespacePrefixById
Get namespace prefix by id. The namespace prefix is a strict prefix of the given namespace id, like 'ish-16' or 'tcm'- Parameters:
namespaceId- the namespace id (base or internal)- Returns:
- namespace prefix
- Throws:
com.tridion.broker.StorageException
-
getInternalNamespaceIdByItemType
int getInternalNamespaceIdByItemType(int itemType) throws com.tridion.broker.StorageException Get namespace id by prefix provided in configuration file and incoming item type parameter.- Parameters:
itemType- item type- Returns:
- internal namespace id
- Throws:
com.tridion.broker.StorageException
-