com.arsdigita.acs.fs
Class StoredFile

java.lang.Object
  |
  +--com.arsdigita.acs.fs.StoredFile

public class StoredFile
extends Object

Represents a single file in the file storage module.


Field Summary
static String allVersionsQuery
           
static String oneVersionQuery
           
 
Constructor Summary
StoredFile()
           
 
Method Summary
 StoredFileVersion[] getAllVersions(Database db, Integer userId)
          Returns all versions of a file visible to a given user.
 boolean getDeleted()
           
 Integer getFileId()
           
 Integer getGroupId()
           
 boolean getIsFolder()
           
 boolean getIsPublic()
           
 StoredFileVersion getLatestVersion(Database db, Integer userId)
          Returns the latest version of a file visible to a given user.
 ContextBarWs getNavbar(Database db, String source)
           
 int getOlderVersions(Database db)
           
 Integer getOwnerId()
           
 String getOwnerName()
           
 Integer getParentId()
           
 String getParentTitle()
           
 String getTitle()
           
 String getTreeName()
           
 String getUrl()
           
 int getVersionCount()
           
 void select(Database db, Integer fileId, Integer userId)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

allVersionsQuery

public static final String allVersionsQuery

oneVersionQuery

public static final String oneVersionQuery
Constructor Detail

StoredFile

public StoredFile()
Method Detail

getTitle

public String getTitle()

getParentTitle

public String getParentTitle()

getIsFolder

public boolean getIsFolder()

getParentId

public Integer getParentId()

getIsPublic

public boolean getIsPublic()

getOwnerId

public Integer getOwnerId()

getGroupId

public Integer getGroupId()

getFileId

public Integer getFileId()

getDeleted

public boolean getDeleted()

getUrl

public String getUrl()

getOwnerName

public String getOwnerName()

getVersionCount

public int getVersionCount()

getTreeName

public String getTreeName()

getOlderVersions

public int getOlderVersions(Database db)
                     throws SQLException,
                            ACSException

select

public void select(Database db,
                   Integer fileId,
                   Integer userId)
            throws SQLException

getAllVersions

public StoredFileVersion[] getAllVersions(Database db,
                                          Integer userId)
                                   throws SQLException
Returns all versions of a file visible to a given user.

getLatestVersion

public StoredFileVersion getLatestVersion(Database db,
                                          Integer userId)
                                   throws SQLException
Returns the latest version of a file visible to a given user.

getNavbar

public ContextBarWs getNavbar(Database db,
                              String source)
                       throws SQLException,
                              ACSException