test_class.file: model/src/test/java/com/abiquo/server/core/config/LicenseTest.java
test_class.identifier: LicenseTest
test_class.superclass: extends DefaultEntityTestBase<License>
test_case.body: @Test(expectedExceptions = RuntimeException.class)
      public void test_isActiveInvalid()
      {
          isActive("2000-01-01");
      }
test_case.class_method_signature: LicenseTest.test_isActiveInvalid()
test_case.full_signature: @Test(expectedExceptions = RuntimeException.class) public void test_isActiveInvalid()
test_case.identifier: test_isActiveInvalid
test_case.invocations: isActive
test_case.modifiers: @Test(expectedExceptions = RuntimeException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void test_isActiveInvalid()
focal_class.declarator: DATE_FORMAT = "yyyy-MM-dd HH:mm:ss"
focal_class.modifier: public static final
focal_class.original_string: public static final String DATE_FORMAT = "yyyy-MM-dd HH:mm:ss";
focal_class.type: String
focal_class.var_name: DATE_FORMAT
focal_class.declarator: CUSTOMER_ID_KEY = "license.customer.id"
focal_class.modifier: public static final
focal_class.original_string: public static final String CUSTOMER_ID_KEY = "license.customer.id";
focal_class.type: String
focal_class.var_name: CUSTOMER_ID_KEY
focal_class.declarator: ENABLED_IP_KEY = "license.enabled.ip"
focal_class.modifier: public static final
focal_class.original_string: public static final String ENABLED_IP_KEY = "license.enabled.ip";
focal_class.type: String
focal_class.var_name: ENABLED_IP_KEY
focal_class.declarator: NUMBER_OF_CORES_KEY = "license.cores.max"
focal_class.modifier: public static final
focal_class.original_string: public static final String NUMBER_OF_CORES_KEY = "license.cores.max";
focal_class.type: String
focal_class.var_name: NUMBER_OF_CORES_KEY
focal_class.declarator: EXPIRATION_DATE_KEY = "license.expires"
focal_class.modifier: public static final
focal_class.original_string: public static final String EXPIRATION_DATE_KEY = "license.expires";
focal_class.type: String
focal_class.var_name: EXPIRATION_DATE_KEY
focal_class.declarator: TABLE_NAME = "license"
focal_class.modifier: public static final
focal_class.original_string: public static final String TABLE_NAME = "license";
focal_class.type: String
focal_class.var_name: TABLE_NAME
focal_class.declarator: ID_COLUMN = "idLicense"
focal_class.modifier: private final static
focal_class.original_string: private final static String ID_COLUMN = "idLicense";
focal_class.type: String
focal_class.var_name: ID_COLUMN
focal_class.declarator: id
focal_class.modifier: @Id
      @GeneratedValue
      @Column(name = ID_COLUMN, nullable = false)
      private
focal_class.original_string: @Id
      @GeneratedValue
      @Column(name = ID_COLUMN, nullable = false)
      private Integer id;
focal_class.type: Integer
focal_class.var_name: id
focal_class.declarator: DATA_PROPERTY = "data"
focal_class.modifier: public final static
focal_class.original_string: public final static String DATA_PROPERTY = "data";
focal_class.type: String
focal_class.var_name: DATA_PROPERTY
focal_class.declarator: DATA_REQUIRED = true
focal_class.modifier: private final static
focal_class.original_string: private final static boolean DATA_REQUIRED = true;
focal_class.type: boolean
focal_class.var_name: DATA_REQUIRED
focal_class.declarator: DATA_LENGTH_MIN = 1
focal_class.modifier: final static
focal_class.original_string: final static int DATA_LENGTH_MIN = 1;
focal_class.type: int
focal_class.var_name: DATA_LENGTH_MIN
focal_class.declarator: DATA_LENGTH_MAX = 1000
focal_class.modifier: final static
focal_class.original_string: final static int DATA_LENGTH_MAX = 1000;
focal_class.type: int
focal_class.var_name: DATA_LENGTH_MAX
focal_class.declarator: DATA_LEADING_OR_TRAILING_WHITESPACES_ALLOWED = false
focal_class.modifier: private final static
focal_class.original_string: private final static boolean DATA_LEADING_OR_TRAILING_WHITESPACES_ALLOWED = false;
focal_class.type: boolean
focal_class.var_name: DATA_LEADING_OR_TRAILING_WHITESPACES_ALLOWED
focal_class.declarator: DATA_COLUMN = "data"
focal_class.modifier: private final static
focal_class.original_string: private final static String DATA_COLUMN = "data";
focal_class.type: String
focal_class.var_name: DATA_COLUMN
focal_class.declarator: data
focal_class.modifier: @Column(name = DATA_COLUMN, nullable = !DATA_REQUIRED, length = DATA_LENGTH_MAX)
      private
focal_class.original_string: @Column(name = DATA_COLUMN, nullable = !DATA_REQUIRED, length = DATA_LENGTH_MAX)
      private String data;
focal_class.type: String
focal_class.var_name: data
focal_class.file: model/src/main/java/com/abiquo/server/core/config/License.java
focal_class.identifier: License
focal_class.class_method_signature: License.License()
focal_class.full_signature: protected  License()
focal_class.identifier: License
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.signature:  License()
focal_class.class_method_signature: License.getId()
focal_class.full_signature: public Integer getId()
focal_class.identifier: getId
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Integer
focal_class.signature: Integer getId()
focal_class.class_method_signature: License.getData()
focal_class.full_signature: @Required(value = DATA_REQUIRED) @Length(min = DATA_LENGTH_MIN, max = DATA_LENGTH_MAX) @LeadingOrTrailingWhitespace(allowed = DATA_LEADING_OR_TRAILING_WHITESPACES_ALLOWED) public String getData()
focal_class.identifier: getData
focal_class.modifiers: @Required(value = DATA_REQUIRED) @Length(min = DATA_LENGTH_MIN, max = DATA_LENGTH_MAX) @LeadingOrTrailingWhitespace(allowed = DATA_LEADING_OR_TRAILING_WHITESPACES_ALLOWED) public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getData()
focal_class.class_method_signature: License.setData(String data)
focal_class.full_signature: public void setData(String data)
focal_class.identifier: setData
focal_class.modifiers: public
focal_class.parameters: (String data)
focal_class.return: void
focal_class.signature: void setData(String data)
focal_class.class_method_signature: License.License(String data)
focal_class.full_signature: public  License(String data)
focal_class.identifier: License
focal_class.modifiers: public
focal_class.parameters: (String data)
focal_class.signature:  License(String data)
focal_class.class_method_signature: License.isActive(LicenseDto license)
focal_class.full_signature: public static boolean isActive(LicenseDto license)
focal_class.identifier: isActive
focal_class.modifiers: public static
focal_class.parameters: (LicenseDto license)
focal_class.return: boolean
focal_class.signature: boolean isActive(LicenseDto license)
focal_class.superclass: extends DefaultEntityBase
focal_method.body: public static boolean isActive(LicenseDto license)
      {
          SimpleDateFormat format = new SimpleDateFormat(DATE_FORMAT);
          try
          {
              Date expiration = format.parse(license.getExpiration());
              return expiration.getTime() >= System.currentTimeMillis();
          }
          catch (ParseException e)
          {
              throw new RuntimeException("The license expiration date cannot be parsed");
          }
      }
focal_method.class_method_signature: License.isActive(LicenseDto license)
focal_method.full_signature: public static boolean isActive(LicenseDto license)
focal_method.identifier: isActive
focal_method.invocations: parse getExpiration getTime currentTimeMillis
focal_method.modifiers: public static
focal_method.parameters: (LicenseDto license)
focal_method.return: boolean
focal_method.signature: boolean isActive(LicenseDto license)