|
|||||||||
| 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 AssetRoleData

java.lang.Objectcom.flexstor.common.data.ejb.Data
com.flexstor.common.data.ejb.disguiserecord.GenericBucketRecordData
com.flexstor.common.data.ejb.disguiserecord.AssetRoleData
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- AudioRoleData, ImageRoleData, LayoutRoleData, VideoRoleData
- public class AssetRoleData
- extends GenericBucketRecordData
The role the asset plays in FlexstorDB and how it relates to other asset roles. This is the superclass for specific roles
| Field Summary | |
protected boolean |
bTempRole
True if this instance of the role is acting like a temporary instance. |
protected int |
nAssetRoleId
Id identifying this role (unique across applications) |
protected java.lang.String |
sAssetFileType
The type of file this asset is. |
| Fields inherited from class com.flexstor.common.data.ejb.disguiserecord.GenericBucketRecordData |
nBucketStructId, nRecordId, sDescription, serialVersionUID, 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 | |
AssetRoleData()
|
|
| Method Summary | |
java.lang.Object |
cloneAssetRole()
Returns a cloned version of this AssetRoleData object |
protected java.lang.Object |
cloneRole()
All subclasses of AssetRoleData need to overwrite this method. |
java.lang.String[] |
gatherData()
Overwrite this method in subclases. |
java.lang.String |
getAssetFileType()
Get the file type represented by this asset. |
static AssetRoleData |
getAssetRoleData(int nRoleId)
|
static AssetRoleData |
getAssetRoleData(java.lang.String sRoleType)
|
int |
getAssetRoleId()
Get the role Id of this asset. |
boolean |
isTempRole()
Query this Asset to determine if it's a temporary asset (not to be stored in the database) |
boolean |
setAssetFileType(java.lang.String type)
Set the file type for this asset. |
boolean |
setAssetRoleId(int roleId)
Set the role Id of this asset. |
boolean |
setTempRole(boolean temp)
Set this asset as temporary. |
| 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 |
bTempRole
protected boolean bTempRole
- True if this instance of the role is acting like a temporary instance.
sAssetFileType
protected java.lang.String sAssetFileType
- The type of file this asset is. Examples are: JPEG, JIF, ...
nAssetRoleId
protected int nAssetRoleId
- Id identifying this role (unique across applications)
| Constructor Detail |
AssetRoleData
public AssetRoleData()
| Method Detail |
cloneRole
protected java.lang.Object cloneRole()
- All subclasses of AssetRoleData need to overwrite this method.
gatherData
public java.lang.String[] gatherData()
- Overwrite this method in subclases.
Add getAssetFileType() in implementation.
Creates a String[] with all the values for all fields in this object
isTempRole
public boolean isTempRole()
- Query this Asset to determine if it's a temporary asset (not to be stored in the database)
setTempRole
public boolean setTempRole(boolean temp)
- Set this asset as temporary.
getAssetFileType
public java.lang.String getAssetFileType()
- Get the file type represented by this asset.
setAssetFileType
public boolean setAssetFileType(java.lang.String type)
- Set the file type for this asset.
getAssetRoleId
public int getAssetRoleId()
- Get the role Id of this asset.
setAssetRoleId
public boolean setAssetRoleId(int roleId)
- Set the role Id of this asset.
getAssetRoleData
public static AssetRoleData getAssetRoleData(java.lang.String sRoleType)
getAssetRoleData
public static AssetRoleData getAssetRoleData(int nRoleId)
cloneAssetRole
public java.lang.Object cloneAssetRole()
- Returns a cloned version of this AssetRoleData 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