Interface UserNamespaceDAO
-
- All Implemented Interfaces:
public interface UserNamespaceDAO
-
-
Method Summary
Modifier and Type Method Description abstract List<UserNamespace>getNamespaces(String user)Returns all the namespaces of a user. abstract List<UserNamespace>getUsers(String namespace)Returns all the users of a namespace. abstract UnitsaveNamespace(UserNamespace namespace)Persists namespace. abstract UnitdeleteNamespace(String user, String namespace)Delete namespace. abstract UnitsetCurrentNamespace(String user, String namespace)Set current namespace for selected user. abstract BooleanisNamespaceOwner(String user, String namespace)Is it the namespace owner ? abstract BooleanhasNamespace(String user, String namespace)Is this user has the namespace ? abstract BooleanisExistingNamespace(String namespace)Is this namespace exists ? -
-
Method Detail
-
getNamespaces
abstract List<UserNamespace> getNamespaces(String user)
Returns all the namespaces of a user.
-
getUsers
abstract List<UserNamespace> getUsers(String namespace)
Returns all the users of a namespace.
-
saveNamespace
abstract Unit saveNamespace(UserNamespace namespace)
Persists namespace.
-
deleteNamespace
abstract Unit deleteNamespace(String user, String namespace)
Delete namespace.
-
setCurrentNamespace
abstract Unit setCurrentNamespace(String user, String namespace)
Set current namespace for selected user.
-
isNamespaceOwner
abstract Boolean isNamespaceOwner(String user, String namespace)
Is it the namespace owner ?
-
hasNamespace
abstract Boolean hasNamespace(String user, String namespace)
Is this user has the namespace ?
-
isExistingNamespace
abstract Boolean isExistingNamespace(String namespace)
Is this namespace exists ?
-
-
-
-