|
|||||||||
| Home >> All >> com >> flexstor >> common >> data >> ejb >> [ disguiserecord overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.flexstor.common.data.ejb.disguiserecord
Class DisguiseAssetRecordData

java.lang.Objectcom.flexstor.common.data.ejb.Data
com.flexstor.common.data.ejb.disguiserecord.GenericBucketRecordData
com.flexstor.common.data.ejb.disguiserecord.DisguiseAssetRecordData
- All Implemented Interfaces:
- java.io.Serializable
- public class DisguiseAssetRecordData
- extends GenericBucketRecordData
AssetRecord is a class that encapsulates the data for an asset (file) to be imported into the database
| Field Summary | |
protected AssetRoleData |
assetRole
The specific asset role object ( HIGHRES, THUMBNAIL, AUDIO, VIDEO, etc. |
protected boolean |
bCheckedOut
Checked out value (during import, it should be false) |
protected boolean |
bCopySource
True if this asset was copied to a new location during an ImportCopyService. |
protected boolean |
bDefaultView
Mark this asset as a default view for others. |
protected java.util.Date |
dFileDate
Date this file was created or last modified |
protected java.util.Date |
dReceived
Date this file is received into the system. |
protected com.flexstor.common.util.FlexHashtable |
htProperties
Holds values for properties needed along services. |
protected com.flexstor.common.util.FlexHashtable |
hUserData
Holds values for user defined fields. |
protected int |
nArchiveStatus
The archive status (default to zero - online) |
protected long |
nDefaultViewAssetId
Holds the asset id of the default view asset for this asset. |
protected long |
nFileSize
Size (in bytes) of this File |
protected int |
nHistoryId
History of this asset. |
protected DisguiseAssetRecordData |
parentAsset
The parent of this asset if this is a child asset. |
protected java.lang.String |
sContextProtocol
Protocol used for Context Service (either HTTP or FILE) |
protected java.lang.String |
sCopySourceFileName
Original name of the file represented by this asset before an ImportCopyService (if called). |
protected java.lang.String |
sCopySourceLocation
Original path of the file represented by this asset before an ImportCopyService (if called). |
protected java.lang.String |
sCopySourceServer
Original server name (not fully qualified DNS Name) where this file is physically stored before an ImportCopyService (if called). |
(package private) static long |
serialVersionUID
|
protected java.lang.String |
sFileName
Name of the file represented by this asset. |
protected java.lang.String |
sFullPath
Full path of the asset; used by Oracle's Context Service URL format: http://server.domain/path/file |
protected java.lang.String |
sLocation
Path of the file represented by this asset. |
protected java.lang.String |
sServer
Server name (not fully qualified DNS Name) where this file is physically stored. |
protected java.lang.String |
sUserId
Valid FLEXSTORdb user id |
protected java.lang.String |
sVIRProtocol
Protocol used for VIR Service (either HTTP or FILE) |
protected java.lang.String |
sVisualPath
Full path of the asset; used by Oracle's VIR Service If HTTP protocol, path is: server.domain/path/file If FILE protocol, path is: ORDVIRDIR ( Directory Object name in database ) |
protected java.util.Vector |
vChildAssets
DisguiseAssetRecordData children of this asset. |
protected java.util.Vector |
vVersions
Vector of available versions for this asset. |
| Fields inherited from class com.flexstor.common.data.ejb.disguiserecord.GenericBucketRecordData |
nBucketStructId, nRecordId, sDescription, traversalInfo, vFields, vTraversalPath |
| Fields inherited from class com.flexstor.common.data.ejb.Data |
DELETE, DELETED, derived, htModifiedStates, htOptions, MODIFY, modTime, NEW_ENTRY, presentState, prevState, UNCHANGED, UPDATED, WARN_BEFORE_DELETE |
| Constructor Summary | |
DisguiseAssetRecordData()
|
|
| Method Summary | |
void |
addChildAsset(DisguiseAssetRecordData assetChild)
Adds a child to the list of children assets. |
void |
addProperty(java.lang.String key,
java.lang.Object value)
|
void |
addUserData(java.lang.String key,
java.lang.String value)
|
java.lang.Object |
cloneAsset(boolean bFullClone)
Clones the asset. |
boolean |
deleteAsset(DisguiseAssetRecordData assetToDelete,
int[] nAssetsDeleted)
Will delete an asset, this or a child if it meets the criteria of the argument asset. |
boolean |
deleteAssets(java.lang.String sRole,
java.lang.String sType,
java.lang.String sFlag)
Deletes the assets of a specific role, type and flag from this structure |
boolean |
deleteAssetsNotInRoleType(java.lang.String sRole,
java.lang.String sType,
java.lang.String sFlag)
If the role and type of the [FLAG] asset don't match the arguments, return true. |
void |
deleteChildAsset(DisguiseAssetRecordData assetChild)
|
void |
deleteChildAsset(int index)
Deletes a specific child from this asset. |
boolean |
deleteTempChildren()
Deletes any temporary asset associated with this asset. |
int |
getAppleTalkVendor()
|
int |
getArchiveStatus()
|
java.lang.String |
getAssetFileType()
|
AssetRoleData |
getAssetRole()
Retrieves the asset role for this asset record. |
int |
getAssetRoleId()
|
void |
getAssets(java.util.Vector vAssets,
java.lang.String sRole,
java.lang.String sType,
java.lang.String sFlag)
Get a list of assets (stored in the passing vector) which meets the criteria of the arguments. |
private void |
getAssets(java.util.Vector vTraversalPath,
java.util.Vector vAssets,
java.lang.String sRole,
java.lang.String sType)
|
(package private) void |
getAssets(java.util.Vector vTraversalPath,
java.util.Vector vAssets,
java.lang.String sRole,
java.lang.String sType,
java.lang.String sFlag)
Get a list of assets (stored in the passing vector) which meets the criteria of the arguments. |
DisguiseAssetRecordData |
getChildAsset(int nRoleId)
Get the first occurrence of a child with the specified role id. |
DisguiseAssetRecordData |
getChildAssetNoTemp(int nRoleId)
Get the first ocurrence of a non-temporary child with the specified role id. |
DisguiseAssetRecordData[] |
getChildAssets()
Retrieves the list of children assets contained in this DisguiseAssetRecordData object. |
void |
getChildren(java.util.Vector vAssets,
java.lang.String sRole,
java.lang.String sType,
java.lang.String sFlag)
|
(package private) void |
getChildren(java.util.Vector vTraversalPath,
java.util.Vector vAssets,
java.lang.String sRole,
java.lang.String sType,
java.lang.String sFlag)
|
java.lang.String |
getContextProtocol()
|
java.lang.String |
getCopySourceFileName()
|
java.lang.String |
getCopySourceLocation()
|
java.lang.String |
getCopySourceServer()
|
long |
getDefaultViewAssetId()
|
java.util.Date |
getFileDate()
|
java.lang.String |
getFileName()
|
long |
getFileSize()
|
java.lang.String |
getFullTextPath()
|
int |
getHistoryId()
|
java.lang.String |
getLocation()
|
DisguiseAssetRecordData |
getParent()
Get the parent asset for this asset. |
com.flexstor.common.util.FlexHashtable |
getProperties()
|
java.lang.Object |
getProperty(java.lang.String key)
|
java.util.Date |
getReceived()
|
private int |
getRoleId(java.lang.String sRole)
|
java.lang.String |
getServer()
|
com.flexstor.common.util.FlexHashtable |
getUserData()
|
java.lang.String |
getUserId()
|
int[] |
getVersions()
|
java.lang.String |
getVIRProtocol()
|
java.lang.String |
getVisualPath()
|
boolean |
hasChildren()
Tests if this asset has children |
boolean |
hasChildrenNoTemp()
|
boolean |
isCheckedOut()
|
boolean |
isDefaultView()
|
boolean |
isPrimaryParent()
|
boolean |
isSourceCopied()
|
private boolean |
processAsset(java.lang.String sFlag)
|
void |
setAppleTalkVendor(int nAppleTalkVendor)
|
boolean |
setArchiveStatus(int status)
|
boolean |
setAssetFileType(java.lang.String sType)
|
boolean |
setAssetRole(AssetRoleData role)
Set the asset role object for this asset. |
boolean |
setAssetRoleId(int id)
|
boolean |
setCheckedOut(boolean status)
|
boolean |
setChildAssets(DisguiseAssetRecordData[] children)
Sets the list of children assets for this asset. |
boolean |
setContextProtocol(java.lang.String contextProtocol)
|
void |
setCopySource(boolean bCopySource)
|
void |
setCopySourceFileName(java.lang.String sCopySourceFileName)
|
void |
setCopySourceLocation(java.lang.String sCopySourceLocation)
|
void |
setCopySourceServer(java.lang.String sCopySourceServer)
The server should be a valid entry from the server table in the database. |
boolean |
setDefaultView(boolean view)
|
boolean |
setDefaultViewAssetId(long nDefaultViewAssetId)
|
void |
setFileDate(java.util.Date dFileDate)
|
void |
setFileName(java.lang.String sFileName)
|
void |
setFileSize(long nFileSize)
|
boolean |
setFullTextPath(java.lang.String fullPath)
|
boolean |
setHistoryId(int id)
|
void |
setLocation(java.lang.String sLocation)
|
void |
setLocation(java.lang.String sLocation,
java.lang.String file_sep)
|
boolean |
setParent(DisguiseAssetRecordData parent)
Set the parent asset for this asset. |
void |
setReceived(java.util.Date dReceived)
|
void |
setServer(java.lang.String sServer)
The server should be a valid entry from the server table in the database. |
void |
setUserId(java.lang.String sUserId)
|
boolean |
setVersions(int[] nVersions)
|
boolean |
setVIRProtocol(java.lang.String virProtocol)
|
boolean |
setVisualPath(java.lang.String visualPath)
|
| Methods inherited from class com.flexstor.common.data.ejb.disguiserecord.GenericBucketRecordData |
addValue, cloneRecord, getBucketStructId, getDescription, getRecordId, getTraversalInfo, getTraversalPath, getValues, setBucketStructId, setDescription, setRecordId, setTraversalInfo, setTraversalInfo, setTraversalPath, setValues |
| Methods inherited from class com.flexstor.common.data.ejb.Data |
assertEquals, changed, fillCloneInfo, getDateModTime, getModTime, getPresentState, getPreviousState, initializeState, isDeleted, isDerived, isModified, isModified, isObjectPersist, isOptionAllowed, resetModifiedStates, rollBackState, setDeleted, setDerived, setModifiedState, setModTime, setModTime, setNewEntry, setOption, setPerisistState, setPreviousState, setState, setUpdated |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
nHistoryId
protected int nHistoryId
- History of this asset.
bCheckedOut
protected boolean bCheckedOut
- Checked out value (during import, it should be false)
nArchiveStatus
protected int nArchiveStatus
- The archive status (default to zero - online)
vChildAssets
protected java.util.Vector vChildAssets
- DisguiseAssetRecordData children of this asset.
bDefaultView
protected boolean bDefaultView
- Mark this asset as a default view for others.
nDefaultViewAssetId
protected long nDefaultViewAssetId
- Holds the asset id of the default view asset for this asset.
sFullPath
protected java.lang.String sFullPath
- Full path of the asset; used by Oracle's Context Service
URL format: http://server.domain/path/file
sVisualPath
protected java.lang.String sVisualPath
- Full path of the asset; used by Oracle's VIR Service
If HTTP protocol, path is: server.domain/path/file
If FILE protocol, path is: ORDVIRDIR ( Directory Object name in database )
sVIRProtocol
protected java.lang.String sVIRProtocol
- Protocol used for VIR Service (either HTTP or FILE)
sContextProtocol
protected java.lang.String sContextProtocol
- Protocol used for Context Service (either HTTP or FILE)
assetRole
protected AssetRoleData assetRole
- The specific asset role object ( HIGHRES, THUMBNAIL, AUDIO, VIDEO, etc. )
vVersions
protected java.util.Vector vVersions
- Vector of available versions for this asset.
nFileSize
protected long nFileSize
- Size (in bytes) of this File
sUserId
protected java.lang.String sUserId
- Valid FLEXSTORdb user id
dReceived
protected java.util.Date dReceived
- Date this file is received into the system.
dFileDate
protected java.util.Date dFileDate
- Date this file was created or last modified
sFileName
protected java.lang.String sFileName
- Name of the file represented by this asset. Not including path
sLocation
protected java.lang.String sLocation
- Path of the file represented by this asset. Not including name.
Path shouuld be a system dependent path
sServer
protected java.lang.String sServer
- Server name (not fully qualified DNS Name) where this file is physically stored.
Server name should be a valid server name from the server table in the database.
sCopySourceFileName
protected java.lang.String sCopySourceFileName
- Original name of the file represented by this asset before an ImportCopyService (if called).
Not including path.
sCopySourceLocation
protected java.lang.String sCopySourceLocation
- Original path of the file represented by this asset before an ImportCopyService (if called).
Not including name. Path shouuld be a system dependent path
sCopySourceServer
protected java.lang.String sCopySourceServer
- Original server name (not fully qualified DNS Name) where this file is physically stored
before an ImportCopyService (if called).
Server name should be a valid server name from the server table in the database.
bCopySource
protected boolean bCopySource
- True if this asset was copied to a new location during an ImportCopyService.
parentAsset
protected DisguiseAssetRecordData parentAsset
- The parent of this asset if this is a child asset. If this is a primary asset,
parentAsset should be null.
htProperties
protected com.flexstor.common.util.FlexHashtable htProperties
- Holds values for properties needed along services.
This is differentiated from hUserData because the latter is
used to hold user defined fields in the database, while the
properties held by the htProperties Hashtable are not part of
the database information.
hUserData
protected com.flexstor.common.util.FlexHashtable hUserData
- Holds values for user defined fields.
used during import services, so that values in user defined fields
can be updated from external services (third party services)
| Constructor Detail |
DisguiseAssetRecordData
public DisguiseAssetRecordData()
| Method Detail |
getAssetRoleId
public int getAssetRoleId()
getAssetFileType
public java.lang.String getAssetFileType()
getArchiveStatus
public int getArchiveStatus()
getAssetRole
public AssetRoleData getAssetRole()
- Retrieves the asset role for this asset record.
getChildAssets
public DisguiseAssetRecordData[] getChildAssets()
- Retrieves the list of children assets contained in this
DisguiseAssetRecordData object.
getChildAsset
public DisguiseAssetRecordData getChildAsset(int nRoleId)
- Get the first occurrence of a child with the specified role id.
getChildAssetNoTemp
public DisguiseAssetRecordData getChildAssetNoTemp(int nRoleId)
- Get the first ocurrence of a non-temporary child with the specified role id.
hasChildren
public boolean hasChildren()
- Tests if this asset has children
getFullTextPath
public java.lang.String getFullTextPath()
getHistoryId
public int getHistoryId()
getParent
public DisguiseAssetRecordData getParent()
- Get the parent asset for this asset.
getVisualPath
public java.lang.String getVisualPath()
getVIRProtocol
public java.lang.String getVIRProtocol()
getContextProtocol
public java.lang.String getContextProtocol()
getFileName
public java.lang.String getFileName()
getLocation
public java.lang.String getLocation()
getServer
public java.lang.String getServer()
isSourceCopied
public boolean isSourceCopied()
getCopySourceFileName
public java.lang.String getCopySourceFileName()
getCopySourceLocation
public java.lang.String getCopySourceLocation()
getCopySourceServer
public java.lang.String getCopySourceServer()
getVersions
public int[] getVersions()
getAppleTalkVendor
public int getAppleTalkVendor()
getFileSize
public long getFileSize()
getUserId
public java.lang.String getUserId()
getReceived
public java.util.Date getReceived()
getFileDate
public java.util.Date getFileDate()
isCheckedOut
public boolean isCheckedOut()
isDefaultView
public boolean isDefaultView()
isPrimaryParent
public boolean isPrimaryParent()
deleteTempChildren
public boolean deleteTempChildren()
- Deletes any temporary asset associated with this asset.
hasChildrenNoTemp
public boolean hasChildrenNoTemp()
deleteChildAsset
public void deleteChildAsset(int index)
- Deletes a specific child from this asset.
deleteChildAsset
public void deleteChildAsset(DisguiseAssetRecordData assetChild)
setArchiveStatus
public boolean setArchiveStatus(int status)
setAssetRole
public boolean setAssetRole(AssetRoleData role)
- Set the asset role object for this asset.
setAssetRoleId
public boolean setAssetRoleId(int id)
setAssetFileType
public boolean setAssetFileType(java.lang.String sType)
setCheckedOut
public boolean setCheckedOut(boolean status)
addChildAsset
public void addChildAsset(DisguiseAssetRecordData assetChild)
- Adds a child to the list of children assets.
setChildAssets
public boolean setChildAssets(DisguiseAssetRecordData[] children)
- Sets the list of children assets for this asset.
setDefaultView
public boolean setDefaultView(boolean view)
setFullTextPath
public boolean setFullTextPath(java.lang.String fullPath)
setHistoryId
public boolean setHistoryId(int id)
setParent
public boolean setParent(DisguiseAssetRecordData parent)
- Set the parent asset for this asset.
setVisualPath
public boolean setVisualPath(java.lang.String visualPath)
setVIRProtocol
public boolean setVIRProtocol(java.lang.String virProtocol)
setContextProtocol
public boolean setContextProtocol(java.lang.String contextProtocol)
setFileName
public void setFileName(java.lang.String sFileName)
setLocation
public void setLocation(java.lang.String sLocation)
setLocation
public void setLocation(java.lang.String sLocation, java.lang.String file_sep)
setServer
public void setServer(java.lang.String sServer)
- The server should be a valid entry from the server table in the database.
setCopySource
public void setCopySource(boolean bCopySource)
setCopySourceFileName
public void setCopySourceFileName(java.lang.String sCopySourceFileName)
setCopySourceLocation
public void setCopySourceLocation(java.lang.String sCopySourceLocation)
setCopySourceServer
public void setCopySourceServer(java.lang.String sCopySourceServer)
- The server should be a valid entry from the server table in the database.
setVersions
public boolean setVersions(int[] nVersions)
setAppleTalkVendor
public void setAppleTalkVendor(int nAppleTalkVendor)
setFileSize
public void setFileSize(long nFileSize)
setUserId
public void setUserId(java.lang.String sUserId)
setReceived
public void setReceived(java.util.Date dReceived)
setFileDate
public void setFileDate(java.util.Date dFileDate)
setDefaultViewAssetId
public boolean setDefaultViewAssetId(long nDefaultViewAssetId)
getDefaultViewAssetId
public long getDefaultViewAssetId()
getAssets
public void getAssets(java.util.Vector vAssets, java.lang.String sRole, java.lang.String sType, java.lang.String sFlag)
- Get a list of assets (stored in the passing vector) which meets the criteria
of the arguments.
getAssets
void getAssets(java.util.Vector vTraversalPath, java.util.Vector vAssets, java.lang.String sRole, java.lang.String sType, java.lang.String sFlag)
- Get a list of assets (stored in the passing vector) which meets the criteria
of the arguments.
getChildren
public void getChildren(java.util.Vector vAssets, java.lang.String sRole, java.lang.String sType, java.lang.String sFlag)
getChildren
void getChildren(java.util.Vector vTraversalPath, java.util.Vector vAssets, java.lang.String sRole, java.lang.String sType, java.lang.String sFlag)
getAssets
private void getAssets(java.util.Vector vTraversalPath, java.util.Vector vAssets, java.lang.String sRole, java.lang.String sType)
deleteAssets
public boolean deleteAssets(java.lang.String sRole, java.lang.String sType, java.lang.String sFlag)
- Deletes the assets of a specific role, type and flag from this structure
deleteAsset
public boolean deleteAsset(DisguiseAssetRecordData assetToDelete, int[] nAssetsDeleted)
- Will delete an asset, this or a child if it meets the criteria of the argument asset.
For now the criteria will be that the server/location/filename are the same.
deleteAssetsNotInRoleType
public boolean deleteAssetsNotInRoleType(java.lang.String sRole, java.lang.String sType, java.lang.String sFlag)
- If the role and type of the [FLAG] asset don't match the arguments, return true.
getUserData
public com.flexstor.common.util.FlexHashtable getUserData()
addUserData
public void addUserData(java.lang.String key, java.lang.String value)
getProperties
public com.flexstor.common.util.FlexHashtable getProperties()
addProperty
public void addProperty(java.lang.String key, java.lang.Object value)
getProperty
public java.lang.Object getProperty(java.lang.String key)
processAsset
private boolean processAsset(java.lang.String sFlag)
getRoleId
private int getRoleId(java.lang.String sRole)
cloneAsset
public java.lang.Object cloneAsset(boolean bFullClone)
- Clones the asset. The bFullClone argument determines if this clone will
include a clone copy of all children of this asset, or not. This provides
for creating lite clones of the object.
|
|||||||||
| Home >> All >> com >> flexstor >> common >> data >> ejb >> [ disguiserecord overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC