Sentinel EMS では、デフォルトの EID フォーマットに基づきエンタイトルメントが識別されます。デフォルトの EID フォーマットは、ランダムに生成された 32 文字で構成されます。必要に応じて、このデフォルト EID をカスタマイズできます。カスタム EID は 6 文字以上でなければなりません。EMS のデフォルトの EID ジェネレータを変更するには、次の手順に従います。
このインターフェースには次のメソッドが含まれています。
public interface EidGenerator { /** * @return generated EID which is unique. */ public String generateID(Object[] args); /** * retrieves the new EID based on state of the passed entitlement * @param entitlement - the entitlement's state, represented as Map(name value pair) * @return new EID - if it is null, or less than 6 characters long, EMS will not * overwrite the previous EID * public String getNewEIDOnCommit(Map entitlement); }
次のコマンドを使用して ant ファイルを実行します。それにより、指定された名前(たとえば customEidGenerator.jar の jar 出力ファイルが生成されます。
ant -file EidGeneratorBuild.xml
変更前
<bean id="eidGenerator" class="com.sfnt.ems.service.EidGeneratorDefaultImpl"/>
変更後
<bean id="eidGenerator" class="{fully qualified class name of custom implementation}"/>
|
|
http://www.safenet-inc.com/Support | |
© Copyright 2013, SafeNet, Inc. All rights reserved. | |