public class DBFileStoreVolume extends DBObject
DBObject.DenormalizeAction
Modifier and Type | Field and Description |
---|---|
static GlobalId |
DBCLASS_GID
Represents a storage volume for a file store.
|
static java.lang.String |
DBCLASS_NAME
Represents a storage volume for a file store.
|
static java.lang.String |
LOCAL_DOC_PATH
LOCAL doc store directory path
|
static java.lang.String |
MASTER_DOC_URL
the master doc URL
|
static java.lang.ThreadLocal<java.lang.Integer> |
THREAD_DEFAULT_SORT_ORDER |
ATTRIBUTE_MARVIN, dbClass, ds, NO_LOOP_PARAMS
Constructor and Description |
---|
DBFileStoreVolume(DBClass def,
DataSource dataSource)
Std.
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkDefaultFolders()
Checks that the admin login and user login have the same default folder.
|
protected void |
clearCache(GlobalKey key)
change the clear cache of the URLs.
|
static DBFileStoreVolume |
create(MutableDataSource mds)
Make a new instance of this class.
|
protected void |
eventFieldUpdated(DBField field,
java.lang.Object previous,
GlobalKey previousKey,
FldParams params)
Additional business logic when a field is updated.
|
protected java.lang.Object |
extGetDerivedValue(DBField field,
FldParams params)
Calculate the derived value for this field.
|
protected void |
extPreValidate()
Before validation of the record.
|
protected ValidationError |
extValidateField(DBField field,
ValidationList list)
Extended field level validation
|
protected void |
extValidateRecord(ValidationList list)
Performs additional validations on this record.
|
static DBFileStoreVolume |
findKey(DataSource ds,
int key)
Find the target for this class by the primary key
|
DBFileStore |
findStore(java.lang.String... args)
The FileStore that this volume is on.
|
DBSystemPropertyMatch |
findSystemProperty(java.lang.String... args)
To check if environment variable is set.
|
java.lang.String |
getAdminLogin(java.lang.String... args) |
java.lang.String |
getAdminPassword(java.lang.String... args) |
java.lang.String |
getDetails(java.lang.String... args) |
java.lang.String |
getFolder(java.lang.String... args) |
java.lang.String |
getFullName(java.lang.String... args) |
int |
getID(java.lang.String... args) |
java.lang.String |
getName(java.lang.String... args) |
java.lang.String |
getServerUrl(java.lang.String... args) |
DBFileStore |
getStore(java.lang.String... args) |
DBSystemPropertyMatch |
getSystemProperty(java.lang.String... args) |
java.lang.String |
getURI(boolean requireAdminURI)
get the URL
|
java.lang.String |
getURLs(boolean requireAdminURL,
boolean haMode,
int layerID) |
java.lang.String |
getUserLogin(java.lang.String... args) |
java.lang.String |
getUserPassword(java.lang.String... args) |
boolean |
isActive(java.lang.String... args) |
boolean |
isDisabled(java.lang.String... args) |
boolean |
isReadOnly(java.lang.String... args) |
boolean |
isSetUp()
Checks that the volume is set up, will try to set it up if it isn't
|
static DBQuery<DBFileStoreVolume> |
makeQuery(DataSource ds)
Make a new QUERY for this class.
|
DBFileStoreVolume |
setAdminLogin(java.lang.String value,
java.lang.String... args) |
DBFileStoreVolume |
setAdminPassword(java.lang.String value,
java.lang.String... args) |
DBFileStoreVolume |
setDetails(java.lang.String value,
java.lang.String... args) |
DBFileStoreVolume |
setDisabled(boolean value,
java.lang.String... args) |
DBFileStoreVolume |
setFolder(java.lang.String value,
java.lang.String... args) |
DBFileStoreVolume |
setID(int value,
java.lang.String... args) |
DBFileStoreVolume |
setName(java.lang.String value,
java.lang.String... args) |
DBFileStoreVolume |
setReadOnly(boolean value,
java.lang.String... args) |
DBFileStoreVolume |
setServerUrl(java.lang.String value,
java.lang.String... args) |
DBFileStoreVolume |
setSetUp(boolean value,
java.lang.String... args) |
void |
setSortOrder(int order)
Change the sort order of the URLs so that we can determine which URL will
be used if there is a number of them.
|
DBFileStoreVolume |
setStore(com.aspc.dal.file.DBFileStore value,
java.lang.String... args) |
DBFileStoreVolume |
setSystemProperty(com.aspc.dal.dbobj.misc.DBSystemPropertyMatch value,
java.lang.String... args) |
DBFileStoreVolume |
setUserLogin(java.lang.String value,
java.lang.String... args) |
DBFileStoreVolume |
setUserPassword(java.lang.String value,
java.lang.String... args) |
addReloadEventListener, archiveCheck, autoEnterCreate, calculateValue, calculateValue, calculateValue, callingRestoreByJournal, changeThreadMode, checkCreateAccess, checkDelete, checkDeleteAccess, checkModifyAccess, checkModifyAccess, checkReadAccess, copy, copyFields, copyIncludeField, copyInwardLinks, delete, denormalizedResult, displayLogName, displayName, displayValue, doSearch, dump, equals, eventDataLoaded, extAutoEnterCreate, extCanDeleteDependantObject, extCheckCreateAccess, extCheckDeleteAccess, extCheckModifyAccess, extCheckModifyAccess, extCheckReadAccess, extCopy, extDelete, extDeleteRecord, extFixUp, extGetDerivedGlobalKey, extGetValue, extIsMandatory, extIsOnChange, extMarkSavePoint, extPostDeleteRecord, extPostSaveRecord, extPreDeleteRecord, extPreSaveRecord, extPreValidateDelete, extRaiseEvents, extRollbackTo, extSaveRecord, extSetValue, extUndelete, extValidateDelete, fetchLinkHolder, findGlobalKey, findGlobalKey, findGlobalKey, findGlobalKey, findLinkedObject, findLinkedObject, findLinkedObject, findRawData, fireEventDataLoaded, fixUp, forceLockedTransaction, getBoolean, getBoolean, getBoolean, getBoolean, getBoolean, getBoolean, getChangedFieldInfo, getChangedFields, getDate, getDate, getDate, getDate, getDate, getDefaultValue, getDisableOnChangeEvent, getDouble, getDouble, getDouble, getDouble, getDouble, getFieldDouble, getFieldInt, getFieldLong, getFieldString, getFormattedString, getFormattedString, getGlobalKey, getGlobalKey, getGlobalKey, getGlobalKey, getGlobalKey, getInt, getInt, getInt, getInt, getInt, getInt, getInwardLinkage, getKeyString, getKeyValue, getLinkedObject, getLinkedObject, getLinkedObject, getLinkedObjectByKey, getLinkedRowId, getLinkedRowId, getLinkedRowIdByData, getLinkHolder, getLockedTransaction, getLong, getLong, getLong, getLong, getLong, getLong, getMutableArrayValue, getMutableArrayValue, getOriginalKey, getOriginalValue, getOriginalValue, getProcessedValue, getPureValue, getRawData, getRawValue, getRawValue, getRowId, getRowKey, getSecondaryCacheGroupKey, getSrcLayerID, getString, getString, getString, getString, getString, getString, getValue, getValue, getValue, getValue, hasAutoChanged, hasAutoChanged, hasChanged, hasChangedByUser, hasChangedByUserField, hasChangedByUserField, hasFieldChanged, hasFieldChanged, hashCode, hasStoredResult, iCheckDeleteAccess, iCheckModifyAccess, iCheckReadAccess, iGetDenormalizedMap, iGetRawValue, iPlaceDenormalizedResult, iPostSaveOrDeleteRecord, iPreSaveOrDeleteRecord, iPreValidate, iRaiseEvents, iSaveOrDeleteRecord, isBrokenLink, isBrokenLink, isChanged, isDataCacheKnownToBeDirty, isDeleted, isEmpty, iSetValue, isForceReindex, isKeyWordField, isMandatory, isNew, isNull, isNull, isOnChange, isReindex, iValidateRecord, lastTouched, makeArchiveDataLoader, makeClone, makeDataLoader, makeDenormalizedDoc, makeLinkedArray, makeModifyAccessException, makeSearchPlan, makeWriteProvider, manualDenormalizeOnSave, markSavePoint, optLockedTransaction, registerWatchedObject, reindex, releaseDenormalized, removeReloadEventListener, restoreByJournal, rollbackTo, setBoolean, setBoolean, setBoolean, setBoolean, setDisableOnChangeEvent, setDouble, setDouble, setInt, setInt, setLong, setLong, setRawData, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, toString, touch, undelete, validateField, validateRecord, validateSubType
public static final java.lang.String DBCLASS_NAME
public static final GlobalId DBCLASS_GID
public static final java.lang.ThreadLocal<java.lang.Integer> THREAD_DEFAULT_SORT_ORDER
public static final java.lang.String MASTER_DOC_URL
public static final java.lang.String LOCAL_DOC_PATH
public DBFileStoreVolume(DBClass def, DataSource dataSource) throws java.lang.Exception
def
- The class of this objectdataSource
- The datasource for this objectjava.lang.Exception
- A serious problem occurred@CheckReturnValue public int getID(java.lang.String... args)
@Nonnull public DBFileStoreVolume setID(int value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean isActive(java.lang.String... args)
@CheckReturnValue @Nonnull public java.lang.String getAdminLogin(java.lang.String... args)
@Nonnull public DBFileStoreVolume setAdminLogin(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getAdminPassword(java.lang.String... args)
@Nonnull public DBFileStoreVolume setAdminPassword(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getDetails(java.lang.String... args)
@Nonnull public DBFileStoreVolume setDetails(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean isDisabled(java.lang.String... args)
@Nonnull public DBFileStoreVolume setDisabled(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getFolder(java.lang.String... args)
@Nonnull public DBFileStoreVolume setFolder(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getFullName(java.lang.String... args)
@Nonnull public DBFileStoreVolume setSetUp(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getName(java.lang.String... args)
@Nonnull public DBFileStoreVolume setName(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean isReadOnly(java.lang.String... args)
@Nonnull public DBFileStoreVolume setReadOnly(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getServerUrl(java.lang.String... args)
@Nonnull public DBFileStoreVolume setServerUrl(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public DBFileStore getStore(java.lang.String... args)
@CheckReturnValue @Nonnull public final DBFileStore findStore(java.lang.String... args) throws NotFoundException
DBFileStore
(String,
Mandatory, Searchable)args
- the optional argumentsNotFoundException
- DBFileStore was not found@Nonnull public DBFileStoreVolume setStore(com.aspc.dal.file.DBFileStore value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public DBSystemPropertyMatch getSystemProperty(java.lang.String... args)
@CheckReturnValue @Nonnull public final DBSystemPropertyMatch findSystemProperty(java.lang.String... args) throws NotFoundException
DBSystemPropertyMatch
(String, Searchable)args
- the optional argumentsNotFoundException
- DBSystemPropertyMatch was not found@Nonnull public DBFileStoreVolume setSystemProperty(com.aspc.dal.dbobj.misc.DBSystemPropertyMatch value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getUserLogin(java.lang.String... args)
@Nonnull public DBFileStoreVolume setUserLogin(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getUserPassword(java.lang.String... args)
@Nonnull public DBFileStoreVolume setUserPassword(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@Nonnull @CheckReturnValue public static DBFileStoreVolume create(@Nonnull MutableDataSource mds) throws java.lang.Exception
mds
- the datasourcejava.lang.Exception
- an object of this class could not be created@Nonnull @CheckReturnValue public static DBQuery<DBFileStoreVolume> makeQuery(@Nonnull DataSource ds) throws NotFoundException
ds
- the datasourceNotFoundException
- if class could not be found@Nonnull @CheckReturnValue public static DBFileStoreVolume findKey(@Nonnull DataSource ds, int key) throws NotFoundException, java.lang.Exception
ds
- the datasourcekey
- the valueNotFoundException
- if target could not be foundjava.lang.Exception
- a serious problempublic void setSortOrder(int order)
order
- The new order to use.@OverridingMethodsMustInvokeSuper protected void eventFieldUpdated(@Nonnull DBField field, @Nullable java.lang.Object previous, @Nullable GlobalKey previousKey, @Nullable FldParams params) throws java.lang.Exception
eventFieldUpdated
in class DBObject
field
- The field updatedprevious
- The previous value for this field.previousKey
- The previous keyparams
- The parameters usedjava.lang.Exception
- A serious problemDBObject.eventFieldUpdated( DBField, Object, GlobalKey, FldParams)
@OverridingMethodsMustInvokeSuper protected void clearCache(@Nullable GlobalKey key)
clearCache
in class DBObject
key
- The global key of this record.@CheckReturnValue @Nonnull public java.lang.String getURLs(boolean requireAdminURL, boolean haMode, int layerID) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue protected java.lang.Object extGetDerivedValue(@Nonnull DBField field, @Nullable FldParams params) throws java.lang.Exception
extGetDerivedValue
in class DBObject
params
- The parameters for this field eg. language= or default=field
- The field to getjava.lang.Exception
- a serious problem@OverridingMethodsMustInvokeSuper protected void extPreValidate() throws java.lang.Exception
extPreValidate
in class DBObject
java.lang.Exception
- pre validation failure@OverridingMethodsMustInvokeSuper protected void extValidateRecord(@Nonnull ValidationList list) throws java.lang.Exception
extValidateRecord
in class DBObject
list
- The validation list.java.lang.Exception
- A serious problem@CheckReturnValue @OverridingMethodsMustInvokeSuper @Nullable protected ValidationError extValidateField(@Nonnull DBField field, @Nonnull ValidationList list) throws java.lang.Exception
extValidateField
in class DBObject
field
- the field to validatelist
- the list of validation errorsjava.lang.Exception
- a serious problem@CheckReturnValue public boolean isSetUp() throws java.lang.Exception
java.lang.Exception
- if the urls cannot be found for the volume@CheckReturnValue @Nonnull public java.lang.String getURI(boolean requireAdminURI)
requireAdminURI
- The admin URL is required@CheckReturnValue public boolean checkDefaultFolders() throws java.lang.Exception
java.lang.Exception
- a serious problemstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.