public class ManagedFileAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements com.ibm.commerce.context.content.resources.file.objects.ManagedFileAccessBeanData
Constructor and Description |
---|
ManagedFileAccessBean()
ManagedFileAccessBean
|
ManagedFileAccessBean(javax.ejb.EJBObject o)
ManagedFileAccessBean
|
ManagedFileAccessBean(com.ibm.commerce.context.content.objects.EntityCreationData entityCreationData)
Creates a new managed file.
|
Modifier and Type | Method and Description |
---|---|
void | commitCopyHelper()
commitCopyHelper
|
java.lang.String | defaultJNDIName()
defaultJNDIName
|
java.util.Collection | findByFileDirectoryId(java.lang.Long fileDirId)
Finds all the managed file with the same file directory ID.
|
ManagedFileAccessBean | findByFilePath(java.lang.String filePath)
Finds the managed file that matches the specified file path.
|
java.util.Collection | findByPromoteToFS(java.lang.Short anPromoteToFS)
Finds all the managed file with the specified promote to file system flag.
|
java.util.Collection | findByPromoteToFSAndBeforeUploadTimestamp(java.lang.Short anPromoteToFS, java.sql.Timestamp atmLastUploadTimestamp)
Finds all the managed file with the specified promote to file system flag and before a specified upload time.
|
java.util.Collection | findByPromoteToFSAndPublished(java.lang.Short anPromoteToFS, java.lang.Short anPublished)
Finds all the managed file with the specified promote to file system flag and published flag.
|
java.util.Collection | findByPromoteToFSAndPublishedAndBeforeUploadTimestamp(java.lang.Short anPromoteToFS, java.lang.Short anPublished, java.sql.Timestamp atmLastUploadTimestamp)
Finds all the managed file with the specified promote to file system flag and published flag and before a specified upload time.
|
java.lang.Short | getAssociated()
Returns whether the managed file is associated with a business object.
|
byte[] | getFile(java.lang.String contentWorkspace)
Returns the file contents for the managed file for the specified workspace.
|
java.lang.Long | getFileDirId()
getFileDirId
|
java.lang.Long | getFileId()
Returns the managed file identifier.
|
java.lang.String | getFilePath()
Returns the file path of the managed file.
|
java.lang.Long | getFileSize()
Returns the file size of the managed file.
|
java.lang.Short | getPromotedToFileSystem()
Retrieves whether the file was promoted to the file system.
|
java.sql.Timestamp | getPromotedToFileSystemTimestamp()
Returns when the file was promted to the files system.
|
java.lang.Short | getPublished()
Gets the published flag.
|
java.sql.Timestamp | getUploadTimestamp()
Returns when the file was uploaded.
|
protected void | instantiateEJB()
instantiateEJB
|
protected boolean | instantiateEJBByPrimaryKey()
instantiateEJBByPrimaryKey
|
void | refreshCopyHelper()
refreshCopyHelper
|
void | setAssociated(java.lang.Short newAssociated)
Sets whether the managed file is associated with a business object.
|
void | setFile(byte[] bytes, java.lang.String contentWorkspace)
Sets the file contents for the managed file for the specified workspace.
|
void | setFileDirId(java.lang.Long newValue)
setFileDirId
|
void | setFileId(java.lang.Long fileId)
Sets the managed file identifier.
|
void | setFilePath(java.lang.String newFilePath)
Sets the file path of the managed file.
|
void | setFileSize(java.lang.Long newValue)
setFileSize
|
void | setInit_primaryKey(java.lang.Long newValue)
setInit_primaryKey
|
void | setPromotedToFileSystem(java.lang.Short newPromteToFileSystem)
Sets whether the file was promoted.
|
void | setPromotedToFileSystemTimestamp(java.sql.Timestamp newPromoteToFileSystemTimestamp)
Sets when the file system was promoeted.
|
void | setPublished(java.lang.Short newPublished)
Sets the published flag.
|
public ManagedFileAccessBean()
public ManagedFileAccessBean(javax.ejb.EJBObject o) throws java.rmi.RemoteException
public ManagedFileAccessBean(com.ibm.commerce.context.content.objects.EntityCreationData entityCreationData) throws javax.naming.NamingException, javax.ejb.CreateException, java.rmi.RemoteException
public java.lang.Long getFileId() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public void setFileId(java.lang.Long fileId)
public java.lang.String getFilePath() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public void setFilePath(java.lang.String newFilePath)
public java.lang.Short getAssociated() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public void setAssociated(java.lang.Short newAssociated)
public void setInit_primaryKey(java.lang.Long newValue)
public java.lang.String defaultJNDIName()
protected void instantiateEJB() throws javax.naming.NamingException, javax.ejb.FinderException, java.rmi.RemoteException
protected boolean instantiateEJBByPrimaryKey() throws javax.ejb.CreateException, java.rmi.RemoteException, javax.naming.NamingException
public void refreshCopyHelper() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public void commitCopyHelper() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public byte[] getFile(java.lang.String contentWorkspace) throws javax.naming.NamingException, javax.ejb.FinderException, java.rmi.RemoteException
public ManagedFileAccessBean findByFilePath(java.lang.String filePath) throws javax.naming.NamingException, javax.ejb.FinderException, java.rmi.RemoteException
EJBQL:
select object(o) from ManagedFile o where o.filePath= filePath
public void setFile(byte[] bytes, java.lang.String contentWorkspace) throws javax.naming.NamingException, javax.ejb.FinderException, javax.ejb.CreateException, java.rmi.RemoteException
public java.lang.Long getFileDirId() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public void setFileDirId(java.lang.Long newValue)
public java.util.Collection findByFileDirectoryId(java.lang.Long fileDirId) throws javax.naming.NamingException, javax.ejb.FinderException, java.rmi.RemoteException
EJBQL:
select object(o) from ManagedFile o where o.fileDirId = fileDirId
public java.lang.Long getFileSize() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public void setFileSize(java.lang.Long newValue)
public java.lang.Short getPublished() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public void setPublished(java.lang.Short newPublished)
public java.util.Collection findByPromoteToFSAndPublished(java.lang.Short anPromoteToFS, java.lang.Short anPublished) throws javax.naming.NamingException, javax.ejb.FinderException, java.rmi.RemoteException
EJBQL:
select object(o) from ManagedFile o where o.promotedToFileSystem = anPromoteToFS and o.published = anPublished
public java.util.Collection findByPromoteToFS(java.lang.Short anPromoteToFS) throws javax.naming.NamingException, javax.ejb.FinderException, java.rmi.RemoteException
EJBQL:
select object(o) from ManagedFile o where o.promotedToFileSystem = anPromoteToFS
public java.sql.Timestamp getPromotedToFileSystemTimestamp() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public void setPromotedToFileSystem(java.lang.Short newPromteToFileSystem)
public java.sql.Timestamp getUploadTimestamp() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public java.lang.Short getPromotedToFileSystem() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public void setPromotedToFileSystemTimestamp(java.sql.Timestamp newPromoteToFileSystemTimestamp)
public java.util.Collection findByPromoteToFSAndPublishedAndBeforeUploadTimestamp(java.lang.Short anPromoteToFS, java.lang.Short anPublished, java.sql.Timestamp atmLastUploadTimestamp) throws javax.naming.NamingException, javax.ejb.FinderException, java.rmi.RemoteException
EJBQL:
select object(o) from ManagedFile o where o.promotedToFileSystem = anPromoteToFS and o.published = anPublished and o.uploadTimestamp atmLastUploadTimestamp
public java.util.Collection findByPromoteToFSAndBeforeUploadTimestamp(java.lang.Short anPromoteToFS, java.sql.Timestamp atmLastUploadTimestamp) throws javax.naming.NamingException, javax.ejb.FinderException, java.rmi.RemoteException
EJBQL:
select object(o) from ManagedFile o where o.promotedToFileSystem = anPromoteToFS and o.uploadTimestamp atmLastUploadTimestamp