Package org.yamcs.security
Class DirectoryDb
java.lang.Object
org.yamcs.security.DirectoryDb
Stores users and groups in the Yamcs DB.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAccount
(Account account) void
void
deleteAccount
(Account account) void
void
deleteGroup
(Group group) void
findAccount
(long id) findAccountByName
(String name) findGroupByName
(String name) findServiceAccountForApplicationId
(String applicationId) void
updateAccount
(Account account) void
updateGroup
(Group group)
-
Field Details
-
ACCOUNT_CNAME_ID
- See Also:
-
ACCOUNT_CNAME_NAME
- See Also:
-
ACCOUNT_CNAME_DISPLAY_NAME
- See Also:
-
ACCOUNT_CNAME_ACTIVE
- See Also:
-
ACCOUNT_CNAME_CREATED_BY
- See Also:
-
ACCOUNT_CNAME_CREATION_TIME
- See Also:
-
ACCOUNT_CNAME_CONFIRMATION_TIME
- See Also:
-
ACCOUNT_CNAME_LAST_LOGIN_TIME
- See Also:
-
ACCOUNT_CNAME_USER_DETAIL
- See Also:
-
ACCOUNT_CNAME_SERVICE_DETAIL
- See Also:
-
GROUP_CNAME_ID
- See Also:
-
GROUP_CNAME_NAME
- See Also:
-
GROUP_CNAME_DESCRIPTION
- See Also:
-
GROUP_CNAME_MEMBERS
- See Also:
-
-
Constructor Details
-
DirectoryDb
- Throws:
InitException
-
-
Method Details
-
deleteAccounts
public void deleteAccounts() -
listAccounts
-
findAccount
-
findAccountByName
-
findServiceAccountForApplicationId
-
addAccount
-
updateAccount
-
deleteAccount
-
deleteGroups
public void deleteGroups() -
listGroups
-
findGroupByName
-
addGroup
-
updateGroup
-
deleteGroup
-