|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IContentLocation
A Content location is analagous to a folder. It is the location of the content.
IContentItem
,
IContentRepository
Method Summary | |
---|---|
IContentItem |
getContentItemById(String contentItemId)
Gets a content item by its Id - this is the most efficient way to get a content item from a location |
IContentItem |
getContentItemByName(String name)
Gets a child content item by name. |
IContentItem |
getContentItemByPath(String path)
Returns the contentitem with the specified path |
Iterator |
getContentItemIterator()
Iterates over registered content items. |
String |
getDescription()
|
String |
getDirPath()
|
String |
getId()
|
String |
getName()
|
int |
getRevision()
|
String |
getSolutionId()
|
File |
makeSubdirectory(String subDirName)
Creates a subdirectory in the content location. |
IContentItem |
newContentItem(String name,
String title,
String extension,
String mimeType,
String url,
int writeMode)
Create a new ContentItem parented to this content location. |
IContentItem |
newContentItem(String contentId,
String name,
String title,
String extension,
String mimeType,
String url,
int writeMode)
Create a new ContentItem parented to this content location. |
Method Detail |
---|
IContentItem newContentItem(String name, String title, String extension, String mimeType, String url, int writeMode) throws ContentException
name
- The name of the content itemtitle
- The title of the content itemextension
- The extension (i.e. .txt or .pdf) of the content item.mimeType
- The mime type of the content itemurl
- Optional URL to get to the content.writeMode
- The write mode of the content item. Please see IContentItem
for valid write modes
ContentException
IContentItem newContentItem(String contentId, String name, String title, String extension, String mimeType, String url, int writeMode) throws ContentException
contentId
- The Identifier for the new content itemname
- The name of the content itemtitle
- The title of the content itemextension
- The extension (i.e. .txt or .pdf) of the content item.mimeType
- The mime type of the content itemurl
- Optional URL to get to the content.writeMode
- The write mode of the content item. Please see IContentItem
for valid write modes
ContentException
int getRevision()
Iterator getContentItemIterator()
IContentItem getContentItemById(String contentItemId)
contentItemId
- The id to retrieve
IContentItem getContentItemByName(String name)
name
- The name to find
IContentItem getContentItemByPath(String path)
path
- The path to look for
File makeSubdirectory(String subDirName) throws ContentException
subDirName
- The directory name to create
ContentException
String getDirPath()
String getId()
String getName()
String getSolutionId()
String getDescription()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |