public interface ScheduleService
[ 操作ユーザについて ]
このクラスでは、アカウントコンテキストのユーザコードを元に操作します。
またユーザの所属組織は、ユーザコンテキストのカレント組織を元に操作します。
[ 参照・編集権限について ]
それぞれ以下の権限判定が行われます。
修飾子とタイプ | メソッドと説明 |
---|---|
Integer |
delete(ScheduleKey scheduleKey,
NoticeTargetType noticeTargetType,
String reason)
スケジュールを削除します。
|
DisplaySchedule |
find(ScheduleKey scheduleKey)
スケジュールを取得します。
|
DownloadFile |
findAttachFile(FileKey fileKey)
ダウンロード用の添付ファイルパスを取得します。
|
DisplaySchedule |
findForCopy(ScheduleKey scheduleKey)
コピー用のスケジュールを取得します。
|
DisplaySchedule |
findForEdit(ScheduleKey scheduleKey)
更新用のスケジュールを取得します。
|
Integer |
leave(ScheduleKey scheduleKey,
Boolean doNotice)
非推奨です。
|
Integer |
leaveWithReasonWhy(ScheduleKey scheduleKey,
NoticeTargetType noticeTargetType,
String reason)
スケジュールの参加を辞退します。
|
Schedule |
register(Schedule schedule)
スケジュールを登録します。
|
Schedule |
update(Schedule schedule)
スケジュールを更新します。
|
Integer |
updateReminder(ScheduleKey scheduleKey,
ScheduleReminder reminder)
スケジュールのリマインダを更新します。
|
Integer delete(ScheduleKey scheduleKey, NoticeTargetType noticeTargetType, String reason) throws InvalidParameterException, AuthenticationException
指定されたスケジュールに対する編集権限がある場合のみ削除が可能です。
scheduleKey
- スケジュールキーnoticeTargetType
- 通知ターゲットreason
- 削除理由InvalidParameterException
- 入力項目値に不正があった場合に発生します。AuthenticationException
- 編集権限がない場合に発生します。DisplaySchedule find(ScheduleKey scheduleKey) throws InvalidParameterException, AuthenticationException
指定されたスケジュールに対する参照権限がある場合のみ取得が可能です。
scheduleKey
- スケジュールキーInvalidParameterException
- 入力項目値に不正があった場合に発生します。AuthenticationException
- 参照権限がない場合に発生します。DownloadFile findAttachFile(FileKey fileKey) throws InvalidParameterException, AuthenticationException
以下のすべての条件を満たす場合のみ取得が可能です。
fileKey
- 添付ファイルキーInvalidParameterException
- 入力項目値に不正があった場合に発生します。AuthenticationException
- 参照権限がない場合に発生します。DisplaySchedule findForCopy(ScheduleKey scheduleKey) throws InvalidParameterException, AuthenticationException
指定されたスケジュールに対する参照権限がある場合のみ取得が可能です。
scheduleKey
- スケジュールキーInvalidParameterException
- 入力項目値に不正があった場合に発生します。AuthenticationException
- 参照権限がない場合に発生します。DisplaySchedule findForEdit(ScheduleKey scheduleKey) throws InvalidParameterException, AuthenticationException
指定されたスケジュールに対する編集権限がある場合のみ取得が可能です。
scheduleKey
- スケジュールキーInvalidParameterException
- 入力項目値に不正があった場合に発生します。AuthenticationException
- 編集権限がない場合に発生します。@Deprecated Integer leave(ScheduleKey scheduleKey, Boolean doNotice) throws InvalidParameterException, AuthenticationException
leaveWithReasonWhy(ScheduleKey, NoticeTargetType, String)
を使用してください。
指定されたスケジュールに参加している場合のみ参加者から除外します。
他に参加者がいない場合はスケジュール自体の削除も行います。
当該メソッドでは常に権限判定処理は行われません。
scheduleKey
- スケジュールキーdoNotice
- true : 通知者に通知する / false : 登録者に通知しないInvalidParameterException
- 入力項目値に不正があった場合に発生します。AuthenticationException
- 参加者であるかどうか判定ができなかった場合に発生します。Integer leaveWithReasonWhy(ScheduleKey scheduleKey, NoticeTargetType noticeTargetType, String reason) throws InvalidParameterException, AuthenticationException
指定されたスケジュールに参加している場合のみ参加者から除外します。
他に参加者がいない場合はスケジュール自体の削除も行います。
当該メソッドでは常に権限判定処理は行われません。
scheduleKey
- スケジュールキーnoticeTargetType
- 通知ターゲットreason
- 辞退理由InvalidParameterException
- 入力項目値に不正があった場合に発生します。AuthenticationException
- 参加者であるかどうか判定ができなかった場合に発生します。Schedule register(Schedule schedule) throws InvalidParameterException, AuthenticationException, OperationException
権限判定処理を行う場合、編集権限のない参加者および施設が存在すると登録できません。
schedule
- スケジュール情報InvalidParameterException
- 入力項目値に不正があった場合に発生します。AuthenticationException
- 権限判定を行う場合で、編集権限のない参加者および施設が存在する場合に発生します。OperationException
- データ不整合が起こる場合に発生します。Schedule update(Schedule schedule) throws InvalidParameterException, AuthenticationException, OperationException
指定されたスケジュールに対する編集権限がある場合のみ更新が可能です。
権限判定処理を行う場合、編集権限のない参加者および施設が存在すると更新できません。
schedule
- スケジュール情報InvalidParameterException
- 入力項目値に不正があった場合に発生します。AuthenticationException
- 編集権限がない場合に発生します。OperationException
- データ不整合が起こる場合に発生します。Integer updateReminder(ScheduleKey scheduleKey, ScheduleReminder reminder) throws InvalidParameterException, AuthenticationException
指定されたスケジュールに参加している場合のみ更新が可能です。
当該メソッドでは常に権限判定処理は行われません。
scheduleKey
- スケジュールキーreminder
- リマインダー情報InvalidParameterException
- 入力項目値に不正があった場合に発生します。AuthenticationException
- 更新対象のスケジュールが取得できなかった場合に発生します。Copyright © 2012-2015 NTT DATA INTRAMART CORPORATION