package org.zstack.identity;

import org.zstack.core.config.GlobalConfig;
import org.zstack.core.config.GlobalConfigDef;
import org.zstack.core.config.GlobalConfigDefinition;
import org.zstack.core.config.GlobalConfigValidation;

/**
 */
@GlobalConfigDefinition
public class IdentityGlobalConfig {
    public static final String CATEGORY = "identity";

    @GlobalConfigValidation(numberGreaterThan = 0)
    public static GlobalConfig MAX_CONCURRENT_SESSION = new GlobalConfig(CATEGORY, "session.maxConcurrent");
    @GlobalConfigValidation(numberGreaterThan = 0,numberLessThan = 31536000)
    public static GlobalConfig SESSION_TIMEOUT = new GlobalConfig(CATEGORY, "session.timeout");
    @GlobalConfigValidation(numberGreaterThan = 1)
    public static GlobalConfig SESSION_CLEANUP_INTERVAL = new GlobalConfig(CATEGORY, "session.cleanup.interval");
    @GlobalConfigValidation
    public static GlobalConfig SHOW_ALL_RESOURCE_TO_ADMIN = new GlobalConfig(CATEGORY, "admin.showAllResource");
    @GlobalConfigValidation(notEmpty = false)
    public static GlobalConfig ACCOUNT_API_CONTROL = new GlobalConfig(CATEGORY, "account.api.control");
    @GlobalConfigValidation(validValues = {"true", "false"})
    @GlobalConfigDef(description = "enable iam in ZStack", defaultValue = "true")
    public static GlobalConfig ENABLE_IAM = new GlobalConfig(CATEGORY, "enable.iam");
}

@@ -1139,235 +1139,6 @@
 %22);%0A
-    @GlobalConfigValidation(validValues = %7B%22true%22, %22false%22%7D)%0A    @GlobalConfigDef(description = %22enable iam in ZStack%22, defaultValue = %22true%22)%0A    public static GlobalConfig ENABLE_IAM = new GlobalConfig(CATEGORY, %22enable.iam%22);%0A
 %7D%0A

Remove unused global config