|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.dotmarketing.beans.Inode
com.dotmarketing.beans.WebAsset
com.dotmarketing.portlets.files.model.File
public class File
| Field Summary | |
|---|---|
static java.lang.String |
UNKNOWN_MIME_TYPE
|
| Fields inherited from class com.dotmarketing.beans.Inode |
|---|
inode, owner |
| Constructor Summary | |
|---|---|
File()
default constructor |
|
| Method Summary | |
|---|---|
java.util.List<PermissionSummary> |
acceptedPermissions()
Returns the list of accepted permission of this permissionable (I.E. |
int |
compareTo(File compObject)
|
void |
copy(File newFile)
|
boolean |
equals(java.lang.Object other)
|
java.lang.String |
getAuthor()
Returns the author. |
java.lang.String[] |
getCategories()
Returns the categories. |
java.lang.String |
getExtension()
|
java.lang.String |
getFileName()
|
int |
getHeight()
Returns the height. |
java.lang.String |
getInode()
|
java.util.Map<java.lang.String,java.lang.Object> |
getMap()
This method returns a map with all the file attributes |
int |
getMaxHeight()
Returns the maxHeight. |
int |
getMaxSize()
Returns the maxSize. |
int |
getMaxWidth()
Returns the maxWidth. |
java.lang.String |
getMimeType()
Returns the mimeType. |
int |
getMinHeight()
Returns the minHeight. |
java.lang.String |
getNameOnly()
|
java.lang.String |
getParent()
Returns the parent. |
Permissionable |
getParentPermissionable()
Retrieves the parent permissionable in the chain of permissions inheritance |
java.lang.String |
getPath()
|
java.util.Date |
getPublishDate()
Returns the publishDate. |
int |
getSize()
|
java.lang.String |
getURI()
|
java.lang.String |
getURI(Folder folder)
|
int |
getWidth()
Returns the width. |
int |
hashCode()
|
void |
setAuthor(java.lang.String author)
Sets the author. |
void |
setCategories(java.lang.String[] categories)
Sets the categories. |
void |
setFileName(java.lang.String fileName)
|
void |
setHeight(int height)
Sets the height. |
void |
setInode(java.lang.String inode)
Sets the inode. |
void |
setMaxHeight(int maxHeight)
Sets the maxHeight. |
void |
setMaxSize(int maxSize)
Sets the maxSize. |
void |
setMaxWidth(int maxWidth)
Sets the maxWidth. |
void |
setMimeType(java.lang.String mimeType)
Sets the mimeType. |
void |
setMinHeight(int minHeight)
Sets the minHeight. |
void |
setParent(java.lang.String parent)
Sets the parent. |
void |
setPublishDate(java.util.Date publishDate)
Sets the publishDate. |
void |
setSize(int size)
|
void |
setWidth(int width)
Sets the width. |
java.lang.String |
toString()
|
| Methods inherited from class com.dotmarketing.beans.WebAsset |
|---|
copy, getFriendlyName, getModDate, getModUser, getOwner, getPermissionId, getSortOrder, getTitle, getVersionId, isArchived, isDeleted, isLive, isLocked, isShowOnMenu, isWorking, setDeleted, setFriendlyName, setLive, setLocked, setModDate, setModUser, setShowOnMenu, setSortOrder, setTitle, setWorking |
| Methods inherited from class com.dotmarketing.beans.Inode |
|---|
addChild, addChild, addChild, addParent, addParent, compareTo, deleteChild, deleteChild, deleteParent, deleteParent, getCategoryId, getiDate, getIDate, getIdentifier, getPermissionType, getType, getVersionType, hasChildren, hasParents, isNew, isParentPermissionable, permissionDependencies, setiDate, setIDate, setIDate, setIdentifier, setOwner, setParents, setType, setVersionId |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.dotmarketing.business.Permissionable |
|---|
getPermissionType, isParentPermissionable, permissionDependencies, setOwner |
| Methods inherited from interface com.dotmarketing.business.Versionable |
|---|
getVersionType, setVersionId |
| Field Detail |
|---|
public static final java.lang.String UNKNOWN_MIME_TYPE
| Constructor Detail |
|---|
public File()
| Method Detail |
|---|
public java.lang.String getURI(Folder folder)
getURI in class WebAssetpublic java.lang.String getURI()
public java.lang.String getPath()
public java.lang.String getInode()
getInode in interface UUIDablegetInode in interface VersionablegetInode in class Inodepublic void setInode(java.lang.String inode)
Inode
setInode in interface UUIDablesetInode in class Inodeinode - The inode to setpublic java.lang.String getFileName()
public void setFileName(java.lang.String fileName)
public int getSize()
public void setSize(int size)
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class Inodepublic int hashCode()
hashCode in class Inodepublic int getMaxHeight()
public int getMaxSize()
public int getMaxWidth()
public int getMinHeight()
public void setMaxHeight(int maxHeight)
maxHeight - The maxHeight to setpublic void setMaxSize(int maxSize)
maxSize - The maxSize to setpublic void setMaxWidth(int maxWidth)
maxWidth - The maxWidth to setpublic void setMinHeight(int minHeight)
minHeight - The minHeight to setpublic java.lang.String getParent()
public void setParent(java.lang.String parent)
parent - The parent to setpublic void copy(File newFile)
public java.lang.String getMimeType()
public void setMimeType(java.lang.String mimeType)
mimeType - The mimeType to setpublic int getHeight()
public int getWidth()
public java.lang.String getExtension()
public java.lang.String getNameOnly()
public void setHeight(int height)
height - The height to setpublic void setWidth(int width)
width - The width to setpublic int compareTo(File compObject)
public java.lang.String getAuthor()
public java.util.Date getPublishDate()
public void setAuthor(java.lang.String author)
author - The author to setpublic void setPublishDate(java.util.Date publishDate)
publishDate - The publishDate to setpublic java.lang.String[] getCategories()
public void setCategories(java.lang.String[] categories)
categories - The categories to setpublic java.util.Map<java.lang.String,java.lang.Object> getMap()
getMap in class WebAssetpublic java.util.List<PermissionSummary> acceptedPermissions()
Permissionable
acceptedPermissions in interface PermissionableacceptedPermissions in class Inode
public Permissionable getParentPermissionable()
throws DotDataException
Permissionable
getParentPermissionable in interface PermissionablegetParentPermissionable in class InodeDotDataException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||