public class FileSystemAvatarBase extends AbstractAvatarBase implements org.beangle.commons.config.property.PropertyConfigListener
DEFAULT_AVATAR, readOnly, typeList, types| Constructor and Description |
|---|
FileSystemAvatarBase() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAbsoluteAvatarPath(String name,
String type)
根据名称和类型得到文件绝对路径
|
Avatar |
getAvatar(String name) |
String |
getAvatarDir() |
org.beangle.commons.collection.page.Page<String> |
getAvatarNames(org.beangle.commons.collection.page.PageLimit limit) |
String |
getDescription() |
void |
onConfigEvent(org.beangle.commons.config.property.PropertyConfigEvent event) |
void |
setAvatarDir(String avatarDir) |
void |
setPropertyConfig(org.beangle.commons.config.property.PropertyConfig config) |
boolean |
updateAvatar(String name,
File avatar,
String type) |
containType, getDefaultAvatar, getTypes, isReadOnly, setReadOnly, setTypes, updateAvatarBatchpublic org.beangle.commons.collection.page.Page<String> getAvatarNames(org.beangle.commons.collection.page.PageLimit limit)
getAvatarNames in interface AvatarBasepublic String getAbsoluteAvatarPath(String name, String type)
name - type - public Avatar getAvatar(String name)
getAvatar in interface AvatarBasepublic String getAvatarDir()
public void setAvatarDir(String avatarDir)
public String getDescription()
getDescription in interface AvatarBasepublic void setPropertyConfig(org.beangle.commons.config.property.PropertyConfig config)
public void onConfigEvent(org.beangle.commons.config.property.PropertyConfigEvent event)
onConfigEvent in interface org.beangle.commons.config.property.PropertyConfigListenerpublic boolean updateAvatar(String name, File avatar, String type)
updateAvatar in interface AvatarBaseupdateAvatar in class AbstractAvatarBaseCopyright © 2005–2014 The Beangle Software Group. All rights reserved.