com.ibm.commerce.context.content.resources.file.beans
Class ManagedFileListDataBean
- java.lang.Object
-
- com.ibm.commerce.beans.InputDataBeanImpl
-
- com.ibm.commerce.beans.SmartDataBeanImpl
-
- com.ibm.commerce.context.content.resources.file.beans.ManagedFileListDataBean
-
- All Implemented Interfaces:
- DataBean, InputDataBean, SmartDataBean, Delegator, Protectable, java.io.Serializable
public class ManagedFileListDataBean extends SmartDataBeanImpl implements Protectable, Delegator
The ManagedFileListDataBean can operate in two modes depending on the values of the file directory ID and the file full path.Mode 1: when the file directory ID is specified.
This ManagedFileListDataBean when populated will give a list of managed file databeans. The list contains all the managed files in the given directory.Mode 2: when the file full path is specified.
The ManagedFileListDataBean can be used to search managed files by the given file full path. The search is case sensitive. The search criteria can be starts with, contains, ends with and exact match.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.String
COPYRIGHT
The IBM copyright notice field.static java.lang.String
EXACT_MATCH
Case sensitive; exact matchstatic java.lang.String
MATCHCASE_CONTAINING
Case sensitive; containsstatic java.lang.String
MATCHCASE_ENDWITH
Case sensitive; ends withstatic java.lang.String
MATCHCASE_STARTWITH
Case sensitive; starts with-
Fields inherited from interface com.ibm.commerce.beans.DataBean
emptyString
-
-
Constructor Summary
Constructors Constructor and Description ManagedFileListDataBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description Protectable
getDelegate()
This method returns the Protectable object whose access control policies will indirectly control the access control for this object.java.lang.Long
getFileDirectoryId()
This method gets the file directory id.java.lang.String
getFilePath()
Get the file path.java.lang.String
getFilePathSearchCriteria()
Get file path search criteria.java.util.List
getManagedFiles()
This method returns the list of managed files.java.lang.Long
getOwner()
Return the member reference number of the owner.void
populate()
This method is used to populate the ManagedFileListDataBean.void
setFileDirectoryId(java.lang.Long aFileDirectoryId)
This method sets the file directory id.void
setFilePath(java.lang.String astrFilePath)
Set the file path.void
setFilePathSearchCriteria(java.lang.String astrFilePathSearchCriteria)
Set file path search criteria.void
setManagedFiles(java.util.List alstManagedFiles)
This method sets the list of managed files.-
Methods inherited from class com.ibm.commerce.beans.SmartDataBeanImpl
fulfills, getCommandContext, getHttpRequest, getHttpResponse, getResources, getViewCommandContext, setCommandContext, setHttpRequest, setHttpResponse, setViewCommandContext
-
Methods inherited from class com.ibm.commerce.beans.InputDataBeanImpl
getRequestProperties, setRequestProperties
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills
-
Methods inherited from interface com.ibm.commerce.beans.InputDataBean
getRequestProperties, setRequestProperties
-
-
-
-
Field Detail
-
COPYRIGHT
public static final java.lang.String COPYRIGHT
The IBM copyright notice field.- See Also:
- Constant Field Values
-
MATCHCASE_STARTWITH
public static final java.lang.String MATCHCASE_STARTWITH
Case sensitive; starts with- See Also:
- Constant Field Values
-
MATCHCASE_CONTAINING
public static final java.lang.String MATCHCASE_CONTAINING
Case sensitive; contains- See Also:
- Constant Field Values
-
MATCHCASE_ENDWITH
public static final java.lang.String MATCHCASE_ENDWITH
Case sensitive; ends with- See Also:
- Constant Field Values
-
EXACT_MATCH
public static final java.lang.String EXACT_MATCH
Case sensitive; exact match- See Also:
- Constant Field Values
-
-
Method Detail
-
setFileDirectoryId
public void setFileDirectoryId(java.lang.Long aFileDirectoryId)
This method sets the file directory id.- Parameters:
aFileDirectoryId
- the file directory id.
-
getFileDirectoryId
public java.lang.Long getFileDirectoryId()
This method gets the file directory id.- Returns:
- the file directory id.
-
getFilePath
public java.lang.String getFilePath()
Get the file path.- Returns:
- Returns the file path.
-
setFilePath
public void setFilePath(java.lang.String astrFilePath)
Set the file path.- Parameters:
astrFilePath
- The file path to set.
-
populate
public void populate() throws java.lang.Exception
This method is used to populate the ManagedFileListDataBean. The file directory ID must be set using the setFileDirectoryId method before running this method.- Specified by:
populate
in interfaceSmartDataBean
- Overrides:
populate
in classSmartDataBeanImpl
- Throws:
java.lang.Exception
-
getManagedFiles
public java.util.List getManagedFiles()
This method returns the list of managed files. The elements in the list are of type ManagedFileDataBean.- Returns:
- the list of managed files.
-
setManagedFiles
public void setManagedFiles(java.util.List alstManagedFiles)
This method sets the list of managed files.- Parameters:
alstManagedFiles
- The list of managed files.
-
getDelegate
public Protectable getDelegate() throws java.lang.Exception
This method returns the Protectable object whose access control policies will indirectly control the access control for this object.- Specified by:
getDelegate
in interfaceDelegator
- Returns:
- The Protectable object whose access control policies will indirectly control the access control for this object
- Throws:
java.lang.Exception
-
getOwner
public java.lang.Long getOwner() throws java.lang.Exception
Return the member reference number of the owner.- Specified by:
getOwner
in interfaceProtectable
- Returns:
- the member ID of the owner.
- Throws:
java.lang.Exception
- thrown when the owner's member ID cannot be retrieved through theStoreAccessBean
.
-
getFilePathSearchCriteria
public java.lang.String getFilePathSearchCriteria()
Get file path search criteria.- Returns:
- Returns the file path search criteria.
-
setFilePathSearchCriteria
public void setFilePathSearchCriteria(java.lang.String astrFilePathSearchCriteria)
Set file path search criteria.- Parameters:
astrFilePathSearchCriteria
- The file path search criteria to set.
-
-