|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Container
A Container is the entity that holds StoredObjects. This handle allows you to access those objects and set/get
information on the container itself. To make sure a Container exists, you can call 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.
Method Summary | |
---|---|
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. |
String |
getContainerReadPermission()
|
String |
getcontainerWritePermission()
|
int |
getCount()
The number of StoredObjects in the Container. |
FormPost |
getFormPost(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(String name)
Returns a handle for an object. |
StoredObject |
getObjectSegment(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()
|
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(String writePermissions,
String readPermissions)
|
void |
setCount(int count)
|
Methods inherited from interface org.javaswift.joss.model.ObjectStoreEntity |
---|
getMetadata, getMetadata, getPath, removeAndDoNotSaveMetadata, removeAndSaveMetadata, saveMetadata, setAndDoNotSaveMetadata, setAndSaveMetadata, setMetadata |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Methods inherited from interface org.javaswift.joss.model.ListHolder |
---|
getMaxPageSize, getPaginationMap, getPaginationMap, list, list, list |
Methods inherited from interface org.javaswift.joss.model.ListSubject |
---|
getName, metadataSetFromHeaders |
Method Detail |
---|
void makePublic()
void makePrivate()
Container create()
void delete()
boolean exists()
StoredObject getObject(String name)
name
- name of the object to create a handle for
StoredObject getObjectSegment(String name, int part)
name
- the name of the object to create a handle forpart
- the part of the large object that the segment represents
boolean isInfoRetrieved()
void reload()
int getCount()
getCount
in interface ListHolder<StoredObject>
long getBytesUsed()
FormPost getFormPost(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 valid
boolean isPublic()
void setCount(int count)
void setBytesUsed(long bytesUsed)
Account getAccount()
void setContainerRights(String writePermissions, String readPermissions)
String getContainerReadPermission()
String getcontainerWritePermission()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |