public class BucketInfo extends Object
Most of this is taken from storage.buckets.[bucketName] from the system config.
Modifier | Constructor and Description |
---|---|
protected |
BucketInfo(sirius.kernel.settings.Extension extension)
Creates a new bucket info based on the given config section.
|
Modifier and Type | Method and Description |
---|---|
int |
getDeleteFilesAfterDays()
Determines the number of days after which objects are automatically deleted.
|
String |
getDescription()
Returns the description of the bucket.
|
PhysicalStorageEngine |
getEngine()
Determines the
PhysicalStorageEngine used to store objects within this bucket. |
String |
getName()
Returns the (technical) name of the bucket.
|
long |
getNumberOfObjects()
Counts the total number of objects in this bucket.
|
String |
getPermission()
Returns the permission required to access the contents of this bucket.
|
boolean |
isAlwaysUseLikeSearch()
Determines if searching in a bucket always uses a like on search.
|
boolean |
isCanCreate()
Determines if a user can create new objects in this bucket.
|
boolean |
isCanDelete()
Determines if a user can delete objects within this bucket.
|
boolean |
isCanEdit()
Determines if a user can edit objects within this bucket.
|
boolean |
isShowPublicURLs()
Determines if publicly accessible URLs should be displayed in the backend.
|
protected BucketInfo(sirius.kernel.settings.Extension extension)
extension
- the config section holding the bucket infospublic long getNumberOfObjects()
public String getName()
public String getDescription()
public String getPermission()
public boolean isCanCreate()
public boolean isCanEdit()
public boolean isCanDelete()
public boolean isAlwaysUseLikeSearch()
public boolean isShowPublicURLs()
public int getDeleteFilesAfterDays()
This is used for "self organizing" buckets, which automatically drain old data.
public PhysicalStorageEngine getEngine()
PhysicalStorageEngine
used to store objects within this bucket.Copyright © 2018. All rights reserved.