public interface WattDepotAdminInterface
Modifier and Type | Method and Description |
---|---|
void |
deleteOrganization(String id)
Deletes the given Organization.
|
void |
deleteUser(String id,
String orgId)
Deletes the given User.
|
Organization |
getOrganization(String id) |
OrganizationList |
getOrganizations() |
UserInfo |
getUser(String id,
String orgId) |
UserPassword |
getUserPassword(String id,
String orgId) |
UserInfoList |
getUsers(String orgId) |
boolean |
isDefinedOrganization(String id)
Checks to see if the given id is a defined Organization's id.
|
boolean |
isDefinedUserInfo(String id,
String orgId)
Checks to see if the given id and orgId is a defined UserInfo id.
|
void |
putOrganization(Organization org)
Stores the given Organization in the WattDepot Server.
|
void |
putUser(UserInfo user)
Stores the given user in the WattDepot Server.
|
void |
updateOrganization(Organization org)
Updates the Organization in the WattDepot Server.
|
void |
updateUser(UserInfo user)
Updates the UserInfo in the WattDepot Server.
|
void |
updateUserPassword(UserPassword password)
Updates the Userpassword in the WattDepot Server.
|
void deleteUser(String id, String orgId) throws IdNotFoundException
id
- the unique id of the User.orgId
- the id of the user's organization.IdNotFoundException
- if the User's id is not found.void deleteOrganization(String id) throws IdNotFoundException
id
- the unique id of the Organization.IdNotFoundException
- if the Organization's id is not found.Organization getOrganization(String id) throws IdNotFoundException
id
- The unique id of the Organization.IdNotFoundException
- if the id does not exist.OrganizationList getOrganizations()
UserInfo getUser(String id, String orgId) throws IdNotFoundException
id
- The unique id of the UserInfo.orgId
- the id of the user's organization.IdNotFoundException
- if the id does not exist.UserInfoList getUsers(String orgId)
orgId
- the id of the users' organization.UserPassword getUserPassword(String id, String orgId) throws IdNotFoundException
id
- The unique id of the UserPassword.orgId
- the organization id.IdNotFoundException
- if the id does not exist.void putUser(UserInfo user)
user
- The UserInfo to store.boolean isDefinedOrganization(String id)
id
- the id to check.boolean isDefinedUserInfo(String id, String orgId)
id
- the id to check.orgId
- the organization id.void putOrganization(Organization org)
org
- the Organization to store.void updateOrganization(Organization org)
org
- the Organization to update.void updateUser(UserInfo user)
user
- the UserInfo to update.void updateUserPassword(UserPassword password) throws IdNotFoundException
password
- the UserPassword to update.IdNotFoundException
- if the user id or organization ids are not
defined.Copyright © 2015 Collaborative Software Development Laboratory. All rights reserved.