Interface NamespaceServiceApi


public interface NamespaceServiceApi
Namespace service interface.
  • Method Details

    • getBaseNamespaceIdFromConfiguration

      int getBaseNamespaceIdFromConfiguration() throws com.tridion.broker.StorageException
      Get 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

      String getInternalNamespacePrefixById(int namespaceId) throws com.tridion.broker.StorageException
      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