Tabnine Logo
HistoryEntry.getEntityOpType
Code IndexAdd Tabnine to your IDE (free)

How to use
getEntityOpType
method
in
de.micromata.genome.db.jpa.history.api.HistoryEntry

Best Java code snippets using de.micromata.genome.db.jpa.history.api.HistoryEntry.getEntityOpType (Showing top 4 results out of 315)

origin: micromata/projectforge

public SimpleHistoryEntry(final UserGroupCache userGroupCache, final HistoryEntry entry)
{
 this.timestamp = entry.getModifiedAt();
 final Integer userId = NumberHelper.parseInteger(entry.getUserName());
 if (userId != null) {
  this.user = userGroupCache.getUser(userId);
 }
 // entry.getClassName();
 // entry.getComment();
 this.entryType = entry.getEntityOpType();
 // entry.getEntityId();
}
origin: micromata/projectforge

/**
 * @see de.micromata.hibernate.history.web.HistoryFormatter#formatAction(org.hibernate.Session, java.util.Locale,
 *      de.micromata.hibernate.history.HistoryEntry)
 */
@Override
public String formatAction(Session session, final Locale locale, Object changed, HistoryEntry historyEntry,
  PropertyDelta delta)
{
 switch (historyEntry.getEntityOpType()) {
  case MarkDeleted:
  case Deleted:
   return getDeletedAction(locale);
  case UmarkDeleted:
  case Update:
   return getUpdatedAction(locale);
  case Insert:
   return getInsertedAction(locale);
 }
 return null;
}
origin: micromata/projectforge

public DisplayHistoryEntry(final UserGroupCache userGroupCache, final HistoryEntry entry)
{
 this.timestamp = entry.getModifiedAt();
 final Integer userId = NumberHelper.parseInteger(entry.getUserName());
 if (userId != null) {
  this.user = userGroupCache.getUser(userId);
 }
 // entry.getClassName();
 // entry.getComment();
 this.entryType = entry.getEntityOpType();
 // entry.getEntityId();
}
origin: micromata/projectforge

@SuppressWarnings("rawtypes")
protected void assertHistoryEntry(final HistoryEntry entry, final Integer entityId, final PFUserDO user,
  final EntityOpType type,
  final String propertyName, final Class<?> classType, final Object oldValue, final Object newValue)
{
 assertEquals(user.getId().toString(), entry.getUserName());
 // assertEquals(AddressDO.class.getSimpleName(), entry.getClassName());
 assertEquals(null, entry.getUserComment());
 assertEquals(type, entry.getEntityOpType());
 assertEquals(entityId, entry.getEntityId());
 if (propertyName != null) {
  fail("TODO HISTORY History not yet implemented");
 }
}
de.micromata.genome.db.jpa.history.apiHistoryEntrygetEntityOpType

Popular methods of HistoryEntry

  • getDiffEntries
  • getEntityId
  • getUserName
  • getEntityName
  • getModifiedAt
  • getUserComment
  • setPk

Popular in Java

  • Creating JSON documents from java classes using gson
  • addToBackStack (FragmentTransaction)
  • putExtra (Intent)
  • onCreateOptionsMenu (Activity)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Top Vim 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