public interface Container extends ObjectStoreEntity, java.lang.Comparable<Container>, ListHolder<StoredObject>, ListSubject
exists which
places a call to the Object Store for its information. To ascertain the creation of a Container, call its
create method. By calling delete, the Container is removed from the Object
Store. Containers start out as private, which means that the StoredObjects in the Container can not be accessed
through the public URL. Set the Container to public to be able to do this. It is also important to understand
that getObject does not create an StoredObject, or otherwise place a call to the Object
Store. It just returns a handle for a StoredObject.| Modifier and Type | Method and Description |
|---|---|
Container |
create()
Creates a Container in the Account.
|
void |
delete()
Deletes a Container from the Account.
|
boolean |
exists()
Checks whether a container exists
|
Account |
getAccount() |
long |
getBytesUsed()
The number of bytes stored by the StoredObjects in the Container.
|
java.lang.String |
getContainerReadPermission() |
java.lang.String |
getcontainerWritePermission() |
int |
getCount()
The number of StoredObjects in the Container.
|
java.util.Collection<Header> |
getCustomHeaders()
Gets the custom headers on this container.
|
FormPost |
getFormPost(java.lang.String redirect,
long maxFileSize,
long maxFileCount,
long seconds)
Returns a signature that can be used to upload files directly from the browser, using a basic form
element.
|
StoredObject |
getObject(java.lang.String name)
Returns a handle for an object.
|
StoredObject |
getObjectSegment(java.lang.String name,
int part)
Returns an object that represents a segment of a single large object
|
boolean |
isInfoRetrieved()
Returns whether the metadata of the container has been retrieved
|
boolean |
isPublic() |
java.util.Collection<DirectoryOrObject> |
listDirectory()
Reads all directories and object in the root of a container
|
java.util.Collection<DirectoryOrObject> |
listDirectory(Directory directory)
Reads a directory within the passed directory
|
java.util.Collection<DirectoryOrObject> |
listDirectory(java.lang.String prefix,
java.lang.Character delimiter,
java.lang.String marker,
int pageSize)
Returns a number equal to pageSize of Container elements, starting with the first element
after the Container named the same as marker.
|
void |
makePrivate()
Takes a single Container and makes it private.
|
void |
makePublic()
Takes a single Container and makes it public.
|
void |
reload()
Force the Account to reload its metadata
|
void |
setBytesUsed(long bytesUsed) |
void |
setContainerRights(java.lang.String writePermissions,
java.lang.String readPermissions) |
void |
setCount(int count) |
void |
setCustomHeaders(java.util.Collection<Header> headers)
Sets custom headers to be passed when creating a container.
|
getMetadata, getMetadata, getPath, removeAndDoNotSaveMetadata, removeAndSaveMetadata, saveMetadata, setAndDoNotSaveMetadata, setAndSaveMetadata, setMetadatagetMaxPageSize, getPaginationMap, getPaginationMap, list, list, listgetName, metadataSetFromHeadersvoid makePublic()
void makePrivate()
Container create()
void delete()
boolean exists()
StoredObject getObject(java.lang.String name)
name - name of the object to create a handle forStoredObject getObjectSegment(java.lang.String name, int part)
name - the name of the object to create a handle forpart - the part of the large object that the segment representsboolean isInfoRetrieved()
void reload()
int getCount()
getCount in interface ListHolder<StoredObject>long getBytesUsed()
FormPost getFormPost(java.lang.String redirect, long maxFileSize, long maxFileCount, long seconds)
redirect - redirection URL after the upload has succeededmaxFileSize - max number of bytes allowed to uploadmaxFileCount - max number of files allowed to uploadseconds - number of seconds for the temporary URL to be validjava.util.Collection<DirectoryOrObject> listDirectory(java.lang.String prefix, java.lang.Character delimiter, java.lang.String marker, int pageSize)
prefix - show only the results starting with prefixdelimiter - limit the results on encountering the delimiter character (probably a slash)marker - the last element on the previous pagepageSize - the number of elements to returnjava.util.Collection<DirectoryOrObject> listDirectory(Directory directory)
directory - the directory to readjava.util.Collection<DirectoryOrObject> listDirectory()
boolean isPublic()
void setCount(int count)
void setBytesUsed(long bytesUsed)
Account getAccount()
void setContainerRights(java.lang.String writePermissions,
java.lang.String readPermissions)
java.lang.String getContainerReadPermission()
java.lang.String getcontainerWritePermission()
void setCustomHeaders(java.util.Collection<Header> headers)
headers - the set of headers to pass in the create request.java.util.Collection<Header> getCustomHeaders()
Copyright © 2012-2020 42 BV. All Rights Reserved.