Liferay 6.1.2-ce-ga3

com.liferay.portal.repository.proxy
Class FileEntryProxyBean

java.lang.Object
  extended by com.liferay.portal.repository.proxy.RepositoryModelProxyBean
      extended by com.liferay.portal.repository.proxy.FileEntryProxyBean
All Implemented Interfaces:
FileEntry, RepositoryModel<FileEntry>, AuditedModel, ClassedModel, GroupedModel, Serializable

public class FileEntryProxyBean
extends RepositoryModelProxyBean
implements FileEntry

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.liferay.portal.kernel.repository.model.FileEntry
FILE_ENTRY_ID_ACCESSOR
 
Constructor Summary
FileEntryProxyBean(FileEntry fileEntry, ClassLoader classLoader)
           
 
Method Summary
 boolean containsPermission(PermissionChecker permissionChecker, String actionId)
           
 Map<String,Serializable> getAttributes()
           
 long getCompanyId()
           
 InputStream getContentStream()
          Retrieves the content stream of the current file version.
 InputStream getContentStream(String version)
           
 Date getCreateDate()
           
 String getDescription()
           
 ExpandoBridge getExpandoBridge()
           
 String getExtension()
           
 long getFileEntryId()
           
 FileVersion getFileVersion()
          Retrieves the current file version.
 FileVersion getFileVersion(String version)
           
 List<FileVersion> getFileVersions(int status)
           
 Folder getFolder()
           
 long getFolderId()
           
 long getGroupId()
           
 String getIcon()
           
 FileVersion getLatestFileVersion()
          Retrieves the latest file version.
 Lock getLock()
           
 String getMimeType()
           
 String getMimeType(String version)
           
 Object getModel()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 Date getModifiedDate()
           
 long getPrimaryKey()
           
 Serializable getPrimaryKeyObj()
           
 int getReadCount()
           
 long getRepositoryId()
           
 long getSize()
           
 String getTitle()
           
 long getUserId()
           
 String getUserName()
           
 String getUserUuid()
           
 String getUuid()
           
 String getVersion()
           
 long getVersionUserId()
           
 String getVersionUserName()
           
 String getVersionUserUuid()
           
 boolean hasLock()
           
 boolean isCheckedOut()
           
 boolean isDefaultRepository()
           
 boolean isEscapedModel()
           
 boolean isSupportsLocking()
           
 boolean isSupportsMetadata()
           
 boolean isSupportsSocial()
           
 void setCompanyId(long companyId)
           
 void setCreateDate(Date date)
           
 void setGroupId(long groupId)
           
 void setModifiedDate(Date date)
           
 void setPrimaryKeyObj(Serializable primaryKeyObj)
           
 void setUserId(long userId)
           
 void setUserName(String userName)
           
 void setUserUuid(String userUuid)
           
 FileEntry toEscapedModel()
           
 FileEntry toUnescapedModel()
           
 
Methods inherited from class com.liferay.portal.repository.proxy.RepositoryModelProxyBean
newFileEntryProxyBean, newFileVersionProxyBean, newFolderProxyBean, newLocalRepositoryProxyBean, newProxyBean, newProxyInstance, toFileEntryProxyBeans, toFileVersionProxyBeans, toFolderProxyBeans, toObjectProxyBeans
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileEntryProxyBean

public FileEntryProxyBean(FileEntry fileEntry,
                          ClassLoader classLoader)
Method Detail

containsPermission

public boolean containsPermission(PermissionChecker permissionChecker,
                                  String actionId)
                           throws PortalException,
                                  SystemException
Specified by:
containsPermission in interface FileEntry
Throws:
PortalException
SystemException

getAttributes

public Map<String,Serializable> getAttributes()
Specified by:
getAttributes in interface RepositoryModel<FileEntry>

getCompanyId

public long getCompanyId()
Specified by:
getCompanyId in interface FileEntry
Specified by:
getCompanyId in interface AuditedModel

getContentStream

public InputStream getContentStream()
                             throws PortalException,
                                    SystemException
Description copied from interface: FileEntry
Retrieves the content stream of the current file version. In a Liferay repository, this is the latest approved version. In third-party repositories, this may be the latest content regardless of workflow state.

Specified by:
getContentStream in interface FileEntry
Returns:
content stream of the current file version
Throws:
PortalException
SystemException
See Also:
FileEntry.getFileVersion()

getContentStream

public InputStream getContentStream(String version)
                             throws PortalException,
                                    SystemException
Specified by:
getContentStream in interface FileEntry
Throws:
PortalException
SystemException

getCreateDate

public Date getCreateDate()
Specified by:
getCreateDate in interface FileEntry
Specified by:
getCreateDate in interface AuditedModel

getDescription

public String getDescription()
Specified by:
getDescription in interface FileEntry

getExpandoBridge

public ExpandoBridge getExpandoBridge()
Specified by:
getExpandoBridge in interface ClassedModel

getExtension

public String getExtension()
Specified by:
getExtension in interface FileEntry

getFileEntryId

public long getFileEntryId()
Specified by:
getFileEntryId in interface FileEntry

getFileVersion

public FileVersion getFileVersion()
                           throws PortalException,
                                  SystemException
Description copied from interface: FileEntry
Retrieves the current file version. The workflow state of the latest file version may affect what is returned by this method. In a Liferay repository, this will return the latest approved version; the latest version regardless of workflow state can be retrieved by FileEntry.getLatestFileVersion(). In third-party repositories, these two methods may function identically.

Specified by:
getFileVersion in interface FileEntry
Returns:
current file version
Throws:
PortalException
SystemException

getFileVersion

public FileVersion getFileVersion(String version)
                           throws PortalException,
                                  SystemException
Specified by:
getFileVersion in interface FileEntry
Throws:
PortalException
SystemException

getFileVersions

public List<FileVersion> getFileVersions(int status)
                                  throws SystemException
Specified by:
getFileVersions in interface FileEntry
Throws:
SystemException

getFolder

public Folder getFolder()
Specified by:
getFolder in interface FileEntry

getFolderId

public long getFolderId()
Specified by:
getFolderId in interface FileEntry

getGroupId

public long getGroupId()
Specified by:
getGroupId in interface FileEntry
Specified by:
getGroupId in interface GroupedModel

getIcon

public String getIcon()
Specified by:
getIcon in interface FileEntry

getLatestFileVersion

public FileVersion getLatestFileVersion()
                                 throws PortalException,
                                        SystemException
Description copied from interface: FileEntry
Retrieves the latest file version. In a Liferay repository, this means the latest version regardless of workflow state. In third-party repositories, this may have an identical functionality with FileEntry.getFileVersion().

Specified by:
getLatestFileVersion in interface FileEntry
Returns:
latest file version
Throws:
PortalException
SystemException

getLock

public Lock getLock()
Specified by:
getLock in interface FileEntry

getMimeType

public String getMimeType()
Specified by:
getMimeType in interface FileEntry

getMimeType

public String getMimeType(String version)
Specified by:
getMimeType in interface FileEntry

getModel

public Object getModel()
Specified by:
getModel in interface RepositoryModel<FileEntry>

getModelClass

public Class<?> getModelClass()
Specified by:
getModelClass in interface ClassedModel

getModelClassName

public String getModelClassName()
Specified by:
getModelClassName in interface ClassedModel

getModifiedDate

public Date getModifiedDate()
Specified by:
getModifiedDate in interface FileEntry
Specified by:
getModifiedDate in interface AuditedModel

getPrimaryKey

public long getPrimaryKey()
Specified by:
getPrimaryKey in interface RepositoryModel<FileEntry>

getPrimaryKeyObj

public Serializable getPrimaryKeyObj()
Specified by:
getPrimaryKeyObj in interface ClassedModel

getReadCount

public int getReadCount()
Specified by:
getReadCount in interface FileEntry

getRepositoryId

public long getRepositoryId()
Specified by:
getRepositoryId in interface FileEntry

getSize

public long getSize()
Specified by:
getSize in interface FileEntry

getTitle

public String getTitle()
Specified by:
getTitle in interface FileEntry

getUserId

public long getUserId()
Specified by:
getUserId in interface FileEntry
Specified by:
getUserId in interface AuditedModel

getUserName

public String getUserName()
Specified by:
getUserName in interface FileEntry
Specified by:
getUserName in interface AuditedModel

getUserUuid

public String getUserUuid()
                   throws SystemException
Specified by:
getUserUuid in interface FileEntry
Specified by:
getUserUuid in interface AuditedModel
Throws:
SystemException

getUuid

public String getUuid()
Specified by:
getUuid in interface FileEntry

getVersion

public String getVersion()
Specified by:
getVersion in interface FileEntry

getVersionUserId

public long getVersionUserId()
Specified by:
getVersionUserId in interface FileEntry

getVersionUserName

public String getVersionUserName()
Specified by:
getVersionUserName in interface FileEntry

getVersionUserUuid

public String getVersionUserUuid()
                          throws SystemException
Specified by:
getVersionUserUuid in interface FileEntry
Throws:
SystemException

hasLock

public boolean hasLock()
Specified by:
hasLock in interface FileEntry

isCheckedOut

public boolean isCheckedOut()
Specified by:
isCheckedOut in interface FileEntry

isDefaultRepository

public boolean isDefaultRepository()
Specified by:
isDefaultRepository in interface FileEntry

isEscapedModel

public boolean isEscapedModel()
Specified by:
isEscapedModel in interface RepositoryModel<FileEntry>

isSupportsLocking

public boolean isSupportsLocking()
Specified by:
isSupportsLocking in interface FileEntry

isSupportsMetadata

public boolean isSupportsMetadata()
Specified by:
isSupportsMetadata in interface FileEntry

isSupportsSocial

public boolean isSupportsSocial()
Specified by:
isSupportsSocial in interface FileEntry

setCompanyId

public void setCompanyId(long companyId)
Specified by:
setCompanyId in interface AuditedModel

setCreateDate

public void setCreateDate(Date date)
Specified by:
setCreateDate in interface AuditedModel

setGroupId

public void setGroupId(long groupId)
Specified by:
setGroupId in interface GroupedModel

setModifiedDate

public void setModifiedDate(Date date)
Specified by:
setModifiedDate in interface AuditedModel

setPrimaryKeyObj

public void setPrimaryKeyObj(Serializable primaryKeyObj)
Specified by:
setPrimaryKeyObj in interface ClassedModel

setUserId

public void setUserId(long userId)
Specified by:
setUserId in interface AuditedModel

setUserName

public void setUserName(String userName)
Specified by:
setUserName in interface AuditedModel

setUserUuid

public void setUserUuid(String userUuid)
Specified by:
setUserUuid in interface AuditedModel

toEscapedModel

public FileEntry toEscapedModel()
Specified by:
toEscapedModel in interface RepositoryModel<FileEntry>

toUnescapedModel

public FileEntry toUnescapedModel()
Specified by:
toUnescapedModel in interface RepositoryModel<FileEntry>

Liferay 6.1.2-ce-ga3