Class StudioRest

  • All Implemented Interfaces:
    com.artisol.teneo.manager.api.rest.Studio, SettingsRest

    public class StudioRest
    extends AbstractRest
    implements com.artisol.teneo.manager.api.rest.Studio, SettingsRest
    • Field Summary

      • Fields inherited from interface com.artisol.teneo.manager.api.rest.Studio

        DELETE_ACCOUNT_GROUP_PERMISSIONS_PATH, DELETE_ACCOUNT_GROUP_PERMISSIONS_SUMMARY, DELETE_ACCOUNT_PATH, DELETE_ACCOUNT_SUMMARY, DELETE_ACCOUNT_USER_PERMISSIONS_PATH, DELETE_ACCOUNT_USER_PERMISSIONS_SUMMARY, GET_ACCOUNT_FINAL_USER_PERMISSIONS_FOR_TOKEN_PATH, GET_ACCOUNT_FINAL_USER_PERMISSIONS_FOR_TOKEN_PRODUCES, GET_ACCOUNT_FINAL_USER_PERMISSIONS_FOR_TOKEN_SUMMARY, GET_ACCOUNT_GROUP_PERMISSIONS_PATH, GET_ACCOUNT_GROUP_PERMISSIONS_PRODUCES, GET_ACCOUNT_GROUP_PERMISSIONS_SUMMARY, GET_ACCOUNT_GROUPS_PERMISSIONS_PATH, GET_ACCOUNT_GROUPS_PERMISSIONS_PRODUCES, GET_ACCOUNT_GROUPS_PERMISSIONS_SUMMARY, GET_ACCOUNT_LDSS_PATH, GET_ACCOUNT_LDSS_PRODUCES, GET_ACCOUNT_LDSS_SUMMARY, GET_ACCOUNT_LOG_ARCHIVES_PATH, GET_ACCOUNT_LOG_ARCHIVES_PRODUCES, GET_ACCOUNT_LOG_ARCHIVES_SUMMARY, GET_ACCOUNT_PATH, GET_ACCOUNT_PRODUCES, GET_ACCOUNT_SUMMARY, GET_ACCOUNT_USER_PERMISSIONS_PATH, GET_ACCOUNT_USER_PERMISSIONS_PRODUCES, GET_ACCOUNT_USER_PERMISSIONS_SUMMARY, GET_ACCOUNT_USERS_PATH, GET_ACCOUNT_USERS_PERMISSIONS_PATH, GET_ACCOUNT_USERS_PERMISSIONS_PRODUCES, GET_ACCOUNT_USERS_PERMISSIONS_SUMMARY, GET_ACCOUNT_USERS_PRODUCES, GET_ACCOUNT_USERS_SUMMARY, GET_ACCOUNTS_PATH, GET_ACCOUNTS_PRODUCES, GET_ACCOUNTS_SUMMARY, GET_SETTINGS_PATH, GET_SETTINGS_PRODUCES, GET_SETTINGS_SUMMARY, PATH, POST_ACCOUNT_CONSUMES, POST_ACCOUNT_GROUP_PERMISSIONS_CONSUMES, POST_ACCOUNT_GROUP_PERMISSIONS_PATH, POST_ACCOUNT_GROUP_PERMISSIONS_PRODUCES, POST_ACCOUNT_GROUP_PERMISSIONS_SUMMARY, POST_ACCOUNT_PATH, POST_ACCOUNT_PRODUCES, POST_ACCOUNT_SUMMARY, POST_ACCOUNT_USER_PERMISSIONS_CONSUMES, POST_ACCOUNT_USER_PERMISSIONS_PATH, POST_ACCOUNT_USER_PERMISSIONS_PRODUCES, POST_ACCOUNT_USER_PERMISSIONS_SUMMARY, PUT_ACCOUNT_CONSUMES, PUT_ACCOUNT_GROUP_PERMISSIONS_CONSUMES, PUT_ACCOUNT_GROUP_PERMISSIONS_PATH, PUT_ACCOUNT_GROUP_PERMISSIONS_PRODUCES, PUT_ACCOUNT_GROUP_PERMISSIONS_SUMMARY, PUT_ACCOUNT_PATH, PUT_ACCOUNT_PRODUCES, PUT_ACCOUNT_SUMMARY, PUT_ACCOUNT_USER_PERMISSIONS_CONSUMES, PUT_ACCOUNT_USER_PERMISSIONS_PATH, PUT_ACCOUNT_USER_PERMISSIONS_PRODUCES, PUT_ACCOUNT_USER_PERMISSIONS_SUMMARY
    • Constructor Summary

      Constructors 
      Constructor Description
      StudioRest​(javax.ws.rs.client.WebTarget pWebTarget, org.slf4j.Marker pMarker)
      Constructs a StudioRest object used to call the common interface
    • Constructor Detail

      • StudioRest

        public StudioRest​(javax.ws.rs.client.WebTarget pWebTarget,
                          org.slf4j.Marker pMarker)
        Constructs a StudioRest object used to call the common interface
        Parameters:
        pWebTarget - A WebTarget instance properly configured
        pMarker - A Marker to fine tuning logging
    • Method Detail

      • getSettings

        public List<com.artisol.teneo.manager.api.entity.Setting> getSettings()
                                                                       throws com.artisol.teneo.manager.api.exception.RestException
        Specified by:
        getSettings in interface SettingsRest
        Specified by:
        getSettings in interface com.artisol.teneo.manager.api.rest.Studio
        Throws:
        com.artisol.teneo.manager.api.exception.RestException
      • getAccounts

        public List<com.artisol.teneo.manager.api.entity.studio.StudioAccount> getAccounts()
                                                                                    throws com.artisol.teneo.manager.api.exception.RestException
        Specified by:
        getAccounts in interface com.artisol.teneo.manager.api.rest.Studio
        Throws:
        com.artisol.teneo.manager.api.exception.RestException
      • getAccount

        public com.artisol.teneo.manager.api.entity.studio.StudioAccount getAccount​(UUID pAccountId)
                                                                             throws com.artisol.teneo.manager.api.exception.RestException
        Specified by:
        getAccount in interface com.artisol.teneo.manager.api.rest.Studio
        Throws:
        com.artisol.teneo.manager.api.exception.RestException
      • createAccount

        public com.artisol.teneo.manager.api.entity.studio.StudioAccount createAccount​(com.artisol.teneo.manager.api.entity.studio.StudioAccount pAccount)
                                                                                throws com.artisol.teneo.manager.api.exception.RestException
        Specified by:
        createAccount in interface com.artisol.teneo.manager.api.rest.Studio
        Throws:
        com.artisol.teneo.manager.api.exception.RestException
      • updateAccount

        public com.artisol.teneo.manager.api.entity.studio.StudioAccount updateAccount​(UUID pAccountId,
                                                                                       com.artisol.teneo.manager.api.entity.studio.StudioAccount pAccount)
                                                                                throws com.artisol.teneo.manager.api.exception.RestException
        Specified by:
        updateAccount in interface com.artisol.teneo.manager.api.rest.Studio
        Throws:
        com.artisol.teneo.manager.api.exception.RestException
      • deleteAccount

        public void deleteAccount​(UUID pAccountId)
                           throws com.artisol.teneo.manager.api.exception.RestException
        Specified by:
        deleteAccount in interface com.artisol.teneo.manager.api.rest.Studio
        Throws:
        com.artisol.teneo.manager.api.exception.RestException
      • getAccountLdss

        public List<com.artisol.teneo.manager.api.entity.common.Lds> getAccountLdss​(UUID pAccountId)
                                                                             throws com.artisol.teneo.manager.api.exception.RestException
        Specified by:
        getAccountLdss in interface com.artisol.teneo.manager.api.rest.Studio
        Throws:
        com.artisol.teneo.manager.api.exception.RestException
      • getAccountLogArchives

        public List<com.artisol.teneo.manager.api.entity.common.LogArchive> getAccountLogArchives​(UUID pAccountId)
                                                                                           throws com.artisol.teneo.manager.api.exception.RestException
        Specified by:
        getAccountLogArchives in interface com.artisol.teneo.manager.api.rest.Studio
        Throws:
        com.artisol.teneo.manager.api.exception.RestException
      • getAccountUsersPermissions

        public List<com.artisol.teneo.manager.api.entity.studio.StudioAccountUserPermissions> getAccountUsersPermissions​(UUID pAccountId)
                                                                                                                  throws com.artisol.teneo.manager.api.exception.RestException
        Specified by:
        getAccountUsersPermissions in interface com.artisol.teneo.manager.api.rest.Studio
        Throws:
        com.artisol.teneo.manager.api.exception.RestException
      • getAccountUsers

        public List<com.artisol.teneo.manager.api.entity.common.User> getAccountUsers​(UUID pAccountId)
                                                                               throws com.artisol.teneo.manager.api.exception.RestException
        Specified by:
        getAccountUsers in interface com.artisol.teneo.manager.api.rest.Studio
        Throws:
        com.artisol.teneo.manager.api.exception.RestException
      • getAccountUserPermissions

        public com.artisol.teneo.manager.api.entity.studio.StudioAccountUserPermissions getAccountUserPermissions​(UUID pAccountId,
                                                                                                                  UUID pUserId)
                                                                                                           throws com.artisol.teneo.manager.api.exception.RestException
        Specified by:
        getAccountUserPermissions in interface com.artisol.teneo.manager.api.rest.Studio
        Throws:
        com.artisol.teneo.manager.api.exception.RestException
      • getFinalAccountUserPermissionsForToken

        public List<com.artisol.teneo.manager.api.entity.studio.StudioAccountPermission> getFinalAccountUserPermissionsForToken​(UUID pAccountId)
                                                                                                                         throws com.artisol.teneo.manager.api.exception.RestException
        Specified by:
        getFinalAccountUserPermissionsForToken in interface com.artisol.teneo.manager.api.rest.Studio
        Throws:
        com.artisol.teneo.manager.api.exception.RestException
      • createAccountUserPermissions

        public com.artisol.teneo.manager.api.entity.studio.StudioAccountUserPermissions createAccountUserPermissions​(UUID pAccountId,
                                                                                                                     UUID pUserId,
                                                                                                                     com.artisol.teneo.manager.api.entity.studio.StudioAccountUserPermissions pStudioAccountUserPermissions)
                                                                                                              throws com.artisol.teneo.manager.api.exception.RestException
        Specified by:
        createAccountUserPermissions in interface com.artisol.teneo.manager.api.rest.Studio
        Throws:
        com.artisol.teneo.manager.api.exception.RestException
      • updateAccountUserPermissions

        public com.artisol.teneo.manager.api.entity.studio.StudioAccountUserPermissions updateAccountUserPermissions​(UUID pAccountId,
                                                                                                                     UUID pUserId,
                                                                                                                     com.artisol.teneo.manager.api.entity.studio.StudioAccountUserPermissions pStudioAccountUserPermissions)
                                                                                                              throws com.artisol.teneo.manager.api.exception.RestException
        Specified by:
        updateAccountUserPermissions in interface com.artisol.teneo.manager.api.rest.Studio
        Throws:
        com.artisol.teneo.manager.api.exception.RestException
      • deleteAccountUserPermissions

        public void deleteAccountUserPermissions​(UUID pAccountId,
                                                 UUID pUserId)
                                          throws com.artisol.teneo.manager.api.exception.RestException
        Specified by:
        deleteAccountUserPermissions in interface com.artisol.teneo.manager.api.rest.Studio
        Throws:
        com.artisol.teneo.manager.api.exception.RestException
      • getAccountGroupsPermissions

        public List<com.artisol.teneo.manager.api.entity.studio.StudioAccountGroupPermissions> getAccountGroupsPermissions​(UUID pAccountId)
                                                                                                                    throws com.artisol.teneo.manager.api.exception.RestException
        Specified by:
        getAccountGroupsPermissions in interface com.artisol.teneo.manager.api.rest.Studio
        Throws:
        com.artisol.teneo.manager.api.exception.RestException
      • getAccountGroupPermissions

        public com.artisol.teneo.manager.api.entity.studio.StudioAccountGroupPermissions getAccountGroupPermissions​(UUID pAccountId,
                                                                                                                    UUID pGroupId)
                                                                                                             throws com.artisol.teneo.manager.api.exception.RestException
        Specified by:
        getAccountGroupPermissions in interface com.artisol.teneo.manager.api.rest.Studio
        Throws:
        com.artisol.teneo.manager.api.exception.RestException
      • createAccountGroupPermissions

        public com.artisol.teneo.manager.api.entity.studio.StudioAccountGroupPermissions createAccountGroupPermissions​(UUID pAccountId,
                                                                                                                       UUID pGroupId,
                                                                                                                       com.artisol.teneo.manager.api.entity.studio.StudioAccountGroupPermissions pStudioAccountGroupPermissions)
                                                                                                                throws com.artisol.teneo.manager.api.exception.RestException
        Specified by:
        createAccountGroupPermissions in interface com.artisol.teneo.manager.api.rest.Studio
        Throws:
        com.artisol.teneo.manager.api.exception.RestException
      • updateAccountGroupPermissions

        public com.artisol.teneo.manager.api.entity.studio.StudioAccountGroupPermissions updateAccountGroupPermissions​(UUID pAccountId,
                                                                                                                       UUID pGroupId,
                                                                                                                       com.artisol.teneo.manager.api.entity.studio.StudioAccountGroupPermissions pStudioAccountGroupPermissions)
                                                                                                                throws com.artisol.teneo.manager.api.exception.RestException
        Specified by:
        updateAccountGroupPermissions in interface com.artisol.teneo.manager.api.rest.Studio
        Throws:
        com.artisol.teneo.manager.api.exception.RestException
      • deleteAccountGroupPermissions

        public void deleteAccountGroupPermissions​(UUID pAccountId,
                                                  UUID pGroupId)
                                           throws com.artisol.teneo.manager.api.exception.RestException
        Specified by:
        deleteAccountGroupPermissions in interface com.artisol.teneo.manager.api.rest.Studio
        Throws:
        com.artisol.teneo.manager.api.exception.RestException