Class ODataLinksCallable

java.lang.Object
de.uplanet.lucy.server.auxiliaries.odata.ODataLinksCallable

@VelocityCallable("singleton") public final class ODataLinksCallable extends Object
Callable for managing links (especially for m:n relationships) between OData entities.
  • Constructor Details

    • ODataLinksCallable

      public ODataLinksCallable()
  • Method Details

    • createLink

      public void createLink(String p_strCfgGuid, String p_strServiceGuid, String p_strImpersonationGuid, String p_strSourceDgGuid, String p_strSourceRecId, String p_strTargetNavProperty, String p_strTargetDgGuid, String p_strTargetRecId) throws de.uplanet.lucy.server.odata.ODataException
      Creates a link between two entities.
      Parameters:
      p_strCfgGuid - The OData configuration GUID.
      p_strServiceGuid - The OData service GUID.
      p_strImpersonationGuid - Impersonation user GUID or null.
      p_strSourceDgGuid - The source data group GUID.
      p_strSourceRecId - The source record ID.
      p_strTargetNavProperty - The navigation property name.
      p_strTargetDgGuid - The target data group GUID.
      p_strTargetRecId - The target record ID.
      Throws:
      de.uplanet.lucy.server.odata.ODataException
    • deleteLink

      public void deleteLink(String p_strCfgGuid, String p_strServiceGuid, String p_strImpersonationGuid, String p_strSourceDgGuid, String p_strSourceRecId, String p_strTargetNavProperty, String p_strTargetDgGuid, String p_strTargetRecId) throws de.uplanet.lucy.server.odata.ODataException
      Deletes a link between two entities.
      Parameters:
      p_strCfgGuid - The OData configuration GUID.
      p_strServiceGuid - The OData service GUID.
      p_strImpersonationGuid - Impersonation user GUID or null.
      p_strSourceDgGuid - The source data group GUID.
      p_strSourceRecId - The source record ID.
      p_strTargetNavProperty - The navigation property name.
      p_strTargetDgGuid - The target data group GUID.
      p_strTargetRecId - The target record ID.
      Throws:
      de.uplanet.lucy.server.odata.ODataException