1 package com.sslexplorer.realms; 2 3 import java.io.Serializable ; 4 import java.util.Calendar ; 5 6 import com.sslexplorer.policyframework.AbstractResource; 7 import com.sslexplorer.policyframework.PolicyConstants; 8 9 16 public class DefaultRealm extends AbstractResource implements Realm, Serializable { 17 private static final long serialVersionUID = 4283488241230531541L; 18 private String type; 19 private boolean hasUserDatabase = false; 20 21 24 private DefaultRealm() { 25 } 26 27 35 public DefaultRealm(String type, int resourceId, String resourceName, String resourceDescription, Calendar dateCreated, Calendar dateAmended) { 36 super(resourceId, PolicyConstants.REALMS_RESOURCE_TYPE, resourceId, resourceName, resourceDescription, dateCreated, dateAmended); 38 this.type = type; 39 } 40 41 44 public String getType() { 45 return type; 46 } 47 48 51 public void setType(String type) { 52 this.type = type; 53 } 54 55 58 public boolean isHasUserDatabase() { 59 return hasUserDatabase; 60 } 61 } 62 | Popular Tags |