public class SharePointStorage extends Object implements Storage<SharePointStorage>
OAuthPreconditionException
が発生します。hasCache()
を、最新の情報を取得したい場合はclearCache()
を実行後に取得メソッドを実行してください。修飾子とタイプ | フィールドと説明 |
---|---|
static String |
OFFICE365_FILE_PATHSEPARATOR
Office365のファイルパスのセパレータ
|
CHARSET, FILE_SEPARATOR, FILE_SEPARATOR_CHAR
コンストラクタと説明 |
---|
SharePointStorage(String userCd,
String providerId,
String path)
ストレージインスタンスを作成します。
|
SharePointStorage(String userCd,
String providerId,
String sitePath,
String path)
ストレージインスタンスを作成します。
|
SharePointStorage(String userCd,
String providerId,
String sitePath,
String driveId,
String path)
ストレージインスタンスを作成します。
|
修飾子とタイプ | メソッドと説明 |
---|---|
OutputStream |
append()
このストレージの出力ストリームを追記モードで取得します。
|
void |
append(CharSequence src)
文字列を標準のキャラセットでこのストレージに追記します。
|
void |
append(CharSequence src,
Charset charset)
文字列を指定されたキャラセットで変換しこのストレージに追記します。
|
void |
append(CharSequence src,
String charsetName)
文字列を指定されたキャラセット名で変換しこのストレージに追記します。
|
void |
clearCache()
このストレージが持つファイルのメタ情報のキャッシュを削除します。
|
int |
compareTo(SharePointStorage storage)
このストレージと引数のストレージを語彙的に比較します。
|
void |
copy(SharePointStorage to,
boolean overwrite)
このファイル、またはディレクトリを引数で指定された対象にコピーします。
|
OutputStream |
create()
このストレージの出力ストリームを取得します。
|
long |
created()
このストレージが示すファイルが作成された時刻を返します。
|
String |
createdApplicationId()
このストレージが示すファイルを作成したOffice365上でのアプリケーションIDを返します。
|
String |
createdApplicationName()
このストレージが示すファイルを作成したOffice365上でのアプリケーション名を返します。
|
String |
createdUserId()
このストレージが示すファイルを作成したOffice365上でのユーザIDを返します。
|
String |
createdUserName()
このストレージが示すファイルを作成したOffice365上でのユーザ名を返します。
|
Collection<String> |
directories()
このストレージが示すディレクトリの配下にあるディレクトリのパスのコレクションを返します。
|
Collection<String> |
directories(boolean recursive)
このストレージが示すディレクトリの配下にあるディレクトリのパスのコレクションを返します。
|
Collection<SharePointStorage> |
directoriesStorages()
このストレージが示すディレクトリ内のディレクトリを示すストレージのコレクションを返します。
|
Collection<SharePointStorage> |
directoriesStorages(boolean recursive)
このストレージが示すディレクトリ内のディレクトリを示すストレージのコレクションを返します。
|
boolean |
equals(Object obj)
このオブジェクトと「等価」になるオブジェクトがあるかどうかを示します。
|
boolean |
exists()
このストレージが示すファイルまたはディレクトリが存在するかどうかを判定します。
|
Collection<String> |
files()
このストレージが示すディレクトリの配下にあるファイルのパスのコレクションを返します。
|
Collection<String> |
files(boolean recursive)
このストレージが示すディレクトリの配下にあるファイルのパスのコレクションを返します。
|
Collection<SharePointStorage> |
filesStorages()
このストレージが示すディレクトリ内のファイルを示すストレージのコレクションを返します。
|
Collection<SharePointStorage> |
filesStorages(boolean recursive)
このストレージが示すディレクトリ内のファイルを示すストレージのコレクションを返します。
|
String |
getCanonicalPath()
正規化したパスを返します。
|
String |
getContentUrl()
非推奨です。
|
String |
getDriveId()
ドライブIDを返します。
|
static Collection<Drive> |
getDrives(String userCd,
String providerId) |
static Collection<Drive> |
getDrives(String userCd,
String providerId,
String sitePath) |
String |
getId()
アイテムIDを取得します。
|
Map<String,Object> |
getListItemFields()
このストレージが示すファイルに対するリストアイテムの持つアイテムフィールドを取得します。
|
String |
getName()
このストレージが示すファイルまたはディレクトリの名前を返します。
|
String |
getParent()
親パスを返します。
|
SharePointStorage |
getParentStorage()
親ストレージを返します。
|
String |
getPath()
パスを返します。
|
String |
getProviderId()
プロバイダIDを返します。
|
String |
getRelativePath(SharePointStorage targetStorage)
このストレージとの相対パスを返します。
|
SharePointStorage |
getRootStorage()
ルートストレージを返します。
|
String |
getSitePath()
サイトパスを返します。
|
String |
getUserCd()
Office 365 SharePoint Online へアクセスを行う intra-mart Accel Platform のユーザコードを返します。
|
String |
getWebUrl()
コンテンツをブラウザ上で確認可能なWeb URLを取得します。
|
boolean |
hasCache()
ファイルのメタ情報をキャッシュしているか否かを取得します。
|
int |
hashCode()
オブジェクトのハッシュコード値を返します。
|
boolean |
isDirectory()
このストレージが示すファイルがディレクトリであるかどうかを判定します。
|
boolean |
isFile()
このストレージが示すファイルが普通のファイルかどうかを判定します。
|
long |
lastModified()
このストレージが示すファイルが最後に変更された時刻を返します。
|
String |
lastModifiedApplicationId()
このストレージが示すファイルを最後に変更したOffice365上でのアプリケーションIDを返します。
|
String |
lastModifiedApplicationName()
このストレージが示すファイルを最後に変更したOffice365上でのアプリケーション名を返します。
|
String |
lastModifiedUserId()
このストレージが示すファイルを最後に変更したOffice365上でのユーザIDを返します。
|
String |
lastModifiedUserName()
このストレージが示すファイルを最後に変更したOffice365上でのユーザ名を返します。
|
long |
length()
このストレージが指定されているファイルの長さを返します。
|
Collection<String> |
list()
このストレージが示すディレクトリの配下にあるファイル、および、ディレクトリのパスのコレクションを返します。
|
Collection<String> |
list(boolean recursive)
このストレージが示すディレクトリの配下にあるファイル、および、ディレクトリのパスのコレクションを返します。
|
Collection<String> |
list(StoragenameFilter<SharePointStorage> filter)
このストレージが示すディレクトリにあるファイルおよびディレクトリの中で、指定されたフィルタの基準を満たすものの相対パスのコレクションを返します。
|
Collection<SharePointStorage> |
listStorages()
このストレージが示すディレクトリ内のファイルおよびディレクトリを示すストレージのコレクションを返します。
|
Collection<SharePointStorage> |
listStorages(boolean recursive)
このストレージが示すディレクトリ内のファイルおよびディレクトリを示すストレージのコレクションを返します。
|
Collection<SharePointStorage> |
listStorages(StorageFilter<SharePointStorage> filter)
このストレージが示すディレクトリにあるファイルおよびディレクトリの中で、指定されたフィルタの基準を満たすもののストレージのコレクションを返します。
|
Collection<SharePointStorage> |
listStorages(StoragenameFilter<SharePointStorage> filter)
このストレージが示すディレクトリにあるファイルおよびディレクトリの中で、指定されたフィルタの基準を満たすもののストレージのコレクションを返します。
|
byte[] |
load()
このストレージの内容をバイト配列で取得します。
|
byte[] |
loadAs(String format)
このストレージが示すファイルを指定した形式で開きます。
|
boolean |
makeDirectories()
このストレージが示すディレクトリを生成します。
|
boolean |
move(CharSequence newPath)
このストレージが示すファイルを移動します。
|
InputStream |
open()
このストレージの入力ストリームを取得します。
|
InputStream |
openAs(String format)
このストレージが示すファイルを指定した形式で開きます。
|
String |
read()
このストレージの内容を標準のキャラセットで変換し文字列で取得します。
|
String |
read(Charset charset)
このストレージの内容を指定されたキャラセットで変換し文字列で取得します。
|
String |
read(String charsetName)
このストレージの内容を指定されたキャラセット名で変換し文字列で取得します。
|
boolean |
remove()
このストレージが示すファイルまたはディレクトリを削除します。
|
boolean |
remove(boolean recursive)
このストレージが示すファイルまたはディレクトリを削除します。
|
SharePointStorage |
resolve(CharSequence other)
このストレージから相対ストレージを返します。
|
void |
save(byte[] byteArray)
バイト配列をこのストレージに書き込みます。
|
String |
toString() |
Map<String,Object> |
updateListItemFields(Map<String,Object> fields)
このストレージが示すファイルに対するリストアイテムのフィールドを更新します。
|
void |
write(CharSequence src)
文字列を標準のキャラセットでこのストレージに書き込みます。
|
void |
write(CharSequence src,
Charset charset)
文字列を指定されたキャラセットでこのストレージに書き込みます。
|
void |
write(CharSequence src,
String charsetName)
文字列を指定されたキャラセット名でこのストレージに書き込みます。
|
public SharePointStorage(String userCd, String providerId, String path)
userCd
- ユーザコードproviderId
- プロバイダIDpath
- パスpublic SharePointStorage(String userCd, String providerId, String sitePath, String path)
userCd
- ユーザコードproviderId
- プロバイダIDsitePath
- サイトパスpath
- パスpublic static Collection<Drive> getDrives(String userCd, String providerId) throws IOException
IOException
public static Collection<Drive> getDrives(String userCd, String providerId, String sitePath) throws IOException
IOException
public OutputStream append() throws IOException
Storage
append
インタフェース内 Storage<SharePointStorage>
IOException
- 出力ストリームの取得に失敗した場合public void append(CharSequence src) throws IOException
Storage
append
インタフェース内 Storage<SharePointStorage>
src
- 文字列IOException
- 追記に失敗した場合public void append(CharSequence src, Charset charset) throws IOException
Storage
append
インタフェース内 Storage<SharePointStorage>
src
- 文字列charset
- キャラセットIOException
- 追記に失敗した場合public void append(CharSequence src, String charsetName) throws IOException
Storage
append
インタフェース内 Storage<SharePointStorage>
src
- 文字列charsetName
- キャラセット名IOException
- 追記に失敗した場合public void clearCache()
public int compareTo(SharePointStorage storage)
compareTo
インタフェース内 Comparable<SharePointStorage>
compareTo
インタフェース内 Storage<SharePointStorage>
storage
- 比較を行うストレージStorage.compareTo(jp.co.intra_mart.foundation.service.client.file.Storage)
public void copy(SharePointStorage to, boolean overwrite) throws HttpRequestException, HttpResponseException, Office365APIResponseException, OAuthClientException, ProviderSettingException, FileNotFoundException, APIOperationException, IOException
getUserCd()
)、プロバイダID(getProviderId()
)、サイトパス(getSitePath()
)がコピー先のそれらと異なる場合:
remove(boolean)
を呼び出した後このメソッドを実行して下さい)copy
インタフェース内 Storage<SharePointStorage>
to
- コピー先overwrite
- trueの場合上書きしますHttpRequestException
- HTTP通信に失敗した場合HttpResponseException
- HTTP通信のレスポンスが不正だった場合Office365APIResponseException
- 操作の失敗を表すOffice365レスポンスが返った場合OAuthClientException
- OAuth関連の処理に失敗した場合ProviderSettingException
- プロバイダ設定が不正だった場合FileNotFoundException
- コピー対象が存在しない場合APIOperationException
- 禁止されている操作が実行された場合IOException
- コピーに失敗した場合public OutputStream create() throws IOException
Storage
create
インタフェース内 Storage<SharePointStorage>
IOException
- 出力ストリームの取得に失敗した場合public long created() throws HttpRequestException, HttpResponseException, Office365APIResponseException, OAuthClientException, ProviderSettingException
HttpRequestException
- HTTP通信に失敗した場合HttpResponseException
- HTTP通信のレスポンスが不正だった場合Office365APIResponseException
- 操作の失敗を表すOffice365レスポンスが返った場合OAuthClientException
- OAuth関連の処理に失敗した場合ProviderSettingException
- プロバイダ設定が不正だった場合public String createdApplicationId() throws HttpRequestException, HttpResponseException, Office365APIResponseException, OAuthClientException, ProviderSettingException
HttpRequestException
- HTTP通信に失敗した場合HttpResponseException
- HTTP通信のレスポンスが不正だった場合Office365APIResponseException
- 操作の失敗を表すOffice365レスポンスが返った場合OAuthClientException
- OAuth関連の処理に失敗した場合ProviderSettingException
- プロバイダ設定が不正だった場合public String createdApplicationName() throws HttpRequestException, HttpResponseException, Office365APIResponseException, OAuthClientException, ProviderSettingException
HttpRequestException
- HTTP通信に失敗した場合HttpResponseException
- HTTP通信のレスポンスが不正だった場合Office365APIResponseException
- 操作の失敗を表すOffice365レスポンスが返った場合OAuthClientException
- OAuth関連の処理に失敗した場合ProviderSettingException
- プロバイダ設定が不正だった場合public String createdUserId() throws HttpRequestException, HttpResponseException, Office365APIResponseException, OAuthClientException, ProviderSettingException
HttpRequestException
- HTTP通信に失敗した場合HttpResponseException
- HTTP通信のレスポンスが不正だった場合Office365APIResponseException
- 操作の失敗を表すOffice365レスポンスが返った場合OAuthClientException
- OAuth関連の処理に失敗した場合ProviderSettingException
- プロバイダ設定が不正だった場合public String createdUserName() throws HttpRequestException, HttpResponseException, Office365APIResponseException, OAuthClientException, ProviderSettingException
HttpRequestException
- HTTP通信に失敗した場合HttpResponseException
- HTTP通信のレスポンスが不正だった場合Office365APIResponseException
- 操作の失敗を表すOffice365レスポンスが返った場合OAuthClientException
- OAuth関連の処理に失敗した場合ProviderSettingException
- プロバイダ設定が不正だった場合public Collection<String> directories() throws HttpRequestException, HttpResponseException, Office365APIResponseException, ProviderSettingException, OAuthClientException, IOException
directories(false)
と動作は一緒です。directories
インタフェース内 Storage<SharePointStorage>
HttpRequestException
- HTTP通信に失敗した場合HttpResponseException
- HTTP通信のレスポンスが不正だった場合Office365APIResponseException
- 操作の失敗を表すOffice365レスポンスが返った場合OAuthClientException
- OAuth関連の処理に失敗した場合ProviderSettingException
- プロバイダ設定が不正だった場合IOException
- 取得に失敗した場合public Collection<String> directories(boolean recursive) throws HttpRequestException, HttpResponseException, Office365APIResponseException, ProviderSettingException, OAuthClientException, IOException
ROOT ┗directory-1 ┗directory-1-1 ┣directory-1-1-1 ┃┣directory-1-1-1-1 ┃┗file-1-1-1-2 ┣directory-1-1-2 ┣file-1-1-3 ┗file-1-1-4上記のようなファイル構成である場合、
directories
インタフェース内 Storage<SharePointStorage>
recursive
- ディレクトリを再帰的に探索する場合は true、そうでない場合は falseHttpRequestException
- HTTP通信に失敗した場合HttpResponseException
- HTTP通信のレスポンスが不正だった場合Office365APIResponseException
- 操作の失敗を表すOffice365レスポンスが返った場合OAuthClientException
- OAuth関連の処理に失敗した場合ProviderSettingException
- プロバイダ設定が不正だった場合IOException
- 取得に失敗した場合public Collection<SharePointStorage> directoriesStorages() throws HttpRequestException, HttpResponseException, Office365APIResponseException, ProviderSettingException, OAuthClientException, IOException
directoriesStorages
インタフェース内 Storage<SharePointStorage>
HttpRequestException
- HTTP通信に失敗した場合HttpResponseException
- HTTP通信のレスポンスが不正だった場合Office365APIResponseException
- 操作の失敗を表すOffice365レスポンスが返った場合OAuthClientException
- OAuth関連の処理に失敗した場合ProviderSettingException
- プロバイダ設定が不正だった場合IOException
- 取得に失敗した場合public Collection<SharePointStorage> directoriesStorages(boolean recursive) throws HttpRequestException, HttpResponseException, Office365APIResponseException, ProviderSettingException, OAuthClientException, IOException
directoriesStorages
インタフェース内 Storage<SharePointStorage>
recursive
- ディレクトリを再帰的に探索する場合は true、そうでない場合は falseHttpRequestException
- HTTP通信に失敗した場合HttpResponseException
- HTTP通信のレスポンスが不正だった場合Office365APIResponseException
- 操作の失敗を表すOffice365レスポンスが返った場合OAuthClientException
- OAuth関連の処理に失敗した場合ProviderSettingException
- プロバイダ設定が不正だった場合IOException
- 取得に失敗した場合public boolean equals(Object obj)
Storage
equals
インタフェース内 Storage<SharePointStorage>
equals
クラス内 Object
obj
- 比較対象の参照オブジェクトpublic boolean exists() throws HttpRequestException, HttpResponseException, Office365APIResponseException, OAuthClientException, ProviderSettingException, IOException
exists
インタフェース内 Storage<SharePointStorage>
HttpRequestException
- HTTP通信に失敗した場合HttpResponseException
- HTTP通信のレスポンスが不正だった場合Office365APIResponseException
- 操作の失敗を表すOffice365レスポンスが返った場合OAuthClientException
- OAuth関連の処理に失敗した場合ProviderSettingException
- プロバイダ設定が不正だった場合IOException
- 判定に失敗した場合public Collection<String> files() throws HttpRequestException, HttpResponseException, Office365APIResponseException, ProviderSettingException, OAuthClientException, IOException
files
インタフェース内 Storage<SharePointStorage>
HttpRequestException
- HTTP通信に失敗した場合HttpResponseException
- HTTP通信のレスポンスが不正だった場合Office365APIResponseException
- 操作の失敗を表すOffice365レスポンスが返った場合OAuthClientException
- OAuth関連の処理に失敗した場合ProviderSettingException
- プロバイダ設定が不正だった場合IOException
- 取得に失敗した場合public Collection<String> files(boolean recursive) throws HttpRequestException, HttpResponseException, Office365APIResponseException, ProviderSettingException, OAuthClientException, IOException
ROOT ┗directory-1 ┗directory-1-1 ┣directory-1-1-1 ┃┣directory-1-1-1-1 ┃┗file-1-1-1-2 ┣directory-1-1-2 ┣file-1-1-3 ┗file-1-1-4上記のようなファイル構成である場合、
files
インタフェース内 Storage<SharePointStorage>
recursive
- ディレクトリを再帰的に探索する場合は true、そうでない場合は falseHttpRequestException
- HTTP通信に失敗した場合HttpResponseException
- HTTP通信のレスポンスが不正だった場合Office365APIResponseException
- 操作の失敗を表すOffice365レスポンスが返った場合OAuthClientException
- OAuth関連の処理に失敗した場合ProviderSettingException
- プロバイダ設定が不正だった場合IOException
- 取得に失敗した場合public Collection<SharePointStorage> filesStorages() throws HttpRequestException, HttpResponseException, Office365APIResponseException, ProviderSettingException, OAuthClientException, IOException
filesStorages
インタフェース内 Storage<SharePointStorage>
HttpRequestException
- HTTP通信に失敗した場合HttpResponseException
- HTTP通信のレスポンスが不正だった場合Office365APIResponseException
- 操作の失敗を表すOffice365レスポンスが返った場合OAuthClientException
- OAuth関連の処理に失敗した場合ProviderSettingException
- プロバイダ設定が不正だった場合IOException
- 取得に失敗した場合public Collection<SharePointStorage> filesStorages(boolean recursive) throws HttpRequestException, HttpResponseException, Office365APIResponseException, ProviderSettingException, OAuthClientException, IOException
filesStorages
インタフェース内 Storage<SharePointStorage>
recursive
- ディレクトリを再帰的に探索する場合は true、そうでない場合は falseHttpRequestException
- HTTP通信に失敗した場合HttpResponseException
- HTTP通信のレスポンスが不正だった場合Office365APIResponseException
- 操作の失敗を表すOffice365レスポンスが返った場合OAuthClientException
- OAuth関連の処理に失敗した場合ProviderSettingException
- プロバイダ設定が不正だった場合IOException
- 取得に失敗した場合public String getCanonicalPath()
Storage
getCanonicalPath
インタフェース内 Storage<SharePointStorage>
@Deprecated public String getContentUrl() throws HttpRequestException, HttpResponseException, Office365APIResponseException, OAuthClientException, ProviderSettingException
open()
を利用してください。HttpRequestException
- HTTP通信に失敗した場合HttpResponseException
- HTTP通信のレスポンスが不正だった場合Office365APIResponseException
- 操作の失敗を表すOffice365レスポンスが返った場合OAuthClientException
- OAuth関連の処理に失敗した場合ProviderSettingException
- プロバイダ設定が不正だった場合public String getDriveId()
public String getId() throws HttpRequestException, HttpResponseException, Office365APIResponseException, OAuthClientException, ProviderSettingException
HttpRequestException
- HTTP通信に失敗した場合HttpResponseException
- HTTP通信のレスポンスが不正だった場合Office365APIResponseException
- 操作の失敗を表すOffice365レスポンスが返った場合OAuthClientException
- OAuth関連の処理に失敗した場合ProviderSettingException
- プロバイダ設定が不正だった場合public Map<String,Object> getListItemFields() throws HttpResponseException, OAuthClientException, ProviderSettingException, HttpRequestException
HttpRequestException
- HTTP通信に失敗した場合HttpResponseException
- HTTP通信のレスポンスが不正だった場合Office365APIResponseException
- 操作の失敗を表すOffice365レスポンスが返った場合OAuthClientException
- OAuth関連の処理に失敗した場合ProviderSettingException
- プロバイダ設定が不正だった場合public String getName()
Storage
getName
インタフェース内 Storage<SharePointStorage>
public String getParent()
Storage
getParent
インタフェース内 Storage<SharePointStorage>
public SharePointStorage getParentStorage()
Storage
getParentStorage
インタフェース内 Storage<SharePointStorage>
public String getPath()
getPath
インタフェース内 Storage<SharePointStorage>
public String getProviderId()
public String getRelativePath(SharePointStorage targetStorage) throws APIOperationException, IOException
getUserCd()
)、プロバイダID(getProviderId()
)、サイトパス(getSitePath()
)がコピー先のそれらと異なる場合:
getRelativePath
インタフェース内 Storage<SharePointStorage>
targetStorage
- 比較対象ストレージAPIOperationException
- 禁止されている操作が実行された場合IOException
- 相対パスの取得に失敗した場合public SharePointStorage getRootStorage()
Storage
getRootStorage
インタフェース内 Storage<SharePointStorage>
public String getSitePath()
public String getUserCd()
public String getWebUrl() throws HttpRequestException, HttpResponseException, Office365APIResponseException, OAuthClientException, ProviderSettingException
HttpRequestException
- HTTP通信に失敗した場合HttpResponseException
- HTTP通信のレスポンスが不正だった場合Office365APIResponseException
- 操作の失敗を表すOffice365レスポンスが返った場合OAuthClientException
- OAuth関連の処理に失敗した場合ProviderSettingException
- プロバイダ設定が不正だった場合public boolean hasCache()
public int hashCode()
Storage
hashCode
インタフェース内 Storage<SharePointStorage>
hashCode
クラス内 Object
public boolean isDirectory() throws HttpRequestException, HttpResponseException, Office365APIResponseException, OAuthClientException, ProviderSettingException
isDirectory
インタフェース内 Storage<SharePointStorage>
HttpRequestException
- HTTP通信に失敗した場合HttpResponseException
- HTTP通信のレスポンスが不正だった場合Office365APIResponseException
- 操作の失敗を表すOffice365レスポンスが返った場合OAuthClientException
- OAuth関連の処理に失敗した場合ProviderSettingException
- プロバイダ設定が不正だった場合public boolean isFile() throws HttpRequestException, HttpResponseException, Office365APIResponseException, OAuthClientException, ProviderSettingException
isFile
インタフェース内 Storage<SharePointStorage>
HttpRequestException
- HTTP通信に失敗した場合HttpResponseException
- HTTP通信のレスポンスが不正だった場合Office365APIResponseException
- 操作の失敗を表すOffice365レスポンスが返った場合OAuthClientException
- OAuth関連の処理に失敗した場合ProviderSettingException
- プロバイダ設定が不正だった場合public long lastModified() throws HttpRequestException, HttpResponseException, Office365APIResponseException, OAuthClientException, ProviderSettingException
lastModified
インタフェース内 Storage<SharePointStorage>
HttpRequestException
- HTTP通信に失敗した場合HttpResponseException
- HTTP通信のレスポンスが不正だった場合Office365APIResponseException
- 操作の失敗を表すOffice365レスポンスが返った場合OAuthClientException
- OAuth関連の処理に失敗した場合ProviderSettingException
- プロバイダ設定が不正だった場合public String lastModifiedApplicationId() throws HttpRequestException, HttpResponseException, Office365APIResponseException, OAuthClientException, ProviderSettingException
HttpRequestException
- HTTP通信に失敗した場合HttpResponseException
- HTTP通信のレスポンスが不正だった場合Office365APIResponseException
- 操作の失敗を表すOffice365レスポンスが返った場合OAuthClientException
- OAuth関連の処理に失敗した場合ProviderSettingException
- プロバイダ設定が不正だった場合public String lastModifiedApplicationName() throws HttpRequestException, HttpResponseException, Office365APIResponseException, OAuthClientException, ProviderSettingException
HttpRequestException
- HTTP通信に失敗した場合HttpResponseException
- HTTP通信のレスポンスが不正だった場合Office365APIResponseException
- 操作の失敗を表すOffice365レスポンスが返った場合OAuthClientException
- OAuth関連の処理に失敗した場合ProviderSettingException
- プロバイダ設定が不正だった場合public String lastModifiedUserId() throws HttpRequestException, HttpResponseException, Office365APIResponseException, OAuthClientException, ProviderSettingException
HttpRequestException
- HTTP通信に失敗した場合HttpResponseException
- HTTP通信のレスポンスが不正だった場合Office365APIResponseException
- 操作の失敗を表すOffice365レスポンスが返った場合OAuthClientException
- OAuth関連の処理に失敗した場合ProviderSettingException
- プロバイダ設定が不正だった場合public String lastModifiedUserName() throws HttpRequestException, HttpResponseException, Office365APIResponseException, OAuthClientException, ProviderSettingException
HttpRequestException
- HTTP通信に失敗した場合HttpResponseException
- HTTP通信のレスポンスが不正だった場合Office365APIResponseException
- 操作の失敗を表すOffice365レスポンスが返った場合OAuthClientException
- OAuth関連の処理に失敗した場合ProviderSettingException
- プロバイダ設定が不正だった場合public long length() throws HttpRequestException, HttpResponseException, Office365APIResponseException, OAuthClientException, ProviderSettingException
length
インタフェース内 Storage<SharePointStorage>
HttpRequestException
- HTTP通信に失敗した場合HttpResponseException
- HTTP通信のレスポンスが不正だった場合Office365APIResponseException
- 操作の失敗を表すOffice365レスポンスが返った場合OAuthClientException
- OAuth関連の処理に失敗した場合ProviderSettingException
- プロバイダ設定が不正だった場合public Collection<String> list() throws HttpRequestException, HttpResponseException, Office365APIResponseException, ProviderSettingException, OAuthClientException, IOException
list(false)
と動作は一緒です。list
インタフェース内 Storage<SharePointStorage>
HttpRequestException
- HTTP通信に失敗した場合HttpResponseException
- HTTP通信のレスポンスが不正だった場合Office365APIResponseException
- 操作の失敗を表すOffice365レスポンスが返った場合OAuthClientException
- OAuth関連の処理に失敗した場合ProviderSettingException
- プロバイダ設定が不正だった場合IOException
- 取得に失敗した場合public Collection<String> list(boolean recursive) throws HttpRequestException, HttpResponseException, Office365APIResponseException, ProviderSettingException, OAuthClientException, IOException
ROOT ┗directory-1 ┗directory-1-1 ┣directory-1-1-1 ┃┣directory-1-1-1-1 ┃┗file-1-1-1-2 ┣directory-1-1-2 ┣file-1-1-3 ┗file-1-1-4上記のようなファイル構成である場合、
list
インタフェース内 Storage<SharePointStorage>
recursive
- ディレクトリを再帰的に探索する場合は true、そうでない場合は falseHttpRequestException
- HTTP通信に失敗した場合HttpResponseException
- HTTP通信のレスポンスが不正だった場合Office365APIResponseException
- 操作の失敗を表すOffice365レスポンスが返った場合OAuthClientException
- OAuth関連の処理に失敗した場合ProviderSettingException
- プロバイダ設定が不正だった場合IOException
- 取得に失敗した場合public Collection<String> list(StoragenameFilter<SharePointStorage> filter) throws HttpRequestException, HttpResponseException, Office365APIResponseException, ProviderSettingException, OAuthClientException, IOException
list
インタフェース内 Storage<SharePointStorage>
filter
- ファイル名フィルタHttpRequestException
- HTTP通信に失敗した場合HttpResponseException
- HTTP通信のレスポンスが不正だった場合Office365APIResponseException
- 操作の失敗を表すOffice365レスポンスが返った場合OAuthClientException
- OAuth関連の処理に失敗した場合ProviderSettingException
- プロバイダ設定が不正だった場合IOException
- 取得に失敗した場合public Collection<SharePointStorage> listStorages() throws HttpRequestException, HttpResponseException, Office365APIResponseException, ProviderSettingException, OAuthClientException, IOException
listStorages
インタフェース内 Storage<SharePointStorage>
HttpRequestException
- HTTP通信に失敗した場合HttpResponseException
- HTTP通信のレスポンスが不正だった場合Office365APIResponseException
- 操作の失敗を表すOffice365レスポンスが返った場合OAuthClientException
- OAuth関連の処理に失敗した場合ProviderSettingException
- プロバイダ設定が不正だった場合IOException
- 取得に失敗した場合public Collection<SharePointStorage> listStorages(boolean recursive) throws HttpRequestException, HttpResponseException, Office365APIResponseException, ProviderSettingException, OAuthClientException, IOException
listStorages
インタフェース内 Storage<SharePointStorage>
recursive
- ディレクトリを再帰的に探索する場合は true、そうでない場合は falseHttpRequestException
- HTTP通信に失敗した場合HttpResponseException
- HTTP通信のレスポンスが不正だった場合Office365APIResponseException
- 操作の失敗を表すOffice365レスポンスが返った場合OAuthClientException
- OAuth関連の処理に失敗した場合ProviderSettingException
- プロバイダ設定が不正だった場合IOException
- 取得に失敗した場合public Collection<SharePointStorage> listStorages(StorageFilter<SharePointStorage> filter) throws HttpRequestException, HttpResponseException, Office365APIResponseException, ProviderSettingException, OAuthClientException, IOException
listStorages
インタフェース内 Storage<SharePointStorage>
filter
- ファイルフィルタHttpRequestException
- HTTP通信に失敗した場合HttpResponseException
- HTTP通信のレスポンスが不正だった場合Office365APIResponseException
- 操作の失敗を表すOffice365レスポンスが返った場合OAuthClientException
- OAuth関連の処理に失敗した場合ProviderSettingException
- プロバイダ設定が不正だった場合IOException
- 取得に失敗した場合public Collection<SharePointStorage> listStorages(StoragenameFilter<SharePointStorage> filter) throws HttpRequestException, HttpResponseException, Office365APIResponseException, ProviderSettingException, OAuthClientException, IOException
listStorages
インタフェース内 Storage<SharePointStorage>
filter
- ファイル名フィルタHttpRequestException
- HTTP通信に失敗した場合HttpResponseException
- HTTP通信のレスポンスが不正だった場合Office365APIResponseException
- 操作の失敗を表すOffice365レスポンスが返った場合OAuthClientException
- OAuth関連の処理に失敗した場合ProviderSettingException
- プロバイダ設定が不正だった場合IOException
- 取得に失敗した場合public byte[] load() throws IOException
Storage
load
インタフェース内 Storage<SharePointStorage>
IOException
- 取得に失敗した場合public byte[] loadAs(String format) throws IOException
format
- フォーマットIOException
- 出力に失敗した場合public boolean makeDirectories() throws HttpRequestException, HttpResponseException, Office365APIResponseException, APIOperationException, OAuthClientException, ProviderSettingException, IOException
makeDirectories
インタフェース内 Storage<SharePointStorage>
HttpRequestException
- HTTP通信に失敗した場合HttpResponseException
- HTTP通信のレスポンスが不正だった場合Office365APIResponseException
- 操作の失敗を表すOffice365レスポンスが返った場合OAuthClientException
- OAuth関連の処理に失敗した場合APIOperationException
- 禁止されている操作が行われた場合ProviderSettingException
- プロバイダ設定が不正だった場合IOException
- 作成に失敗した場合public boolean move(CharSequence newPath) throws HttpRequestException, HttpResponseException, Office365APIResponseException, APIOperationException, OAuthClientException, ProviderSettingException, FileNotFoundException, IOException
move
インタフェース内 Storage<SharePointStorage>
newPath
- このストレージの新しいパスHttpRequestException
- HTTP通信に失敗した場合HttpResponseException
- HTTP通信のレスポンスが不正だった場合Office365APIResponseException
- 操作の失敗を表すOffice365レスポンスが返った場合OAuthClientException
- OAuth関連の処理に失敗した場合ProviderSettingException
- プロバイダ設定が不正だった場合FileNotFoundException
- コピー対象が存在しない場合APIOperationException
- 禁止されている操作が実行された場合IOException
- 移動に失敗した場合public InputStream open() throws IOException
Storage
open
インタフェース内 Storage<SharePointStorage>
IOException
- 入力ストリームの取得に失敗した場合public InputStream openAs(String format) throws IOException
format
- フォーマットIOException
- 出力に失敗した場合public String read() throws IOException
Storage
read
インタフェース内 Storage<SharePointStorage>
IOException
- 取得に失敗した場合public String read(Charset charset) throws IOException
Storage
read
インタフェース内 Storage<SharePointStorage>
charset
- キャラセットIOException
- 取得に失敗した場合public String read(String charsetName) throws IOException
Storage
read
インタフェース内 Storage<SharePointStorage>
charsetName
- キャラセット名IOException
- 取得に失敗した場合public boolean remove() throws HttpRequestException, HttpResponseException, Office365APIResponseException, APIOperationException, OAuthClientException, ProviderSettingException, IOException
remove
インタフェース内 Storage<SharePointStorage>
HttpRequestException
- HTTP通信に失敗した場合HttpResponseException
- HTTP通信のレスポンスが不正だった場合Office365APIResponseException
- 操作の失敗を表すOffice365レスポンスが返った場合OAuthClientException
- OAuth関連の処理に失敗した場合APIOperationException
- 禁止されている操作が行われた場合ProviderSettingException
- プロバイダ設定が不正だった場合IOException
- 削除に失敗した場合public boolean remove(boolean recursive) throws HttpRequestException, HttpResponseException, Office365APIResponseException, APIOperationException, OAuthClientException, ProviderSettingException, IOException
remove
インタフェース内 Storage<SharePointStorage>
recursive
- 再帰的に削除する場合はtrueを指定してくださいHttpRequestException
- HTTP通信に失敗した場合HttpResponseException
- HTTP通信のレスポンスが不正だった場合Office365APIResponseException
- 操作の失敗を表すOffice365レスポンスが返った場合OAuthClientException
- OAuth関連の処理に失敗した場合APIOperationException
- 禁止されている操作が行われた場合ProviderSettingException
- プロバイダ設定が不正だった場合IOException
- 削除に失敗した場合public SharePointStorage resolve(CharSequence other) throws IOException
Storage
resolve
インタフェース内 Storage<SharePointStorage>
other
- このストレージからの相対パスIOException
- 相対ストレージの取得に失敗した場合public void save(byte[] byteArray) throws IOException
Storage
save
インタフェース内 Storage<SharePointStorage>
byteArray
- バイト配列IOException
- 書き込みに失敗した場合public Map<String,Object> updateListItemFields(Map<String,Object> fields) throws HttpResponseException, OAuthClientException, ProviderSettingException, HttpRequestException
HttpRequestException
- HTTP通信に失敗した場合HttpResponseException
- HTTP通信のレスポンスが不正だった場合Office365APIResponseException
- 操作の失敗を表すOffice365レスポンスが返った場合OAuthClientException
- OAuth関連の処理に失敗した場合ProviderSettingException
- プロバイダ設定が不正だった場合public void write(CharSequence src) throws IOException
Storage
write
インタフェース内 Storage<SharePointStorage>
src
- 文字列IOException
- 書き込みに失敗した場合public void write(CharSequence src, Charset charset) throws IOException
Storage
write
インタフェース内 Storage<SharePointStorage>
src
- 文字列charset
- キャラセットIOException
- 書き込みに失敗した場合public void write(CharSequence src, String charsetName) throws IOException
Storage
write
インタフェース内 Storage<SharePointStorage>
src
- 文字列charsetName
- キャラセット名IOException
- 書き込みに失敗した場合Copyright © 2012 NTT DATA INTRAMART CORPORATION