Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.flexstor.common.modules.registry.asset
Class AssetInstance  view AssetInstance download AssetInstance.java

java.lang.Object
  extended bycom.flexstor.common.modules.registry.BaseInstance
      extended bycom.flexstor.common.modules.registry.asset.AssetInstance
All Implemented Interfaces:
AssetInstanceI, com.flexstor.common.modules.registry.BaseInstanceI, com.flexstor.common.modules.registry.EditableInstanceI

public class AssetInstance
extends com.flexstor.common.modules.registry.BaseInstance
implements AssetInstanceI


Field Summary
 
Fields inherited from class com.flexstor.common.modules.registry.BaseInstance
id
 
Fields inherited from interface com.flexstor.common.modules.registry.EditableInstanceI
LOCKED_BY_OTHER_INSTANCE, LOCKED_BY_THIS_INSTANCE, NOT_LOCKED
 
Constructor Summary
AssetInstance(com.flexstor.common.modules.registry.InstanceId id)
           
 
Method Summary
 boolean areVersionsLoaded()
           
 int getAppleTalkVendor()
          Gets the AppleTalk vendor as a constant in RsrcForkConstantsI
 int getArchiveStatus()
          Gets the archive status.
 long getAssetId()
           
 com.flexstor.common.data.ejb.search.AssetInstanceId getAssetInstanceId()
           
 int getCheckedOutStatus()
          Returns the actual checked-out status as follows CHECKEDIN_STATUS CHECKEDOUT_STATUS IN_PROCESS_CHECKEDOUT IN_PROCESS_CHECKEDIN
 java.lang.String getCheckOutDate()
          Gets the check out date.
 java.lang.String getCheckOutLocation()
          Gets the check out location.
 java.lang.String getCheckOutUser()
          Gets the check out user.
 com.flexstor.common.data.ejb.search.MultiValueData getData(int nFieldId)
           
 com.flexstor.common.data.ejb.search.MultiValueData[] getData(int[] naFieldIds)
           
 com.flexstor.common.data.ejb.search.MultiValueData[] getData(java.lang.String sDisplay)
           
 com.flexstor.common.modules.registry.disguise.DisguiseInstanceI getDisguiseInstance()
           
 java.lang.String getFileName()
          Gets the file name
 long getFileSize()
          Gets the file size
 int getLevel()
           
 java.lang.String getLocation()
          Gets the file path
 java.lang.String getReportSignature()
           
 com.flexstor.common.modules.registry.resultset.ResultSetInstanceI getResultSetInstance()
           
 com.flexstor.common.data.ejb.search.MultiValueData getRoleData(int nFieldId)
           
 com.flexstor.common.data.ejb.search.MultiValueData[] getRoleData(int[] naFieldIds)
           
 com.flexstor.common.data.ejb.search.MultiValueData[] getRoleData(java.lang.String sDisplay)
           
 int getRoleId()
          Gets the asset role.
 java.lang.String getServer()
          Gets the server
 com.flexstor.common.data.TraversalInfo getSourceTraversalPath()
           
 int getStructureId()
           
 AssetUrl[] getThumbnailAssetURLs()
           
 long getTimeStamp()
           
 com.flexstor.common.modules.registry.BaseInstanceI getTopBucket()
           
 com.flexstor.common.data.TraversalInfo getTraversalPath()
          Returns the full traversal path for this id.
 java.util.HashMap getVersionDisplayURLs()
           
 java.util.List getVersions()
           
 com.flexstor.common.version.VersionString getVersionString()
          Gets the displayable version description
 boolean hasPartialData()
           
 boolean isCheckedOut()
          Returns a boolean indicating if this asset is checked out.
 boolean isCurrentVersion()
           
 boolean isDataLoaded()
           
 boolean isDefaultDisplayAsset()
           
 boolean isDeleted()
           
 boolean isFullDataLoaded()
           
 boolean isInserted()
           
 boolean isLowestBucket()
           
 boolean isModified()
           
 boolean isPartialDataLoaded()
           
 boolean isPrimaryParentAsset()
           
 int isRecordLocked()
           
 boolean isRoleDataLoaded()
           
 int isStructureLocked()
           
 boolean isTopBucket()
           
 int lockRecord()
           
 int lockStructure()
           
 void renameAsCopyOf()
           
 void resetData()
           
 void restoreData()
           
 void setArchiveStatus(int nStatus)
          Sets the archive status to a new value.
 void setDeleted(boolean bDeleted)
           
 void setInserted(boolean bInserted)
           
 void setPartialData(boolean bFlag)
           
 void setTimeStamp(long nTimeStamp)
           
 boolean unlockRecord()
           
 boolean unlockStructure()
           
 
Methods inherited from class com.flexstor.common.modules.registry.BaseInstance
buildError, equals, getChildren, getDescription, getFullDescription, getInstanceId, getLabel, getLabel, getParentInstance, getPosition, getRootInstance, getUserObject, hashCode, isValid, setUserObject, toString, unlinkChild, unregister
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.flexstor.common.modules.registry.BaseInstanceI
getChildren, getDescription, getFullDescription, getInstanceId, getLabel, getLabel, getParentInstance, getPosition, getRootInstance, getUserObject, isValid, setUserObject, unlinkChild, unregister
 

Constructor Detail

AssetInstance

public AssetInstance(com.flexstor.common.modules.registry.InstanceId id)
Method Detail

isPrimaryParentAsset

public boolean isPrimaryParentAsset()
Specified by:
isPrimaryParentAsset in interface AssetInstanceI

isDefaultDisplayAsset

public boolean isDefaultDisplayAsset()
Specified by:
isDefaultDisplayAsset in interface AssetInstanceI

getDisguiseInstance

public com.flexstor.common.modules.registry.disguise.DisguiseInstanceI getDisguiseInstance()
Specified by:
getDisguiseInstance in interface com.flexstor.common.modules.registry.BaseInstanceI

getResultSetInstance

public com.flexstor.common.modules.registry.resultset.ResultSetInstanceI getResultSetInstance()
Specified by:
getResultSetInstance in interface com.flexstor.common.modules.registry.BaseInstanceI

isTopBucket

public boolean isTopBucket()
Specified by:
isTopBucket in interface com.flexstor.common.modules.registry.BaseInstanceI

isLowestBucket

public boolean isLowestBucket()
Specified by:
isLowestBucket in interface com.flexstor.common.modules.registry.BaseInstanceI

getTopBucket

public com.flexstor.common.modules.registry.BaseInstanceI getTopBucket()
Specified by:
getTopBucket in interface com.flexstor.common.modules.registry.BaseInstanceI

getReportSignature

public java.lang.String getReportSignature()
Specified by:
getReportSignature in interface com.flexstor.common.modules.registry.BaseInstanceI

getTraversalPath

public com.flexstor.common.data.TraversalInfo getTraversalPath()
Returns the full traversal path for this id. The traversal path includes this item, all of its parent buckets, and the disguise id.

Specified by:
getTraversalPath in interface com.flexstor.common.modules.registry.BaseInstanceI

getSourceTraversalPath

public com.flexstor.common.data.TraversalInfo getSourceTraversalPath()
Specified by:
getSourceTraversalPath in interface AssetInstanceI

getLevel

public int getLevel()
Specified by:
getLevel in interface com.flexstor.common.modules.registry.BaseInstanceI

getStructureId

public int getStructureId()
Specified by:
getStructureId in interface com.flexstor.common.modules.registry.BaseInstanceI

isDeleted

public boolean isDeleted()
Specified by:
isDeleted in interface AssetInstanceI

isInserted

public boolean isInserted()
Specified by:
isInserted in interface AssetInstanceI

setDeleted

public void setDeleted(boolean bDeleted)
Specified by:
setDeleted in interface AssetInstanceI

setInserted

public void setInserted(boolean bInserted)
Specified by:
setInserted in interface AssetInstanceI

getAssetInstanceId

public com.flexstor.common.data.ejb.search.AssetInstanceId getAssetInstanceId()
Specified by:
getAssetInstanceId in interface AssetInstanceI

getAssetId

public long getAssetId()
Specified by:
getAssetId in interface AssetInstanceI

isModified

public boolean isModified()
Specified by:
isModified in interface AssetInstanceI

isRecordLocked

public int isRecordLocked()
Specified by:
isRecordLocked in interface com.flexstor.common.modules.registry.EditableInstanceI

lockRecord

public int lockRecord()
Specified by:
lockRecord in interface com.flexstor.common.modules.registry.EditableInstanceI

unlockRecord

public boolean unlockRecord()
Specified by:
unlockRecord in interface com.flexstor.common.modules.registry.EditableInstanceI

isStructureLocked

public int isStructureLocked()
Specified by:
isStructureLocked in interface com.flexstor.common.modules.registry.EditableInstanceI

lockStructure

public int lockStructure()
Specified by:
lockStructure in interface com.flexstor.common.modules.registry.EditableInstanceI

unlockStructure

public boolean unlockStructure()
Specified by:
unlockStructure in interface com.flexstor.common.modules.registry.EditableInstanceI

hasPartialData

public boolean hasPartialData()
Specified by:
hasPartialData in interface AssetInstanceI

setPartialData

public void setPartialData(boolean bFlag)
Specified by:
setPartialData in interface AssetInstanceI

isDataLoaded

public boolean isDataLoaded()
Specified by:
isDataLoaded in interface AssetInstanceI

isPartialDataLoaded

public boolean isPartialDataLoaded()
Specified by:
isPartialDataLoaded in interface AssetInstanceI

isFullDataLoaded

public boolean isFullDataLoaded()
Specified by:
isFullDataLoaded in interface AssetInstanceI

isRoleDataLoaded

public boolean isRoleDataLoaded()
Specified by:
isRoleDataLoaded in interface AssetInstanceI

getData

public com.flexstor.common.data.ejb.search.MultiValueData getData(int nFieldId)
                                                           throws com.flexstor.common.gateway.exceptions.TransactionFailedException
Specified by:
getData in interface AssetInstanceI

getData

public com.flexstor.common.data.ejb.search.MultiValueData[] getData(int[] naFieldIds)
                                                             throws com.flexstor.common.gateway.exceptions.TransactionFailedException
Specified by:
getData in interface AssetInstanceI

getData

public com.flexstor.common.data.ejb.search.MultiValueData[] getData(java.lang.String sDisplay)
                                                             throws com.flexstor.common.gateway.exceptions.TransactionFailedException
Specified by:
getData in interface AssetInstanceI

getRoleData

public com.flexstor.common.data.ejb.search.MultiValueData getRoleData(int nFieldId)
                                                               throws com.flexstor.common.gateway.exceptions.TransactionFailedException
Specified by:
getRoleData in interface AssetInstanceI

getRoleData

public com.flexstor.common.data.ejb.search.MultiValueData[] getRoleData(int[] naFieldIds)
                                                                 throws com.flexstor.common.gateway.exceptions.TransactionFailedException
Specified by:
getRoleData in interface AssetInstanceI

getRoleData

public com.flexstor.common.data.ejb.search.MultiValueData[] getRoleData(java.lang.String sDisplay)
                                                                 throws com.flexstor.common.gateway.exceptions.TransactionFailedException
Specified by:
getRoleData in interface AssetInstanceI

restoreData

public void restoreData()
Specified by:
restoreData in interface com.flexstor.common.modules.registry.EditableInstanceI

resetData

public void resetData()
Specified by:
resetData in interface com.flexstor.common.modules.registry.EditableInstanceI

getRoleId

public int getRoleId()
              throws com.flexstor.common.gateway.exceptions.TransactionFailedException
Gets the asset role.

Specified by:
getRoleId in interface AssetInstanceI

getArchiveStatus

public int getArchiveStatus()
                     throws com.flexstor.common.gateway.exceptions.TransactionFailedException
Gets the archive status.

Specified by:
getArchiveStatus in interface AssetInstanceI

setArchiveStatus

public void setArchiveStatus(int nStatus)
                      throws com.flexstor.common.gateway.exceptions.TransactionFailedException
Sets the archive status to a new value.

Specified by:
setArchiveStatus in interface AssetInstanceI

isCheckedOut

public boolean isCheckedOut()
                     throws com.flexstor.common.gateway.exceptions.TransactionFailedException
Returns a boolean indicating if this asset is checked out.

Specified by:
isCheckedOut in interface AssetInstanceI

getCheckedOutStatus

public int getCheckedOutStatus()
                        throws com.flexstor.common.gateway.exceptions.TransactionFailedException
Returns the actual checked-out status as follows CHECKEDIN_STATUS CHECKEDOUT_STATUS IN_PROCESS_CHECKEDOUT IN_PROCESS_CHECKEDIN

Specified by:
getCheckedOutStatus in interface AssetInstanceI

getVersionString

public com.flexstor.common.version.VersionString getVersionString()
                                                           throws com.flexstor.common.gateway.exceptions.TransactionFailedException
Gets the displayable version description

Specified by:
getVersionString in interface AssetInstanceI

getServer

public java.lang.String getServer()
                           throws com.flexstor.common.gateway.exceptions.TransactionFailedException
Gets the server

Specified by:
getServer in interface AssetInstanceI

getLocation

public java.lang.String getLocation()
                             throws com.flexstor.common.gateway.exceptions.TransactionFailedException
Gets the file path

Specified by:
getLocation in interface AssetInstanceI

getFileName

public java.lang.String getFileName()
                             throws com.flexstor.common.gateway.exceptions.TransactionFailedException
Gets the file name

Specified by:
getFileName in interface AssetInstanceI

getFileSize

public long getFileSize()
                 throws com.flexstor.common.gateway.exceptions.TransactionFailedException
Gets the file size

Specified by:
getFileSize in interface AssetInstanceI

getAppleTalkVendor

public int getAppleTalkVendor()
                       throws com.flexstor.common.gateway.exceptions.TransactionFailedException
Gets the AppleTalk vendor as a constant in RsrcForkConstantsI

Specified by:
getAppleTalkVendor in interface AssetInstanceI

getCheckOutLocation

public java.lang.String getCheckOutLocation()
                                     throws com.flexstor.common.gateway.exceptions.TransactionFailedException
Gets the check out location.

Specified by:
getCheckOutLocation in interface AssetInstanceI

getCheckOutDate

public java.lang.String getCheckOutDate()
                                 throws com.flexstor.common.gateway.exceptions.TransactionFailedException
Gets the check out date.

Specified by:
getCheckOutDate in interface AssetInstanceI

getCheckOutUser

public java.lang.String getCheckOutUser()
                                 throws com.flexstor.common.gateway.exceptions.TransactionFailedException
Gets the check out user.

Specified by:
getCheckOutUser in interface AssetInstanceI

renameAsCopyOf

public void renameAsCopyOf()
Specified by:
renameAsCopyOf in interface com.flexstor.common.modules.registry.EditableInstanceI

getTimeStamp

public long getTimeStamp()
Specified by:
getTimeStamp in interface com.flexstor.common.modules.registry.EditableInstanceI

setTimeStamp

public void setTimeStamp(long nTimeStamp)
Specified by:
setTimeStamp in interface com.flexstor.common.modules.registry.EditableInstanceI

isCurrentVersion

public boolean isCurrentVersion()
Specified by:
isCurrentVersion in interface AssetInstanceI

areVersionsLoaded

public boolean areVersionsLoaded()
Specified by:
areVersionsLoaded in interface AssetInstanceI

getThumbnailAssetURLs

public AssetUrl[] getThumbnailAssetURLs()
                                 throws com.flexstor.common.gateway.exceptions.TransactionFailedException
Specified by:
getThumbnailAssetURLs in interface AssetInstanceI

getVersions

public java.util.List getVersions()
                           throws com.flexstor.common.gateway.exceptions.TransactionFailedException
Specified by:
getVersions in interface AssetInstanceI

getVersionDisplayURLs

public java.util.HashMap getVersionDisplayURLs()
                                        throws com.flexstor.common.gateway.exceptions.TransactionFailedException
Specified by:
getVersionDisplayURLs in interface AssetInstanceI