Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Sv translation
languageen


Info

Endpoints configuration provides you with option, to create your own endpoint, that can read, write, update, or delete your data. It does not have to work only with you DataSets, it can work with users, or media as well. 

Users with the domain administrator role can create new custom endpoints since version 2.9.23.1.

There are 2 types of Authorization

  • Public endpoint
  • OAuth endpoint


Depending on authorization type, URL is generated. For Public, prefix "/pub/ext/" is used. For OAuth, prefix "/api/ext/" is used.

For example if URL is set to "update" and Autorization is set to "public" generated adress will be "/pub/ext/update"

Set Endpoint

To set the new endpoint, you should go to the "Endpoints configuration" in the Administration top menu


By clicking on the template name, an editor will be open.


Here is an example of endpoint, that will return last value from attribute L_VERSION from dataset 1118.

Code Block
languagegroovy
def rows = readDataset(1118 , 1, null, com.belladati.common.sort.Sort.descending('row_uid'))
Response.ok(rows[0].getValues()['L_VERSION'],"text/plain").build() 



Sv translation
languageja


Info

エンドポイント設定では、データの読み取り、書き込み、更新、削除が可能な独自のエンドポイントを作成することができます。エンドポイントは、データセットだけでなく、ユーザーやメディアとも連携することができます。

ドメイン管理者の役割を持つユーザーは、

ドメイン管理者ロールを持つユーザーは、

バージョン2.9.

18以降のメールテンプレートを設定し、バージョン2.9.19以降のメールテンプレートに翻訳を追加できます。

テンプレートを持つことができるeメールには、4つのタイプがあります:

  • アカウントの作成
  • pinの作成
  • パスワードのリセット
  • アカウントのロック解除

テンプレートの設定

テンプレートを設定するには、[管理]トップメニューの[メールテンプレート]に移動する必要があります。

Image Removed

テンプレート名をクリックすると、エディタが開きます。新規ユーザー向けのメールテンプレートの例を次に示します。

Expand
titleEmail template for new users
public class CustomNewUserNotificationTemplate extends com.belladati.mail.EmailTemplateBase {

	def user;
	def url;
	def request;
    def linksToDoc;
 
   protected String getSubject() {
      return "[${appName}] Account created";
   }
   
   protected String getBody() {
      def docs = linksToDoc?.trim() ? linksToDoc :
               "Instructions \"How to use ${appName}\" including documentation and short tutorial movies can be found at <a href=\"http://support.belladati.com\">http://support.belladati.com</a>."
	  return """<p>Dear ${user?.asString},</p>
		
	  <p>Your ${appName} account has been created.</p>

	  <p>Username: ${user?.username}</p>
	  <p>Password: you can set your password by following this link <a href="${url}/en/user/processrequest/${request?.id}/${request?.verificationCode}">${url}/en/user/processrequest/${request?.id}/${request?.verificationCode}</a>.</p>

	  <p>${docs}</p>

	  <p>Please do not hesitate to contact us if you have any questions or recommendations.</p> 
	  """
	}
}

Image Removed

メールテンプレートの翻訳

メールテンプレートの翻訳を追加できます。これを行うには、優先言語を選択して、選択した言語のすべてのテンプレートが表示されるようにします。

Image Removed

次に  

Administering Administering Users

23.1以降、新しいカスタムエンドポイントを作成することができます。

オーソライズには2種類あります

  • パブリックエンドポイント
  • OAuthエンドポイント


認可の種類によって、URLが生成されます。Publicの場合、プレフィックスとして"/pub/ext/"が使用されます。OAuthの場合は、"/api/ext/"という接頭辞がつきます。

例えば、URLが "update "でAutorizationが "public "の場合、生成されるアドレスは"/pub/ext/update "になります。

エンドポイントの設定

新しいエンドポイントを設定するには、管理画面のトップメニューにある「エンドポイントの設定」を開きます。

Image Added


テンプレート名をクリックすると、エディターが開きます。


以下は、データセット1118から属性L_VERSIONの最後の値を返すエンドポイントの例です。

Code Block
languagegroovy
def rows = readDataset(1118 , 1, null, com.belladati.common.sort.Sort.descending('row_uid'))
Response.ok(rows[0].getValues()['L_VERSION'],"text/plain").build()