public class FMobileUtils
extends java.lang.Object
构造器和说明 |
---|
FMobileUtils() |
限定符和类型 | 方法和说明 |
---|---|
static int |
compareVersion(java.lang.String version1,
java.lang.String version2)
fanglei: 比较版本号的大小,支持字母xx.1a, xx.2a这种
|
static boolean |
deleteMobileMessageById(long id)
根据消息id删除移动端消息
|
static boolean |
deleteMobileReadedMessage(java.lang.String userName)
删除所有移动端已读消息
|
static java.lang.Object |
field2Value(java.lang.Object field) |
static java.util.List<SystemMessage> |
getAppMessageList(java.lang.String userName)
获取包含了移动端app消息的消息列表
|
static boolean |
isUrlAbsolutePath(java.lang.String url)
判断url是相对路径还是绝对路径
|
static boolean |
setMobileMessageReaded(long id) |
static boolean |
setMobileMessageReaded(long userId,
java.lang.String groupId) |
static boolean |
setMobileMessageReaded(java.lang.String userName,
java.lang.String groupId) |
static java.lang.Object |
value2Field(java.lang.Class filedClazz,
java.lang.Object value) |
static void |
zip(org.apache.tools.zip.ZipOutputStream out,
java.util.List<java.io.File> files,
java.lang.String base) |
public static java.lang.Object field2Value(java.lang.Object field)
public static java.lang.Object value2Field(java.lang.Class filedClazz, java.lang.Object value)
public static boolean isUrlAbsolutePath(java.lang.String url)
url
- public static int compareVersion(java.lang.String version1, java.lang.String version2)
version1
- Stringversion2
- Stringpublic static java.util.List<SystemMessage> getAppMessageList(java.lang.String userName) throws java.lang.Exception
userName
- 当前用户java.lang.Exception
public static boolean deleteMobileMessageById(long id) throws java.lang.Exception
id
- 移动端消息idjava.lang.Exception
public static boolean deleteMobileReadedMessage(java.lang.String userName) throws java.lang.Exception
userName
- 当前用户java.lang.Exception
public static boolean setMobileMessageReaded(long id) throws java.lang.Exception
java.lang.Exception
public static boolean setMobileMessageReaded(long userId, java.lang.String groupId) throws java.lang.Exception
java.lang.Exception
public static boolean setMobileMessageReaded(java.lang.String userName, java.lang.String groupId) throws java.lang.Exception
java.lang.Exception
public static void zip(org.apache.tools.zip.ZipOutputStream out, java.util.List<java.io.File> files, java.lang.String base) throws java.lang.Exception
java.lang.Exception