Class AccountWebServices

java.lang.Object
io.vertigo.social.webservices.account.AccountWebServices
All Implemented Interfaces:
io.vertigo.core.node.component.Component, io.vertigo.core.node.component.CoreComponent, io.vertigo.vega.webservice.WebServices

@PathPrefix("/x/accounts") public final class AccountWebServices extends Object implements io.vertigo.vega.webservice.WebServices
Webservices for account extension.
Author:
npiedeloup
  • Constructor Details

    • AccountWebServices

      public AccountWebServices()
  • Method Details

    • getAccount

      @GET("/api/{id}") @AnonymousAccessAllowed public io.vertigo.account.account.Account getAccount(@PathParam("id") String id)
      Gets an account by its id.
      Parameters:
      id - the account id.
      Returns:
      the account
    • getAccountPhoto

      @GET("/api/{id}/photo") @AnonymousAccessAllowed public io.vertigo.datastore.filestore.model.VFile getAccountPhoto(@PathParam("id") String id)
      Gets an account photo by its id.
      Parameters:
      id - account id.
      Returns:
      the photo of an account
    • getAccountGroup

      @GET("/api/groups/{id}") @AnonymousAccessAllowed public io.vertigo.account.account.AccountGroup getAccountGroup(@PathParam("id") String id)
      Gets a group by its id.
      Parameters:
      id - the group id.
      Returns:
      the group
    • getStatus

      @GET("/infos/status") @AnonymousAccessAllowed public String getStatus()
      Extension status (code 200 or 500)
      Returns:
      "OK" or error message
    • getStats

      @GET("/infos/stats") @AnonymousAccessAllowed public Map<String,Object> getStats()
      Extension stats.
      Returns:
      "OK" or error message
    • getConfig

      @GET("/infos/config") @AnonymousAccessAllowed public Map<String,Object> getConfig()
      Extension config.
      Returns:
      Config object
    • getHelp

      @GET("/infos/help") @AnonymousAccessAllowed public String getHelp()
      Extension help.
      Returns:
      Help object