wherehows-dao/src/main/java/wherehows/dao/table/DatasetOwnerDao.java
public void fillDsOwnerByOwnerInfo(OwnerInfo owner, DsOwner dsOwner, int sourceTime) {
    dsOwner.setOwnerId(owner.owner.toString());
    dsOwner.setOwnerIdType(owner.ownerType.name());
    dsOwner.setOwnerType(owner.ownerCategory.name());
    dsOwner.setOwnerSource(owner.ownershipProvider.name());

    if (owner.ownerType == OwnerType.USER) {
      dsOwner.setAppId(300);
      dsOwner.setIsGroup("N");
      dsOwner.setNamespace("urn:li:corpuser");
    } else if (owner.ownerType == OwnerType.GROUP || owner.ownerType == OwnerType.SERVICE) {
      dsOwner.setAppId(301);
      dsOwner.setIsGroup("Y");
      dsOwner.setNamespace("urn:li:corpGroup");
    } else {
      dsOwner.setAppId(0);
      dsOwner.setIsGroup("N");
    }

    // TODO: check LDAP table to update is_active
    dsOwner.setIsActive("Y");

    dsOwner.setSourceTime(sourceTime);
  }
/**
   * Fill in DsOwner information from OwnerInfo
   * @param owner OwnerInfo
   * @param dsOwner DsOwner
   * @param sourceTime int
   */
Fill in DsOwner information from OwnerInfo
@param owner OwnerInfo
@param dsOwner DsOwner
@param sourceTime int
Fill in DsOwner information from OwnerInfo @param owner OwnerInfo @param dsOwner DsOwner @param sourceTime int
public void fillDsOwnerByOwnerInfo(OwnerInfo owner, DsOwner dsOwner, int sourceTime) {
    dsOwner.setOwnerId(owner.owner.toString());
    dsOwner.setOwnerIdType(owner.ownerType.name());
    dsOwner.setOwnerType(owner.ownerCategory.name());
    dsOwner.setOwnerSource(owner.ownershipProvider.name());
    if (owner.ownerType == OwnerType.USER) {
      dsOwner.setAppId(300);
      dsOwner.setIsGroup("N");
      dsOwner.setNamespace("urn:li:corpuser");
    } else if (owner.ownerType == OwnerType.GROUP || owner.ownerType == OwnerType.SERVICE) {
      dsOwner.setAppId(301);
      dsOwner.setIsGroup("Y");
      dsOwner.setNamespace("urn:li:corpGroup");
    } else {
      dsOwner.setAppId(0);
      dsOwner.setIsGroup("N");
    }
    dsOwner.setIsActive("Y");
    dsOwner.setSourceTime(sourceTime);
  }
public void fillDsOwnerByOwnerInfo ( OwnerInfo owner , DsOwner dsOwner , int sourceTime ) { dsOwner . setOwnerId ( owner . owner . toString ( ) ) ; dsOwner . setOwnerIdType ( owner . ownerType . name ( ) ) ; dsOwner . setOwnerType ( owner . ownerCategory . name ( ) ) ; dsOwner . setOwnerSource ( owner . ownershipProvider . name ( ) ) ; if ( owner . ownerType == OwnerType . USER ) { dsOwner . setAppId ( 300 ) ; dsOwner . setIsGroup ( "N" ) ; dsOwner . setNamespace ( "urn:li:corpuser" ) ; } else if ( owner . ownerType == OwnerType . GROUP || owner . ownerType == OwnerType . SERVICE ) { dsOwner . setAppId ( 301 ) ; dsOwner . setIsGroup ( "Y" ) ; dsOwner . setNamespace ( "urn:li:corpGroup" ) ; } else { dsOwner . setAppId ( 0 ) ; dsOwner . setIsGroup ( "N" ) ; } dsOwner . setIsActive ( "Y" ) ; dsOwner . setSourceTime ( sourceTime ) ; }
Fill in DsOwner information from OwnerInfo
 @param owner OwnerInfo
 @param dsOwner DsOwner
 @param sourceTime int
Fill in DsOwner information from OwnerInfo @param owner OwnerInfo @param dsOwner DsOwner @param sourceTime int
// TODO: check LDAP table to update is_active