Class PartyTypeHelper


  • public final class PartyTypeHelper
    extends java.lang.Object
    PartyTypeHelper
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String module  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Boolean checkPartyType​(Delegator delegator, java.lang.String partyId, java.lang.String checkedPartyType)
      Check if a related party is of the right party type (PERSON or PARTY_GROUP)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • module

        public static final java.lang.String module
    • Method Detail

      • checkPartyType

        public static java.lang.Boolean checkPartyType​(Delegator delegator,
                                                       java.lang.String partyId,
                                                       java.lang.String checkedPartyType)
        Check if a related party is of the right party type (PERSON or PARTY_GROUP)
        Parameters:
        delegator - needed Delegator
        partyId - a a valid Party Id string
        checkedPartyType - a string in {PERSON, PARTY_GROUP}
        Returns:
        Boolean, false in case of error