|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectspcp7.imagegallery.abstractionlayer.util.ContentDTO
public class ContentDTO
If contemt is returned this implementation of the ContentFace should be used.
| Constructor Summary | |
|---|---|
ContentDTO()
Empty default constructor. |
|
| Method Summary | |
|---|---|
int |
compareTo(ContentFace cf)
Will be string compared by its getName(). |
java.lang.String |
getContentProviderTypeId()
Gets the typeId of the content provider which returned this content instance |
java.lang.String |
getFileExtension()
The file extension of this content. |
java.lang.String |
getName()
The name of this content for display purposes. |
java.util.Map<java.lang.String,PropertyModelFace> |
getParentContentFolderProperties()
|
java.lang.String |
getPath()
This method returns the full system path to this content. |
java.lang.String |
getProprietaryId()
This method should get the proprietary id of the content instance. |
java.lang.String |
getUrl()
This method returns the http retrievable url of this content instance. |
boolean |
isDirectory()
This method returns true if this content instance is a folder or folder like volume which can contain other volumes. |
boolean |
isImage()
This method returns true if this content instance is an image |
void |
setContentProviderTypeId(java.lang.String contentProviderTypeId)
Sets the typeID of the content provider which returned this content instance |
void |
setDirectory(boolean directory)
|
void |
setFileExtension(java.lang.String fileExtension)
|
void |
setImage(boolean image)
|
void |
setName(java.lang.String name)
|
void |
setParentContentFolderProperties(java.util.Map<java.lang.String,PropertyModelFace> parentContentFolderProperties)
|
void |
setPath(java.lang.String path)
|
void |
setProprietaryId(java.lang.String id)
Sets the proprietary id. |
void |
setUrl(java.lang.String url)
Sets the url of this content instance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContentDTO()
| Method Detail |
|---|
public java.lang.String getFileExtension()
ContentFace
getFileExtension in interface ContentFaceContentFace.getFileExtension()public java.lang.String getName()
ContentFace
getName in interface ContentFaceContentFace.getName()public java.lang.String getPath()
ContentFaceContentFace.getProprietaryId() because this must be a real full path
like "/test/test2/test.jpg".
getPath in interface ContentFaceContentFace.getPath()public java.lang.String getUrl()
ContentFace
getUrl in interface ContentFaceContentFace.getUrl()public void setFileExtension(java.lang.String fileExtension)
setFileExtension in interface ContentFacefileExtension - The file extension of this content.ContentFace.setFileExtension(java.lang.String)public void setName(java.lang.String name)
setName in interface ContentFacename - The new name of this content.ContentFace.setName(java.lang.String)public void setPath(java.lang.String path)
setPath in interface ContentFacepath - The path to setContentFace.setPath(java.lang.String)public void setUrl(java.lang.String url)
ContentFace
setUrl in interface ContentFaceurl - the http retrievable url of this content instance.ContentFace.setUrl(java.lang.String)public java.lang.String getProprietaryId()
ContentFace
getProprietaryId in interface ContentFaceContentFace.getProprietaryId()public void setProprietaryId(java.lang.String id)
ContentFace
setProprietaryId in interface ContentFaceContentFace.setProprietaryId(java.lang.String)public int compareTo(ContentFace cf)
getName().
compareTo in interface java.lang.Comparable<ContentFace>Comparable.compareTo(java.lang.Object)public boolean isDirectory()
ContentFace
isDirectory in interface ContentFaceContentFace.isDirectory()public boolean isImage()
ContentFace
isImage in interface ContentFaceContentFace.isImage()public void setDirectory(boolean directory)
setDirectory in interface ContentFacedirectory - True if this is a directory otherwise falseContentFace.setDirectory(boolean)public void setImage(boolean image)
setImage in interface ContentFaceimage - True if this is an image, false otherwiseContentFace.setImage(boolean)public java.util.Map<java.lang.String,PropertyModelFace> getParentContentFolderProperties()
getParentContentFolderProperties in interface ContentFaceContentFace.getParentContentFolderProperties()public void setParentContentFolderProperties(java.util.Map<java.lang.String,PropertyModelFace> parentContentFolderProperties)
setParentContentFolderProperties in interface ContentFaceparentContentFolderProperties - The property map with which this content instance was
created.ContentFace.setParentContentFolderProperties(java.util.Map)public java.lang.String getContentProviderTypeId()
ContentFace
getContentProviderTypeId in interface ContentFaceContentFace.getContentProviderTypeId()public void setContentProviderTypeId(java.lang.String contentProviderTypeId)
ContentFace
setContentProviderTypeId in interface ContentFacecontentProviderTypeId - The content provider type IdContentFace.setContentProviderTypeId(java.lang.String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||