public interface Metadata
Modifier and Type | Method and Description |
---|---|
java.util.Optional<NamespaceMetadata> |
getNamespace(java.lang.String namespaceName)
Returns a
NamespaceMetadata object for the specified namespace |
java.util.Map<java.lang.String,NamespaceMetadata> |
getNamespaces()
Returns a map of the namespace names and
NamespaceMetadata objects. |
java.util.Optional<UserMetadata> |
getUser(java.lang.String username)
Returns a
UserMetadata object for the specified user. |
java.util.Map<java.lang.String,UserMetadata> |
getUsers()
Returns a map of the usernames and
UserMetadata objects. |
java.util.Map<java.lang.String,NamespaceMetadata> getNamespaces()
NamespaceMetadata
objects.NamespaceMetadata
objectsSqlException
- if an unexpected error happensjava.util.Optional<NamespaceMetadata> getNamespace(java.lang.String namespaceName)
NamespaceMetadata
object for the specified namespacenamespaceName
- the name of the target namespaceNamespaceMetadata
objectSqlException
- if an unexpected error happensjava.util.Map<java.lang.String,UserMetadata> getUsers()
UserMetadata
objects.UserMetadata
objectsSqlException
- if an unexpected error happensjava.util.Optional<UserMetadata> getUser(java.lang.String username)
UserMetadata
object for the specified user.username
- the name of the target userUserMetadata
objectSqlException
- if an unexpected error happens