|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||
java.lang.Objectjp.go.nict.langrid.foundation.AbstractLangridService
jp.go.nict.langrid.foundation.usermanagement.UserManagement
public class UserManagement
ユーザ管理サービス。
| コンストラクタの概要 | |
|---|---|
UserManagement()
コンストラクタ。 |
|
UserManagement(ServiceContext serviceContext)
コンストラクタ。 |
|
| メソッドの概要 | |
|---|---|
void |
addUser(String userId,
String password,
boolean canCallServices,
UserProfile profile,
Attribute[] attributes)
ユーザを追加する。 |
void |
clear()
ユーザ情報を全てクリアする。 |
void |
deleteUser(String userId)
ユーザを削除する。 |
Calendar |
getPasswordChangedDate(String userId)
ユーザのパスワード変更日を取得する。 |
Attribute[] |
getUserAttributes(String userId,
String[] attributeNames)
ユーザの属性情報を取得する。 |
boolean |
getUserCanCallServices(String userId)
ユーザが原子サービス、複合サービスを呼び出せるかどうかを取得する。 |
String |
getUserDigestedPassword(String userId)
ユーザのパスワードを取得する。 |
String |
getUserPassword(String userId)
|
UserProfile |
getUserProfile(String userId)
ユーザのプロファイルを取得する。 |
void |
initialize()
ユーザ情報を初期化する。 |
UserEntrySearchResult |
searchUsers(int startIndex,
int maxCount,
MatchingCondition[] conditions,
Order[] orders)
指定された条件でユーザを検索し、ソートして返す。 |
UserEntrySearchResult |
searchUsersShouldChangePassword(int startIndex,
int maxCount,
int days,
Order[] orders)
パスワード変更が必要なユーザを返す。 |
void |
setUserAttributes(String userId,
Attribute[] attributes)
ユーザの属性情報を設定する。 |
void |
setUserCanCallServices(String userId,
boolean canCallServices)
ユーザが原子サービス、複合サービスを呼び出せるかどうかを設定する。 |
void |
setUserPassword(String userId,
String password)
ユーザのパスワードを変更する。 |
void |
setUserProfile(String userId,
UserProfile profile)
ユーザのプロファイル情報を設定する。 |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public UserManagement()
public UserManagement(ServiceContext serviceContext)
serviceContext - サービスコンテキスト| メソッドの詳細 |
|---|
@AccessRightValidatedMethod(policy=ADMINONLY)
@TransactionMethod
public void clear()
throws AccessLimitExceededException,
NoAccessPermissionException,
ServiceConfigurationException,
UnknownException
UserManagementService の記述:
UserManagementService 内の clearAccessLimitExceededException - アクセス制限に違反した
NoAccessPermissionException - 呼び出しを行ったユーザに実行権限が無い
ServiceConfigurationException - サービスの設定が適切に行われていない
UnknownException - 不明な例外が発生した
@AccessRightValidatedMethod(policy=ADMINONLY)
@TransactionMethod
public void initialize()
throws AccessLimitExceededException,
NoAccessPermissionException,
ServiceConfigurationException,
UnknownException
UserManagementService の記述:
UserManagementService 内の initializeAccessLimitExceededException - アクセス制限に違反した
NoAccessPermissionException - 呼び出しを行ったユーザに実行権限が無い
ServiceConfigurationException - サービスの設定が適切に行われていない
UnknownException - 不明な例外が発生した
@ValidatedMethod
@AccessRightValidatedMethod
public UserEntrySearchResult searchUsers(@IntNotNegative
int startIndex,
@IntInRange(minimum=0,maximum=100)
int maxCount,
@NotNull@EachElement@ValidMatchingCondition
MatchingCondition[] conditions,
@NotNull@EachElement@ValidOrder
Order[] orders)
throws AccessLimitExceededException,
InvalidParameterException,
NoAccessPermissionException,
ServiceConfigurationException,
UnknownException,
UnsupportedMatchingMethodException
UserManagementService の記述:
UserManagementService 内の searchUsersstartIndex - 取得開始位置maxCount - 最大取得件数conditions - マッチング条件。AND検索orders - ソート条件
AccessLimitExceededException - アクセス制限に違反した
InvalidParameterException - 不正なパラメータが渡された
NoAccessPermissionException - 呼び出しを行ったユーザに実行権限が無い
ServiceConfigurationException - サービスの設定が適切に行われていない
UnknownException - 想定されない例外が発生した
UnsupportedMatchingMethodException
@ValidatedMethod
@AccessRightValidatedMethod(policy=ADMINONLY)
@TransactionMethod
public UserEntrySearchResult searchUsersShouldChangePassword(@IntNotNegative
int startIndex,
@IntInRange(minimum=0,maximum=100)
int maxCount,
@IntNotNegative
int days,
@NotNull@EachElement@ValidOrder
Order[] orders)
throws AccessLimitExceededException,
InvalidParameterException,
NoAccessPermissionException,
ServiceConfigurationException,
UnknownException
UserManagementService の記述:
UserManagementService 内の searchUsersShouldChangePasswordstartIndex - 開始インデックスmaxCount - 最大件数days - パスワード変更後の経過日数orders - ソート順
AccessLimitExceededException - アクセス制限に違反した
InvalidParameterException - 不正なパラメータが渡された
NoAccessPermissionException - 呼び出しを行ったユーザに実行権限が無い
ServiceConfigurationException - サービスの設定が適切に行われていない
UnknownException - 想定されない例外が発生した
@ValidatedMethod
@AccessRightValidatedMethod(policy=ADMINONLY)
public void addUser(@NotEmpty@ValidUserId
String userId,
@NotEmpty
String password,
boolean canCallServices,
@NotNull
UserProfile profile,
@NotNull@EachElement@ValidAttribute
Attribute[] attributes)
throws AccessLimitExceededException,
InvalidParameterException,
InvalidUserIdException,
NoAccessPermissionException,
ServiceConfigurationException,
UnknownException,
UserAlreadyExistsException
UserManagementService の記述:
UserManagementService 内の addUseruserId - ユーザ名password - パスワードcanCallServices - サービスを呼び出せるかどうかprofile - プロファイルattributes - 属性
AccessLimitExceededException - アクセス制限に違反した
InvalidParameterException - 不正なパラメータが渡された
InvalidUserIdException - 不正なユーザIDが渡された
NoAccessPermissionException - 呼び出しを行ったユーザに実行権限が無い
ServiceConfigurationException - サービスの設定が適切に行われていない
UnknownException - 想定されない例外が発生した
UserAlreadyExistsException - 指定されたユーザは既に存在する
@ValidatedMethod
@AccessRightValidatedMethod(policy=ADMINONLY)
public void deleteUser(@NotEmpty@ValidUserId
String userId)
throws AccessLimitExceededException,
InvalidParameterException,
NoAccessPermissionException,
ServiceConfigurationException,
UnknownException,
UserNotFoundException
UserManagementService の記述:
UserManagementService 内の deleteUseruserId - 削除するユーザのユーザ名
AccessLimitExceededException - アクセス制限に違反した
InvalidParameterException - 不正なパラメータが渡された
NoAccessPermissionException - 呼び出しを行ったユーザに実行権限が無い
ServiceConfigurationException - サービスの設定が適切に行われていない
UnknownException - 想定されない例外が発生した
UserNotFoundException - 指定されたユーザは存在しない
@ValidatedMethod
@AccessRightValidatedMethod
@TransactionMethod
public UserProfile getUserProfile(@NotEmpty@ValidUserId
String userId)
throws AccessLimitExceededException,
InvalidParameterException,
NoAccessPermissionException,
ServiceConfigurationException,
UnknownException,
UserNotFoundException
UserManagementService の記述:
UserManagementService 内の getUserProfileuserId - ユーザ名
AccessLimitExceededException - アクセス制限に違反した
InvalidParameterException - 不正なパラメータが渡された
NoAccessPermissionException - 呼び出しを行ったユーザに実行権限が無い
ServiceConfigurationException - サービスの設定が適切に行われていない
UnknownException - 想定されない例外が発生した
UserNotFoundException - 指定されたユーザは存在しない
@AccessRightValidatedMethod(policy=SELF_OR_ADMIN,
argNames="userId")
@ValidatedMethod
public void setUserProfile(@NotEmpty@ValidUserId
String userId,
@NotNull
UserProfile profile)
throws AccessLimitExceededException,
InvalidParameterException,
NoAccessPermissionException,
ServiceConfigurationException,
UnknownException,
UserNotFoundException
UserManagementService の記述:
UserManagementService 内の setUserProfileuserId - ユーザIDprofile - ユーザのプロファイル情報
AccessLimitExceededException - アクセス制限に違反した
InvalidParameterException - 不正なパラメータが渡された
NoAccessPermissionException - 呼び出しを行ったユーザに実行権限が無い
ServiceConfigurationException - サービスの設定が適切に行われていない
UnknownException - 想定されない例外が発生した
UserNotFoundException - 指定されたユーザが見つからない
@AccessRightValidatedMethod(policy=SELF_OR_ADMIN,
argNames="userId")
@ValidatedMethod
@TransactionMethod
public Attribute[] getUserAttributes(@NotEmpty@ValidUserId
String userId,
@NotNull@EachElement@ValidAttributeName
String[] attributeNames)
throws AccessLimitExceededException,
InvalidParameterException,
NoAccessPermissionException,
ServiceConfigurationException,
UnknownException,
UserNotFoundException
attributeNamesに存在しない属性名が指定された場合、その属性名は無視される。 空配列を指定した場合は取得可能な全ての属性を取得する。
UserManagementService 内の getUserAttributesuserId - ユーザIDattributeNames - 取得する属性名の配列
AccessLimitExceededException - アクセス制限に違反した
InvalidParameterException - 不正なパラメータが渡された
NoAccessPermissionException - 呼び出しを行ったユーザに実行権限が無い
ServiceConfigurationException - サービスの設定が適切に行われていない
UnknownException - 想定されない例外が発生した
UserNotFoundException - 指定されたユーザが見つからない
@AccessRightValidatedMethod(policy=SELF_OR_ADMIN,
argNames="userId")
@ValidatedMethod
@TransactionMethod
public void setUserAttributes(@NotEmpty@ValidUserId
String userId,
@NotNull@EachElement@ValidAttribute
Attribute[] attributes)
throws AccessLimitExceededException,
InvalidParameterException,
NoAccessPermissionException,
ServiceConfigurationException,
UnknownException,
UserNotFoundException
指定された属性のvalueフィールドが空文字列の場合、その属性は削除される。
UserManagementService 内の setUserAttributesuserId - ユーザIDattributes - 属性情報の配列。
AccessLimitExceededException - アクセス制限に違反した
InvalidParameterException - 不正なパラメータが渡された
NoAccessPermissionException - 呼び出しを行ったユーザに実行権限が無い
ServiceConfigurationException - サービスの設定が適切に行われていない
UnknownException - 想定されない例外が発生した
UserNotFoundException - 指定されたユーザが見つからない
@ValidatedMethod
@AccessRightValidatedMethod(policy=SELF_OR_ADMIN,
argNames="userId")
@TransactionMethod
public void setUserPassword(@NotEmpty@ValidUserId
String userId,
@NotEmpty@ValidPassword
String password)
throws AccessLimitExceededException,
InvalidParameterException,
NoAccessPermissionException,
ServiceConfigurationException,
UnknownException,
UserNotFoundException
UserManagementService の記述:
UserManagementService 内の setUserPassworduserId - ユーザ名password - パスワード
AccessLimitExceededException - アクセス制限に違反した
InvalidParameterException - 不正なパラメータが渡された
NoAccessPermissionException - 呼び出しを行ったユーザに実行権限が無い
ServiceConfigurationException - サービスの設定が適切に行われていない
UnknownException - 想定されない例外が発生した
UserNotFoundException - 指定されたユーザは存在しない
@ValidatedMethod
@AccessRightValidatedMethod(policy=SELF_OR_ADMIN,
argNames="userId")
@TransactionMethod
public Calendar getPasswordChangedDate(@NotEmpty@ValidUserId
String userId)
throws AccessLimitExceededException,
InvalidParameterException,
NoAccessPermissionException,
ServiceConfigurationException,
UnknownException,
UserNotFoundException
UserManagementService の記述:
UserManagementService 内の getPasswordChangedDateuserId - ユーザ名
AccessLimitExceededException - アクセス制限に違反した
InvalidParameterException - 不正なパラメータが渡された
NoAccessPermissionException - 呼び出しを行ったユーザに実行権限が無い
ServiceConfigurationException - サービスの設定が適切に行われていない
UnknownException - 想定されない例外が発生した
UserNotFoundException - 指定されたユーザは存在しない
@ValidatedMethod
@AccessRightValidatedMethod(policy=ADMINONLY)
@TransactionMethod
public String getUserPassword(@NotEmpty@ValidUserId
String userId)
throws AccessLimitExceededException,
InvalidParameterException,
NoAccessPermissionException,
ServiceConfigurationException,
UnknownException,
UserNotFoundException
AccessLimitExceededException
InvalidParameterException
NoAccessPermissionException
ServiceConfigurationException
UnknownException
UserNotFoundException
@ValidatedMethod
@AccessRightValidatedMethod(policy=ADMINONLY)
@TransactionMethod
public String getUserDigestedPassword(@NotEmpty@ValidUserId
String userId)
throws AccessLimitExceededException,
InvalidParameterException,
NoAccessPermissionException,
ServiceConfigurationException,
UnknownException,
UserNotFoundException
UserManagementService の記述:
UserManagementService 内の getUserDigestedPassworduserId - ユーザ名
AccessLimitExceededException - アクセス制限に違反した
InvalidParameterException - 不正なパラメータが渡された
NoAccessPermissionException - 呼び出しを行ったユーザに実行権限が無い
ServiceConfigurationException - サービスの設定が適切に行われていない
UnknownException - 想定されない例外が発生した
UserNotFoundException - 指定されたユーザは存在しない
@ValidatedMethod
@AccessRightValidatedMethod(policy=SELF_OR_ADMIN)
@TransactionMethod
public boolean getUserCanCallServices(@NotEmpty@ValidUserId
String userId)
throws AccessLimitExceededException,
InvalidParameterException,
NoAccessPermissionException,
ServiceConfigurationException,
UnknownException,
UserNotFoundException
この情報は全てのアクセス権設定、アクセス制限設定よりも優先されます。 falseであればアクセス許可があり、アクセス数や転送量が許容範囲内であってもサービス呼び出しは行えません。
UserManagementService 内の getUserCanCallServicesuserId - ユーザ名
AccessLimitExceededException - アクセス制限に違反した
InvalidParameterException - 不正なパラメータが渡された
NoAccessPermissionException - 呼び出しを行ったユーザに実行権限が無い
ServiceConfigurationException - サービスの設定が適切に行われていない
UnknownException - 想定されない例外が発生した
UserNotFoundException - 指定されたユーザは存在しない
@ValidatedMethod
@AccessRightValidatedMethod(policy=ADMINONLY)
@TransactionMethod
public void setUserCanCallServices(@NotEmpty@ValidUserId
String userId,
boolean canCallServices)
throws AccessLimitExceededException,
InvalidParameterException,
NoAccessPermissionException,
ServiceConfigurationException,
UnknownException,
UserNotFoundException
この情報は全てのアクセス権設定、アクセス制限設定よりも優先されます。 falseであればアクセス許可があり、アクセス数や転送量が許容範囲内であってもサービス呼び出しは行えません。
UserManagementService 内の setUserCanCallServicesuserId - ユーザ名canCallServices - ユーザが原子サービス、複合サービスを呼び出せるかどうか
AccessLimitExceededException - アクセス制限に違反した
InvalidParameterException - 不正なパラメータが渡された
NoAccessPermissionException - 呼び出しを行ったユーザに実行権限が無い
ServiceConfigurationException - サービスの設定が適切に行われていない
UnknownException - 想定されない例外が発生した
UserNotFoundException - 指定されたユーザは存在しない
|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||