|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||
java.lang.Objectjp.go.nict.langrid.foundation.AbstractLangridService
jp.go.nict.langrid.foundation.nodemanagement.NodeManagement
public class NodeManagement
ノード管理サービス。
| コンストラクタの概要 | |
|---|---|
NodeManagement()
コンストラクタ。 |
|
NodeManagement(ServiceContext nodeContext)
コンストラクタ。 |
|
| メソッドの概要 | |
|---|---|
void |
activateNode(String nodeId)
ノードをアクティブ状態にする。 |
void |
addNode(String nodeId,
NodeProfile profile,
Attribute[] attributes)
追加するノードが複合ノードの場合、参照しているWSDLファイルのtargetNamespace から既存のノードが検索され、見つかった場合、参照ノードのリストに加えられる。 |
void |
addNodeAs(String ownerUserId,
String nodeId,
NodeProfile profile,
Attribute[] attributes)
所有権を持つユーザを指定してノードを追加する。 |
void |
clear()
全ノードを消去する。 |
void |
deactivateNode(String nodeId)
ノードを非アクティブ状態にする。 |
void |
deleteNode(String nodeId)
登録されているノードを削除する。 |
Attribute[] |
getNodeAttributes(String nodeId,
String[] attributeNames)
ノードの属性を取得する。 |
NodeProfile |
getNodeProfile(String nodeId)
ノードのプロファイル情報を取得する。 |
String |
getSelfNodeId()
このノードのノードIDを取得する。 |
boolean |
isNodeActive(String nodeId)
ノードがアクティブかどうかを返す。 |
NodeEntrySearchResult |
searchNodes(int startIndex,
int maxCount,
MatchingCondition[] conditions,
Order[] orders,
String scope)
指定された条件でノードを検索し、ソートして返す。 |
void |
setNodeAttributes(String nodeId,
Attribute[] attributes)
ノードの属性を設定する。 |
void |
setNodeProfile(String nodeId,
NodeProfile profile)
ノードのプロファイル情報を設定する。 |
protected static void |
validateInputAttribute(String parameterName,
Attribute[] attributes)
属性を検証する。 |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public NodeManagement()
public NodeManagement(ServiceContext nodeContext)
nodeContext - サービスコンテキスト| メソッドの詳細 |
|---|
@AccessRightValidatedMethod(policy=ADMINONLY)
@TransactionMethod
public void clear()
throws AccessLimitExceededException,
NoAccessPermissionException,
ServiceConfigurationException,
UnknownException
NodeManagementService の記述:
NodeManagementService 内の clearAccessLimitExceededException - アクセス制限に違反した
NoAccessPermissionException - 呼び出しを行ったユーザに実行権限が無い
ServiceConfigurationException - サービスが適切に設定されていない
UnknownException - 処理に失敗した
@AccessRightValidatedMethod
@ValidatedMethod
@TransactionMethod
public NodeEntrySearchResult searchNodes(@IntNotNegative
int startIndex,
@IntInRange(minimum=0,maximum=100)
int maxCount,
@NotNull@EachElement@ValidMatchingCondition
MatchingCondition[] conditions,
@NotNull@EachElement@ValidOrder
Order[] orders,
@NotEmpty@ValidEnum(value=Scope.class)
String scope)
throws AccessLimitExceededException,
InvalidParameterException,
NoAccessPermissionException,
ServiceConfigurationException,
UnknownException,
UnsupportedMatchingMethodException
NodeManagementService の記述:
NodeManagementService 内の searchNodesstartIndex - 結果の取得開始位置maxCount - 最大取得件数conditions - マッチング条件。AND検索orders - ソート条件scope - 対象範囲("ALL", "MINE", "ACCESSIBLE")
AccessLimitExceededException - アクセス制限に違反した
InvalidParameterException - 不正な引数が渡された
UnsupportedMatchingMethodException - 対応していないマッチング方法が指定された
NoAccessPermissionException - 呼び出しを行ったユーザに実行権限が無い
ServiceConfigurationException - サービスが適切に設定されていない
UnknownException - 不明な理由で処理に失敗した
UnsupportedMatchingMethodException
@AccessRightValidatedMethod
@ValidatedMethod
@TransactionMethod
public void addNode(@NotEmpty@ValidNodeId
String nodeId,
@NotNull@ValidNodeProfile
NodeProfile profile,
@NotNull@EachElement@ValidAttribute
Attribute[] attributes)
throws AccessLimitExceededException,
InvalidParameterException,
NoAccessPermissionException,
NodeAlreadyExistsException,
ServiceConfigurationException,
UnknownException
NodeManagementService 内の addNodenodeId - ノードIDprofile - ノードの情報attributes - ノードの拡張属性情報
AccessLimitExceededException - アクセス制限に違反した
InvalidParameterException - 不正なパラメータが渡された
NoAccessPermissionException - 呼び出しを行ったユーザに実行権限が無い
NodeAlreadyExistsException - 指定されたノードは既に存在する
ServiceConfigurationException - サービスの設定が不正なため処理に失敗した
UnknownException - 処理に失敗した
@AccessRightValidatedMethod(policy=ADMINONLY)
@ValidatedMethod
@TransactionMethod
public void addNodeAs(@NotEmpty@ValidUserId
String ownerUserId,
@NotEmpty@ValidNodeId
String nodeId,
@NotNull@ValidNodeProfile
NodeProfile profile,
@NotNull@EachElement@ValidAttribute
Attribute[] attributes)
throws AccessLimitExceededException,
InvalidParameterException,
NoAccessPermissionException,
NodeAlreadyExistsException,
ServiceConfigurationException,
UnknownException
NodeManagementService の記述:
NodeManagementService 内の addNodeAsownerUserId - 所有権を持つユーザnodeId - ノードIDprofile - ノードの情報attributes - ノードの拡張属性情報
AccessLimitExceededException - アクセス制限に違反した
InvalidParameterException - 不正なパラメータが渡された
NoAccessPermissionException - 呼び出しを行ったユーザに実行権限が無い
NodeAlreadyExistsException - 指定されたノードは既に存在する
ServiceConfigurationException - サービスの設定が不正なため処理に失敗した
UnknownException - 処理に失敗した
@ValidatedMethod
@AccessRightValidatedMethod
@TransactionMethod
public void deleteNode(@NotEmpty@ValidNodeId
String nodeId)
throws AccessLimitExceededException,
InvalidParameterException,
NoAccessPermissionException,
ServiceConfigurationException,
NodeNotFoundException,
NodeNotInactiveException,
UnknownException
NodeManagementService の記述:
NodeManagementService 内の deleteNodenodeId - 削除するノードのID
AccessLimitExceededException - アクセス制限に違反した
InvalidParameterException - 不正なパラメータが渡された
NoAccessPermissionException - 呼び出しを行ったユーザに実行権限が無い
ServiceConfigurationException - サービスの設定が不正なため処理に失敗した
NodeNotFoundException - 指定されたノードが見つからない
NodeNotInactiveException - 指定されたノードが非アクティブ状態でない
UnknownException - 不明な原因で処理に失敗した
@ValidatedMethod
@AccessRightValidatedMethod
@TransactionMethod
public NodeProfile getNodeProfile(@NotEmpty@ValidNodeId
String nodeId)
throws AccessLimitExceededException,
InvalidParameterException,
NoAccessPermissionException,
ServiceConfigurationException,
NodeNotFoundException,
UnknownException
NodeManagementService の記述:
NodeManagementService 内の getNodeProfilenodeId - ノードID
AccessLimitExceededException - アクセス制限に違反した
InvalidParameterException - 不正なパラメータが渡された
NoAccessPermissionException - 呼び出しを行ったユーザに実行権限が無い
ServiceConfigurationException - サービスの設定が不正なため処理に失敗した
NodeNotFoundException - 指定されたノードが見つからない
UnknownException - 不明な原因で処理に失敗した
@ValidatedMethod
@AccessRightValidatedMethod
@TransactionMethod
public void setNodeProfile(@NotEmpty@ValidNodeId
String nodeId,
@NotNull@ValidNodeProfile
NodeProfile profile)
throws AccessLimitExceededException,
InvalidParameterException,
NoAccessPermissionException,
ServiceConfigurationException,
NodeNotFoundException,
UnknownException
NodeManagementService の記述:
NodeManagementService 内の setNodeProfilenodeId - ノードIDprofile - プロファイル情報
AccessLimitExceededException - アクセス制限に違反した
InvalidParameterException - 不正なパラメータが渡された
NoAccessPermissionException - 呼び出しを行ったユーザに実行権限が無い
ServiceConfigurationException - サービスの設定が不正なため処理に失敗した
NodeNotFoundException - 指定されたノードが見つからない
UnknownException - 不明な原因で処理に失敗した
@ValidatedMethod
@AccessRightValidatedMethod
@TransactionMethod
public Attribute[] getNodeAttributes(@NotEmpty@ValidNodeId
String nodeId,
@NotNull@EachElement@ValidAttributeName
String[] attributeNames)
throws AccessLimitExceededException,
InvalidParameterException,
NoAccessPermissionException,
ServiceConfigurationException,
NodeNotFoundException,
UnknownException
attributeNamesに存在しない属性名が指定された場合、その属性名は無視される。 空配列を指定した場合は取得可能な全ての属性を取得する。
NodeManagementService 内の getNodeAttributesnodeId - ノードIDattributeNames - 取得する属性名の配列
AccessLimitExceededException - アクセス制限に違反した
InvalidParameterException - 不正なパラメータが渡された
NoAccessPermissionException - 呼び出しを行ったユーザに実行権限が無い
ServiceConfigurationException - サービスの設定が不正なため処理に失敗した
NodeNotFoundException - 指定されたノードが見つからない
UnknownException - 不明な原因で処理に失敗した
@ValidatedMethod
@AccessRightValidatedMethod
@TransactionMethod
public void setNodeAttributes(@NotEmpty@ValidNodeId
String nodeId,
@EachElement@ValidAttribute
Attribute[] attributes)
throws AccessLimitExceededException,
InvalidParameterException,
NoAccessPermissionException,
ServiceConfigurationException,
NodeNotFoundException,
UnknownException
指定された属性のvalueフィールドが空文字列の場合、その属性は削除される。
NodeManagementService 内の setNodeAttributesnodeId - ノードIDattributes - 設定する属性
AccessLimitExceededException - アクセス制限に違反した
InvalidParameterException - 不正なパラメータが渡された
NoAccessPermissionException - 呼び出しを行ったユーザに実行権限が無い
ServiceConfigurationException - サービスの設定が不正なため処理に失敗した
NodeNotFoundException - 指定されたノードが見つからない
UnknownException - 不明な原因で処理に失敗した
@ValidatedMethod
@AccessRightValidatedMethod
@TransactionMethod
public void activateNode(@NotEmpty@ValidNodeId
String nodeId)
throws AccessLimitExceededException,
InvalidParameterException,
NoAccessPermissionException,
ServiceConfigurationException,
NodeNotFoundException,
UnknownException
NodeManagementService の記述:
NodeManagementService 内の activateNodenodeId - ノードID
AccessLimitExceededException - アクセス制限に違反した
InvalidParameterException - 不正なパラメータが渡された
NoAccessPermissionException - 呼び出しを行ったユーザに実行権限が無い
ServiceConfigurationException - サービスの設定が不正なため処理に失敗した
NodeNotFoundException - 指定されたノードが見つからない
UnknownException - 不明な原因で処理に失敗した
@ValidatedMethod
@AccessRightValidatedMethod(policy=ADMINONLY)
@TransactionMethod
public void deactivateNode(@NotEmpty@ValidNodeId
String nodeId)
throws AccessLimitExceededException,
InvalidParameterException,
NoAccessPermissionException,
ServiceConfigurationException,
NodeNotFoundException,
UnknownException
NodeManagementService の記述:
NodeManagementService 内の deactivateNodenodeId - ノードID
AccessLimitExceededException - アクセス制限に違反した
InvalidParameterException - 不正なパラメータが渡された
NoAccessPermissionException - 呼び出しを行ったユーザに実行権限が無い
ServiceConfigurationException - サービスの設定が不正なため処理に失敗した
NodeNotFoundException - 指定されたノードが見つからない
UnknownException - 不明な原因で処理に失敗した
@ValidatedMethod
@AccessRightValidatedMethod
@TransactionMethod
public boolean isNodeActive(@NotEmpty@ValidNodeId
String nodeId)
throws AccessLimitExceededException,
InvalidParameterException,
NoAccessPermissionException,
ServiceConfigurationException,
NodeNotFoundException,
UnknownException
NodeManagementService の記述:
NodeManagementService 内の isNodeActivenodeId - ノードID
AccessLimitExceededException - アクセス制限に違反した
InvalidParameterException - 不正なパラメータが渡された
NoAccessPermissionException - 呼び出しを行ったユーザに実行権限が無い
ServiceConfigurationException - サービスの設定が不正なため処理に失敗した
NodeNotFoundException - 指定されたノードが見つからない
UnknownException - 不明な原因で処理に失敗した
@AccessRightValidatedMethod
@TransactionMethod
public String getSelfNodeId()
throws AccessLimitExceededException,
NoAccessPermissionException,
ServiceConfigurationException,
UnknownException
NodeManagementService の記述:
NodeManagementService 内の getSelfNodeIdAccessLimitExceededException - アクセス制限に違反した
NoAccessPermissionException - 呼び出しを行ったユーザに実行権限が無い
ServiceConfigurationException - サービスの設定が不正なため処理に失敗した
UnknownException - 不明な原因で処理に失敗した
protected static void validateInputAttribute(String parameterName,
Attribute[] attributes)
throws InvalidParameterException
parameterName - パラメータ名attributes - 検証する属性
InvalidParameterException - パラメータが不正
|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||