Tabnine Logo
LookupTableRowType.getLastChangeTimestamp
Code IndexAdd Tabnine to your IDE (free)

How to use
getLastChangeTimestamp
method
in
com.evolveum.midpoint.xml.ns._public.common.common_3.LookupTableRowType

Best Java code snippets using com.evolveum.midpoint.xml.ns._public.common.common_3.LookupTableRowType.getLastChangeTimestamp (Showing top 3 results out of 315)

origin: Evolveum/midpoint

private void checkCurrentTimestamp(LookupTableRowType row) {
  XMLGregorianCalendar ts = row.getLastChangeTimestamp();
  assertNotNull("No last change timestamp in " + row, ts);
  long diff = System.currentTimeMillis() - XmlTypeConverter.toMillis(ts);
  assertTrue("Last change timestamp in " + row + " is too old or too new; diff = " + diff, diff >= 0 && diff <= TIMESTAMP_TOLERANCE);
}
origin: Evolveum/midpoint

private static RLookupTableRow toRepo(LookupTableRowType row) throws SchemaException {
  RLookupTableRow rRow = new RLookupTableRow();
  rRow.setId(RUtil.toInteger(row.getId()));
  if (row.getKey() == null) {
    throw new SchemaException("Attempt to insert a row with no key");
  }
  rRow.setKey(row.getKey());
  rRow.setLabel(RPolyString.copyFromJAXB(row.getLabel()));
  rRow.setLastChangeTimestamp(row.getLastChangeTimestamp());
  if (rRow.getLastChangeTimestamp() == null) {
    XMLGregorianCalendar cal = XMLGregorianCalendarType.asXMLGregorianCalendar(new Date());
    rRow.setLastChangeTimestamp(cal);
    row.setLastChangeTimestamp(cal);
  }
  rRow.setValue(row.getValue());
  return rRow;
}
origin: Evolveum/midpoint

private void assertRow(PrismContainerValue<LookupTableRowType> tableContainerValue, String key, String value, PolyStringType label, XMLGregorianCalendar lastChangeTimestamp) {
  LookupTableRowType row = tableContainerValue.asContainerable();
  assertEquals("wrong key", key, row.getKey());
  assertEquals("wrong value", value, row.getValue());
  assertEquals("wrong label", label, row.getLabel());
  assertEquals("wrong lastChangeTimestamp", lastChangeTimestamp, row.getLastChangeTimestamp());
}
com.evolveum.midpoint.xml.ns._public.common.common_3LookupTableRowTypegetLastChangeTimestamp

Popular methods of LookupTableRowType

    Popular in Java

    • Making http requests using okhttp
    • notifyDataSetChanged (ArrayAdapter)
    • getSupportFragmentManager (FragmentActivity)
    • getExternalFilesDir (Context)
    • Time (java.sql)
      Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
    • Set (java.util)
      A Set is a data structure which does not allow duplicate elements.
    • JComboBox (javax.swing)
    • JFrame (javax.swing)
    • IOUtils (org.apache.commons.io)
      General IO stream manipulation utilities. This class provides static utility methods for input/outpu
    • Scheduler (org.quartz)
      This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
    • Best IntelliJ plugins
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Tabnine for your IDE now