Class FileSystemAvatarBase

  • All Implemented Interfaces:
    EventListener, org.beangle.commons.config.property.PropertyConfigListener, AvatarBase

    public class FileSystemAvatarBase
    extends AbstractAvatarBase
    implements org.beangle.commons.config.property.PropertyConfigListener
    基于文件系统的照片库
    Author:
    chaostone
    • Constructor Detail

      • FileSystemAvatarBase

        public FileSystemAvatarBase()
    • Method Detail

      • getAvatarNames

        public org.beangle.commons.collection.page.Page<String> getAvatarNames​(org.beangle.commons.collection.page.PageLimit limit)
        Specified by:
        getAvatarNames in interface AvatarBase
      • getAbsoluteAvatarPath

        public String getAbsoluteAvatarPath​(String name,
                                            String type)
        根据名称和类型得到文件绝对路径
        Parameters:
        name -
        type -
      • getAvatarDir

        public String getAvatarDir()
      • setAvatarDir

        public void setAvatarDir​(String avatarDir)
      • setPropertyConfig

        public void setPropertyConfig​(org.beangle.commons.config.property.PropertyConfig config)
      • onConfigEvent

        public void onConfigEvent​(org.beangle.commons.config.property.PropertyConfigEvent event)
        Specified by:
        onConfigEvent in interface org.beangle.commons.config.property.PropertyConfigListener