| Modifier | Constructor and Description |
|---|---|
protected |
AdminAPIImpl(boolean unitTest) |
| 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.
|
addValidationError, addValidationError, checkValidationAndThrowException, deInit, getApiConfig, getAttributeFromSession, getCallContext, getCurrentLocale, getCurrentUserId, getDefaultExpirePeriodForAttribute, getExpirePeriodForAttribute, getLoggedInUserId, getPrivateAttributeName, getSession, init, removeAttributeFromSession, setAttributeInSession, setAttributeInSession, setAttributeInSession, setAttributeInSessionpublic java.util.List<AdminAPIConfig.AccountStatusConfig> getAccountStatuses() throws net.anotheria.anoplass.api.APIException
AdminAPIgetAccountStatuses in interface AdminAPIAdminAPIConfig.AccountStatusConfignet.anotheria.anoplass.api.APIException - in case of errorpublic java.util.List<AdminAPIConfig.AccountTypeConfig> getAccountTypes() throws net.anotheria.anoplass.api.APIException
AdminAPIgetAccountTypes in interface AdminAPIAdminAPIConfig.AccountTypeConfignet.anotheria.anoplass.api.APIException - in case of errorpublic PageResult<AdminAccountAO> getAccounts(int pageNumber, int itemsOnPage, java.lang.String searchTerm) throws net.anotheria.anoplass.api.APIException
AdminAPIgetAccounts in interface AdminAPIpageNumber - number of pageitemsOnPage - amount of items on pagesearchTerm - some term like email, name to filter accountsAdminAccountAOnet.anotheria.anoplass.api.APIException - in case of errorpublic PageResult<AdminAccountAO> getAccounts(AccountsGetRequest request) throws net.anotheria.anoplass.api.APIException
AdminAPIgetAccounts in interface AdminAPIrequest - criteria requestAdminAccountAOnet.anotheria.anoplass.api.APIException - in case of errorpublic AdminAccountAO getAccountById(AccountId accountId) throws net.anotheria.anoplass.api.APIException
AdminAPIgetAccountById in interface AdminAPIaccountId - accountIdAdminAccountAOnet.anotheria.anoplass.api.APIException - in case of errorpublic AdminAccountAO updateAccount(AccountUpdateRequest updateRequest) throws net.anotheria.anoplass.api.APIException
AdminAPIupdateAccount in interface AdminAPIupdateRequest - AccountUpdateRequestAdminAccountAOnet.anotheria.anoplass.api.APIException - in case of errorpublic AdminAccountAO addAccountStatus(AccountId accountId, int status) throws net.anotheria.anoplass.api.APIException
AdminAPIaddAccountStatus in interface AdminAPIaccountId - accountIdstatus - status to addAdminAccountAOnet.anotheria.anoplass.api.APIException - in case of errorpublic AdminAccountAO removeAccountStatus(AccountId accountId, int status) throws net.anotheria.anoplass.api.APIException
AdminAPIremoveAccountStatus in interface AdminAPIaccountId - accountIdstatus - status to removeAdminAccountAOnet.anotheria.anoplass.api.APIException - in case of errorpublic void setNewAccountPassword(AccountId accountId, java.lang.String newPassword) throws net.anotheria.anoplass.api.APIException
AdminAPIsetNewAccountPassword in interface AdminAPIaccountId - accountIdnewPassword - new password to setnet.anotheria.anoplass.api.APIException - in case of errorpublic java.lang.String getSignAsToken(AccountId accountId) throws net.anotheria.anoplass.api.APIException
AdminAPIgetSignAsToken in interface AdminAPIaccountId - account whose token will be created to perform log innet.anotheria.anoplass.api.APIException - in case of errorpublic java.util.List<AdminAPIConfig.DataspaceConfig> getDataspaces() throws net.anotheria.anoplass.api.APIException
getDataspaces in interface AdminAPInet.anotheria.anoplass.api.APIExceptionpublic java.util.List<DataspaceAO> getAllDataspaces(AccountId accountId)
AdminAPIgetAllDataspaces in interface AdminAPIaccountId - dataspaces ownerDataspaceAOpublic DataspaceAO createDataspace(AccountId accountId, int dataspaceId, java.util.List<DataspaceAttributeAO> attributes) throws net.anotheria.anoplass.api.APIException
AdminAPIcreateDataspace in interface AdminAPIaccountId - owner of dataspacedataspaceId - id of dataspaceattributes - list of attributesDataspaceAOnet.anotheria.anoplass.api.APIExceptionpublic DataspaceAO saveDataspaceAttribute(AccountId accountId, int dataspaceId, java.lang.String attributeName, java.lang.String attributeValue, AttributeType type) throws net.anotheria.anoplass.api.APIException
AdminAPIsaveDataspaceAttribute in interface AdminAPIaccountId - dataspace ownerdataspaceId - id of dataspaceattributeName - name of attributeattributeValue - value of attributetype - type of attributeDataspaceAOnet.anotheria.anoplass.api.APIException - in case of errorpublic DataspaceAO removeDataspaceAttribute(AccountId accountId, int dataspaceId, java.lang.String attributeName) throws net.anotheria.anoplass.api.APIException
AdminAPIremoveDataspaceAttribute in interface AdminAPIaccountId - dataspace ownerdataspaceId - id of dataspaceattributeName - name of attributeDataspaceAOnet.anotheria.anoplass.api.APIException - in case of errorpublic void deleteDataspace(AccountId accountId, int dataspaceId) throws net.anotheria.anoplass.api.APIException
AdminAPIdeleteDataspace in interface AdminAPIaccountId - dataspace ownerdataspaceId - dataspace type (id)net.anotheria.anoplass.api.APIExceptionCopyright © 2012-2023 anotheria.net. All Rights Reserved.