限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
CONFIG_CODE |
static java.lang.String |
CONFIG_CODE_DESCRIPTION |
static java.lang.String |
CONFIG_LOCK_COMMENT_MAX_COUNT |
static java.lang.String |
CONFIG_LOCK_CONTRIBUTE_MAX_COUNT |
static java.lang.String |
CONFIG_LOCK_EXPIRY_COMMENT |
static java.lang.String |
CONFIG_LOCK_EXPIRY_CONTRIBUTE |
static java.lang.String |
CONFIG_LOCK_EXPIRY_FILEUPLOAD |
static java.lang.String |
CONFIG_LOCK_EXPIRY_FILEUPLOAD_PRIVATE |
static java.lang.String |
CONFIG_LOCK_EXPIRY_FILEUPLOAD_SIZE |
static java.lang.String |
CONFIG_LOCK_EXPIRY_LOGIN |
static java.lang.String |
CONFIG_LOCK_EXPIRY_MINUTES |
static java.lang.String |
CONFIG_LOCK_EXPIRY_REGISTER |
static java.lang.String |
CONFIG_LOCK_EXPIRY_SURVEY |
static java.lang.String |
CONFIG_LOCK_EXPIRY_VOTE |
static java.lang.String |
CONFIG_LOCK_FILEUPLOAD_MAX_COUNT |
static java.lang.String |
CONFIG_LOCK_FILEUPLOAD_MAX_SIZE |
static java.lang.String |
CONFIG_LOCK_FILEUPLOAD_PRIVATE_MAX_SIZE |
static java.lang.String |
CONFIG_LOCK_IP_LOGIN_MAX_COUNT |
static java.lang.String |
CONFIG_LOCK_IP_SURVEY_MAX_COUNT |
static java.lang.String |
CONFIG_LOCK_IP_VOTE_MAX_COUNT |
static java.lang.String |
CONFIG_LOCK_LOGIN_MAX_COUNT |
static java.lang.String |
CONFIG_LOCK_REGISTER_MAX_COUNT |
private ConfigDataComponent |
configDataComponent |
static int |
DEFAULT_EXPIRY_MINUTES
default expiry minutes
|
static int |
DEFAULT_IP_LOGIN_MAX_COUNT
default login max count
|
static int |
DEFAULT_LOGIN_EXPIRY_MINUTES
default login expiry minutes
|
static int |
DEFAULT_OPERATE_EXPIRY_MINUTES
default operate max minutes
|
static int |
DEFAULT_OPERATE_MAX_COUNT
default operate max count
|
static int |
DEFAULT_OPERATE_MAX_SIZE
default operate max size
|
static int |
DEFAULT_REGISTER_EXPIRY_MINUTES
default register expiry minutes
|
static java.lang.String |
ITEM_TYPE_COMMENT |
static java.lang.String |
ITEM_TYPE_CONTRIBUTE |
static java.lang.String |
ITEM_TYPE_FILEUPLOAD |
static java.lang.String |
ITEM_TYPE_FILEUPLOAD_PRIVATE_SIZE |
static java.lang.String |
ITEM_TYPE_FILEUPLOAD_SIZE |
static java.lang.String |
ITEM_TYPE_IP_LOGIN |
static java.lang.String |
ITEM_TYPE_IP_SURVEY |
static java.lang.String |
ITEM_TYPE_IP_VOTE |
static java.lang.String |
ITEM_TYPE_LOGIN |
private static java.lang.String[] |
ITEM_TYPE_LOGINS |
static java.lang.String |
ITEM_TYPE_REGISTER |
private SysLockService |
service |
static java.lang.String[] |
SYSTEM_ITEM_TYPES |
CONFIG_CODE_DESCRIPTION_SUFFIX, CONFIGPREFIX, INPUT_TYPE_EDITORS, INPUT_TYPE_FILES, INPUT_TYPE_PRIVATE_FILES, INPUTTYPE_BOOLEAN, INPUTTYPE_CAPTCHA, INPUTTYPE_CATEGORY, INPUTTYPE_CATEGORY_PATH, INPUTTYPE_CATEGORYTYPE, INPUTTYPE_COLOR, INPUTTYPE_CONTENT, INPUTTYPE_CONTENT_STATUS, INPUTTYPE_DATE, INPUTTYPE_DATETIME, INPUTTYPE_DEPT, INPUTTYPE_DICTIONARY, INPUTTYPE_EMAIL, INPUTTYPE_FILE, INPUTTYPE_IMAGE, INPUTTYPE_KEYVALUE, INPUTTYPE_KEYWORDS, INPUTTYPE_LANG, INPUTTYPE_MODULE, INPUTTYPE_NUMBER, INPUTTYPE_PASSWORD, INPUTTYPE_PRIVATEFILE, INPUTTYPE_PRIVATEIMAGE, INPUTTYPE_PRIVATEVIDEO, INPUTTYPE_SURVEY, INPUTTYPE_TAG, INPUTTYPE_TAGTYPE, INPUTTYPE_TEMPLATE, INPUTTYPE_TEXT, INPUTTYPE_TEXTAREA, INPUTTYPE_TIME, INPUTTYPE_USER, INPUTTYPE_VIDEO, INPUTTYPE_VOTE
构造器和说明 |
---|
LockComponent() |
限定符和类型 | 方法和说明 |
---|---|
void |
clear() |
void |
clear(short siteId) |
boolean |
exportable() |
java.lang.String |
getCode(short siteId,
boolean showAll) |
java.lang.String |
getCodeDescription(java.util.Locale locale) |
int |
getExpriy(short siteId,
java.lang.String itemType) |
java.util.List<SysExtendField> |
getExtendFieldList(SysSite site,
java.util.Locale locale) |
boolean |
isLocked(short siteId,
java.lang.String itemType,
java.lang.String itemId,
java.lang.Long userId) |
SysLock |
lock(short siteId,
java.lang.String itemType,
java.lang.String itemId,
java.lang.Long userId) |
SysLock |
lock(short siteId,
java.lang.String itemType,
java.lang.String itemId,
java.lang.Long userId,
boolean counter) |
SysLock |
lock(short siteId,
java.lang.String itemType,
java.lang.String itemId,
java.lang.Long userId,
int counter) |
void |
unLock(short siteId,
java.lang.String itemType,
java.lang.String itemId,
java.lang.Long userId) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCode, getMessage
public static final java.lang.String ITEM_TYPE_LOGIN
public static final java.lang.String ITEM_TYPE_IP_LOGIN
public static final java.lang.String ITEM_TYPE_IP_VOTE
public static final java.lang.String ITEM_TYPE_IP_SURVEY
public static final java.lang.String ITEM_TYPE_REGISTER
public static final java.lang.String ITEM_TYPE_FILEUPLOAD
public static final java.lang.String ITEM_TYPE_FILEUPLOAD_SIZE
public static final java.lang.String ITEM_TYPE_FILEUPLOAD_PRIVATE_SIZE
public static final java.lang.String ITEM_TYPE_CONTRIBUTE
public static final java.lang.String ITEM_TYPE_COMMENT
public static final java.lang.String[] SYSTEM_ITEM_TYPES
private static final java.lang.String[] ITEM_TYPE_LOGINS
public static final java.lang.String CONFIG_CODE
public static final java.lang.String CONFIG_CODE_DESCRIPTION
public static final java.lang.String CONFIG_LOCK_EXPIRY_MINUTES
public static final java.lang.String CONFIG_LOCK_EXPIRY_LOGIN
public static final java.lang.String CONFIG_LOCK_LOGIN_MAX_COUNT
public static final java.lang.String CONFIG_LOCK_IP_LOGIN_MAX_COUNT
public static final java.lang.String CONFIG_LOCK_EXPIRY_REGISTER
public static final java.lang.String CONFIG_LOCK_REGISTER_MAX_COUNT
public static final java.lang.String CONFIG_LOCK_EXPIRY_FILEUPLOAD
public static final java.lang.String CONFIG_LOCK_EXPIRY_FILEUPLOAD_SIZE
public static final java.lang.String CONFIG_LOCK_EXPIRY_FILEUPLOAD_PRIVATE
public static final java.lang.String CONFIG_LOCK_FILEUPLOAD_MAX_COUNT
public static final java.lang.String CONFIG_LOCK_FILEUPLOAD_MAX_SIZE
public static final java.lang.String CONFIG_LOCK_FILEUPLOAD_PRIVATE_MAX_SIZE
public static final java.lang.String CONFIG_LOCK_EXPIRY_CONTRIBUTE
public static final java.lang.String CONFIG_LOCK_CONTRIBUTE_MAX_COUNT
public static final java.lang.String CONFIG_LOCK_EXPIRY_COMMENT
public static final java.lang.String CONFIG_LOCK_COMMENT_MAX_COUNT
public static final java.lang.String CONFIG_LOCK_EXPIRY_VOTE
public static final java.lang.String CONFIG_LOCK_IP_VOTE_MAX_COUNT
public static final java.lang.String CONFIG_LOCK_EXPIRY_SURVEY
public static final java.lang.String CONFIG_LOCK_IP_SURVEY_MAX_COUNT
public static final int DEFAULT_EXPIRY_MINUTES
public static final int DEFAULT_OPERATE_EXPIRY_MINUTES
public static final int DEFAULT_OPERATE_MAX_COUNT
public static final int DEFAULT_OPERATE_MAX_SIZE
public static final int DEFAULT_LOGIN_EXPIRY_MINUTES
public static final int DEFAULT_IP_LOGIN_MAX_COUNT
public static final int DEFAULT_REGISTER_EXPIRY_MINUTES
private SysLockService service
private ConfigDataComponent configDataComponent
public int getExpriy(short siteId, java.lang.String itemType)
siteId
- itemType
- public boolean isLocked(short siteId, java.lang.String itemType, java.lang.String itemId, java.lang.Long userId)
siteId
- itemType
- itemId
- userId
- public void unLock(short siteId, java.lang.String itemType, java.lang.String itemId, java.lang.Long userId)
siteId
- itemType
- itemId
- userId
- public SysLock lock(short siteId, java.lang.String itemType, java.lang.String itemId, java.lang.Long userId)
siteId
- itemType
- itemId
- userId
- public SysLock lock(short siteId, java.lang.String itemType, java.lang.String itemId, java.lang.Long userId, boolean counter)
siteId
- itemType
- itemId
- userId
- counter
- public SysLock lock(short siteId, java.lang.String itemType, java.lang.String itemId, java.lang.Long userId, int counter)
siteId
- itemType
- itemId
- userId
- counter
- public java.lang.String getCode(short siteId, boolean showAll)
public java.lang.String getCodeDescription(java.util.Locale locale)
getCodeDescription
在接口中 Config
locale
- public java.util.List<SysExtendField> getExtendFieldList(SysSite site, java.util.Locale locale)
getExtendFieldList
在接口中 Config
public boolean exportable()
exportable
在接口中 Config