public interface AdminAPI
extends net.anotheria.anoplass.api.API
| Modifier and Type | Method and Description |
|---|---|
AdminAccountAO |
addAccountStatus(AccountId accountId,
int status)
Adds a status to provided account
|
DataspaceAO |
createDataspace(AccountId accountId,
int dataspaceId,
java.util.List<DataspaceAttributeAO> attributes)
Creates dataspace with for account with specific id and attributes.
|
void |
deleteDataspace(AccountId accountId,
int dataspaceId)
Removes dataspace completely by account and dataspace id.
|
AdminAccountAO |
getAccountById(AccountId accountId)
Returns account by accountId
|
PageResult<AdminAccountAO> |
getAccounts(AccountsGetRequest request)
Returns paginated list of created in system accounts.
|
PageResult<AdminAccountAO> |
getAccounts(int pageNumber,
int itemsOnPage,
java.lang.String searchTerm)
Returns paginated list of created in system accounts.
|
java.util.List<AdminAPIConfig.AccountStatusConfig> |
getAccountStatuses()
Returns all account statuses
|
java.util.List<AdminAPIConfig.AccountTypeConfig> |
getAccountTypes()
Returns all account types
|
java.util.List<DataspaceAO> |
getAllDataspaces(AccountId accountId)
Returns all account's dataspaces
|
java.util.List<AdminAPIConfig.DataspaceConfig> |
getDataspaces() |
java.lang.String |
getSignAsToken(AccountId accountId)
Creates a token that can be used to log in as provided user.
|
AdminAccountAO |
removeAccountStatus(AccountId accountId,
int status)
Removes a status from provided account
|
DataspaceAO |
removeDataspaceAttribute(AccountId accountId,
int dataspaceId,
java.lang.String attributeName)
Removes an attribute from existing dataspace.
|
DataspaceAO |
saveDataspaceAttribute(AccountId accountId,
int dataspaceId,
java.lang.String attributeName,
java.lang.String attributeValue,
AttributeType type)
Saves an attribute to existing dataspace.
|
void |
setNewAccountPassword(AccountId accountId,
java.lang.String newPassword)
Sets a new password for provided account
|
AdminAccountAO |
updateAccount(AccountUpdateRequest updateRequest)
Updates account information.
|
java.util.List<AdminAPIConfig.AccountStatusConfig> getAccountStatuses() throws net.anotheria.anoplass.api.APIException
AdminAPIConfig.AccountStatusConfignet.anotheria.anoplass.api.APIException - in case of errorjava.util.List<AdminAPIConfig.AccountTypeConfig> getAccountTypes() throws net.anotheria.anoplass.api.APIException
AdminAPIConfig.AccountTypeConfignet.anotheria.anoplass.api.APIException - in case of errorPageResult<AdminAccountAO> getAccounts(int pageNumber, int itemsOnPage, java.lang.String searchTerm) throws net.anotheria.anoplass.api.APIException
pageNumber - number of pageitemsOnPage - amount of items on pagesearchTerm - some term like email, name to filter accountsAdminAccountAOnet.anotheria.anoplass.api.APIException - in case of errorPageResult<AdminAccountAO> getAccounts(AccountsGetRequest request) throws net.anotheria.anoplass.api.APIException
request - criteria requestAdminAccountAOnet.anotheria.anoplass.api.APIException - in case of errorAdminAccountAO getAccountById(AccountId accountId) throws net.anotheria.anoplass.api.APIException
accountId - accountIdAdminAccountAOnet.anotheria.anoplass.api.APIException - in case of errorAdminAccountAO updateAccount(AccountUpdateRequest updateRequest) throws net.anotheria.anoplass.api.APIException
updateRequest - AccountUpdateRequestAdminAccountAOnet.anotheria.anoplass.api.APIException - in case of errorAdminAccountAO addAccountStatus(AccountId accountId, int status) throws net.anotheria.anoplass.api.APIException
accountId - accountIdstatus - status to addAdminAccountAOnet.anotheria.anoplass.api.APIException - in case of errorAdminAccountAO removeAccountStatus(AccountId accountId, int status) throws net.anotheria.anoplass.api.APIException
accountId - accountIdstatus - status to removeAdminAccountAOnet.anotheria.anoplass.api.APIException - in case of errorvoid setNewAccountPassword(AccountId accountId, java.lang.String newPassword) throws net.anotheria.anoplass.api.APIException
accountId - accountIdnewPassword - new password to setnet.anotheria.anoplass.api.APIException - in case of errorjava.lang.String getSignAsToken(AccountId accountId) throws net.anotheria.anoplass.api.APIException
accountId - account whose token will be created to perform log innet.anotheria.anoplass.api.APIException - in case of errorjava.util.List<AdminAPIConfig.DataspaceConfig> getDataspaces() throws net.anotheria.anoplass.api.APIException
net.anotheria.anoplass.api.APIExceptionjava.util.List<DataspaceAO> getAllDataspaces(AccountId accountId)
accountId - dataspaces ownerDataspaceAODataspaceAO createDataspace(AccountId accountId, int dataspaceId, java.util.List<DataspaceAttributeAO> attributes) throws net.anotheria.anoplass.api.APIException
accountId - owner of dataspacedataspaceId - id of dataspaceattributes - list of attributesDataspaceAOnet.anotheria.anoplass.api.APIExceptionDataspaceAO saveDataspaceAttribute(AccountId accountId, int dataspaceId, java.lang.String attributeName, java.lang.String attributeValue, AttributeType type) throws net.anotheria.anoplass.api.APIException
accountId - dataspace ownerdataspaceId - id of dataspaceattributeName - name of attributeattributeValue - value of attributetype - type of attributeDataspaceAOnet.anotheria.anoplass.api.APIException - in case of errorDataspaceAO removeDataspaceAttribute(AccountId accountId, int dataspaceId, java.lang.String attributeName) throws net.anotheria.anoplass.api.APIException
accountId - dataspace ownerdataspaceId - id of dataspaceattributeName - name of attributeDataspaceAOnet.anotheria.anoplass.api.APIException - in case of errorvoid deleteDataspace(AccountId accountId, int dataspaceId) throws net.anotheria.anoplass.api.APIException
accountId - dataspace ownerdataspaceId - dataspace type (id)net.anotheria.anoplass.api.APIExceptionCopyright © 2012-2023 anotheria.net. All Rights Reserved.