92 lines
3.0 KiB
Java
92 lines
3.0 KiB
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*/
|
|
package com.tridium.user;
|
|
|
|
import javax.baja.sys.BBoolean;
|
|
import javax.baja.sys.BComponent;
|
|
import javax.baja.sys.BFacets;
|
|
import javax.baja.sys.BIMixIn;
|
|
import javax.baja.sys.BIcon;
|
|
import javax.baja.sys.BInteger;
|
|
import javax.baja.sys.BRelTime;
|
|
import javax.baja.sys.BValue;
|
|
import javax.baja.sys.Context;
|
|
import javax.baja.sys.Property;
|
|
import javax.baja.sys.Sys;
|
|
import javax.baja.sys.Type;
|
|
import javax.baja.util.Lexicon;
|
|
|
|
/*
|
|
* Illegal identifiers - consider using --renameillegalidents true
|
|
*/
|
|
public class BUserServicePasswordConfiguration
|
|
extends BComponent
|
|
implements BIMixIn {
|
|
public static final Property expirationInterval = BUserServicePasswordConfiguration.newProperty(0, BRelTime.makeDays(365), BFacets.make("showDay", BBoolean.TRUE));
|
|
public static final Property warningPeriod = BUserServicePasswordConfiguration.newProperty(0, BRelTime.makeDays(30), BFacets.make("showDay", BBoolean.TRUE));
|
|
public static final Property passwordHistoryLength = BUserServicePasswordConfiguration.newProperty(0, 0, BFacets.make("min", BInteger.make(0), "max", BInteger.make(10)));
|
|
public static final Type TYPE;
|
|
private static final BIcon icon;
|
|
static /* synthetic */ Class class$com$tridium$user$BUserServicePasswordConfiguration;
|
|
|
|
public BRelTime getExpirationInterval() {
|
|
return (BRelTime)this.get(expirationInterval);
|
|
}
|
|
|
|
public void setExpirationInterval(BRelTime bRelTime) {
|
|
this.set(expirationInterval, (BValue)bRelTime, null);
|
|
}
|
|
|
|
public BRelTime getWarningPeriod() {
|
|
return (BRelTime)this.get(warningPeriod);
|
|
}
|
|
|
|
public void setWarningPeriod(BRelTime bRelTime) {
|
|
this.set(warningPeriod, (BValue)bRelTime, null);
|
|
}
|
|
|
|
public int getPasswordHistoryLength() {
|
|
return this.getInt(passwordHistoryLength);
|
|
}
|
|
|
|
public void setPasswordHistoryLength(int n) {
|
|
this.setInt(passwordHistoryLength, n, null);
|
|
}
|
|
|
|
public Type getType() {
|
|
return TYPE;
|
|
}
|
|
|
|
public String getDisplayNameInParent(Context context) {
|
|
return Lexicon.make(this.getType().getModule(), context).get("user.password.configuration");
|
|
}
|
|
|
|
public BIcon getIcon() {
|
|
return icon;
|
|
}
|
|
|
|
static /* synthetic */ Class class(String string, boolean bl) {
|
|
try {
|
|
Class<?> clazz = Class.forName(string);
|
|
if (!bl) {
|
|
clazz = clazz.getComponentType();
|
|
}
|
|
return clazz;
|
|
}
|
|
catch (ClassNotFoundException classNotFoundException) {
|
|
throw new NoClassDefFoundError(classNotFoundException.getMessage());
|
|
}
|
|
}
|
|
|
|
static {
|
|
Class clazz = class$com$tridium$user$BUserServicePasswordConfiguration;
|
|
if (clazz == null) {
|
|
clazz = class$com$tridium$user$BUserServicePasswordConfiguration = BUserServicePasswordConfiguration.class("[Lcom.tridium.user.BUserServicePasswordConfiguration;", false);
|
|
}
|
|
TYPE = Sys.loadType(clazz);
|
|
icon = BIcon.std("keys.png");
|
|
}
|
|
}
|
|
|