Package org.beangle.ems.avatar.service
Class AbstractAvatarBase
- java.lang.Object
-
- org.beangle.ems.avatar.service.AbstractAvatarBase
-
- All Implemented Interfaces:
AvatarBase
- Direct Known Subclasses:
DataBaseAvatarBase,FileSystemAvatarBase
public abstract class AbstractAvatarBase extends Object implements AvatarBase
-
-
Constructor Summary
Constructors Constructor Description AbstractAvatarBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleancontainType(String type)AvatargetDefaultAvatar()Set<String>getTypes()booleanisReadOnly()voidsetReadOnly(boolean readOnly)voidsetTypes(Set<String> types)abstract booleanupdateAvatar(String name, File file, String type)intupdateAvatarBatch(File zipFile)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.beangle.ems.avatar.service.AvatarBase
getAvatar, getAvatarNames, getDescription
-
-
-
-
Method Detail
-
containType
public boolean containType(String type)
- Specified by:
containTypein interfaceAvatarBase
-
getTypes
public Set<String> getTypes()
- Specified by:
getTypesin interfaceAvatarBase
-
getDefaultAvatar
public Avatar getDefaultAvatar()
- Specified by:
getDefaultAvatarin interfaceAvatarBase
-
isReadOnly
public boolean isReadOnly()
- Specified by:
isReadOnlyin interfaceAvatarBase
-
setReadOnly
public void setReadOnly(boolean readOnly)
-
updateAvatarBatch
public int updateAvatarBatch(File zipFile)
- Specified by:
updateAvatarBatchin interfaceAvatarBase
-
updateAvatar
public abstract boolean updateAvatar(String name, File file, String type)
- Specified by:
updateAvatarin interfaceAvatarBase
-
-