Interface AliasRegistry

All Superinterfaces:
AutoCloseable
All Known Implementing Classes:
NoopAliasRegistry, PersistentAliasRegistry

public interface AliasRegistry extends AutoCloseable
Registry for public and user-owned aliases.
  • Method Details

    • getUserAliases

      Aliases getUserAliases(String userName)
      Returns aliases table for specified userName.
      Parameters:
      userName - name of the user whose aliases table should be obtained
      Returns:
      aliases table for specified userName
    • getPublicAliases

      Aliases getPublicAliases()
      Returns public aliases table.
    • createUserAliases

      void createUserAliases(String userName)
      Creates if required aliases table for specified userName.
      Parameters:
      userName - name of the user whose aliases table should be created
    • createPublicAliases

      void createPublicAliases()
      Creates if required public aliases table.
    • deleteUserAliases

      void deleteUserAliases(String userName)
      Deletes aliases table for specified userName.
      Parameters:
      userName - name of the user whose aliases table should be removed
    • deletePublicAliases

      void deletePublicAliases()
      Deletes public aliases table.
    • getAllAliases

      Iterator<Map.Entry<String,Aliases>> getAllAliases()
      Returns iterator for aliases table entries.