1 13 package org.jahia.services.fields; 14 15 import org.jahia.services.version.ContentObjectEntryState; 16 17 23 public class PublicContentFieldEntryState extends ContentObjectEntryState { 24 25 public PublicContentFieldEntryState (int workflowState, 26 int versionID, 27 String languageCode) { 28 super (workflowState, versionID, languageCode); 29 } 30 31 public PublicContentFieldEntryState (ContentObjectEntryState contentFieldEntryState) { 32 super (contentFieldEntryState.getWorkflowState (), 33 contentFieldEntryState.getVersionID (), 34 contentFieldEntryState.getLanguageCode ()); 35 } 36 37 40 public boolean equals (Object cfe) { 41 if (cfe instanceof PublicContentFieldEntryState) { 42 if ((((PublicContentFieldEntryState) cfe).getWorkflowState () == getWorkflowState ()) && 43 (((PublicContentFieldEntryState) cfe).getVersionID () == getVersionID ()) && 44 (((PublicContentFieldEntryState) cfe).getLanguageCode ().equals ( 45 getLanguageCode ()))) 46 return true; 47 } 48 return false; 49 } 50 } | Popular Tags |