Esempio n. 1
0
  /**
   * 查询单体信息
   *
   * @param contentid
   * @param acttype
   * @return
   */
  public Map<String, Object> getAudioInfo(String contentid, String acttype) {
    CacheEle<_CacheDictionary> cache =
        ((CacheEle<_CacheDictionary>) SystemCache.getCache(WtContentMngConstants.CACHE_DICT));
    _CacheDictionary cd = cache.getContent();

    Map<String, Object> audioData = new HashMap<String, Object>();
    MediaAsset ma = mediaService.getMaInfoById(contentid);
    audioData.put("ContentId", ma.getId());
    audioData.put("ContentName", ma.getMaTitle());
    audioData.put("MediaType", acttype);
    audioData.put("ContentImg", ma.getMaImg());
    audioData.put("ContentCTime", ma.getCTime());
    audioData.put("ContentPubTime", ma.getMaPublishTime());
    audioData.put("ContentDesc", ma.getDescn());
    audioData.put("ContentTimes", ma.getCTime());
    audioData.put("ContentSource", ma.getMaPublisher());
    audioData.put("ContentURI", ma.getMaURL());
    audioData.put("ContentPersons", null);

    List<DictRefResPo> listdicref =
        mediaService.getResDictRefByResId(audioData.get("ContentId") + "");
    String catalogs = "";
    for (DictRefResPo dictRefResPo : listdicref) {
      DictDetail dd = cd.getDictDetail(dictRefResPo.getDictMid(), dictRefResPo.getDictDid());
      if (dd != null) catalogs += "," + dd.getNodeName();
    }
    audioData.put(
        "ContentCatalogs",
        (StringUtils.isNullOrEmptyOrSpace(catalogs) || catalogs.toLowerCase().equals("null"))
            ? null
            : catalogs.substring(1));
    return audioData;
  }
Esempio n. 2
0
 @Override
 public Object convert2Po() {
   GroupPo ret = new GroupPo();
   if (StringUtils.isNullOrEmptyOrSpace(this.getGroupId()))
     ret.setGroupId(SequenceUUID.getUUIDSubSegment(4));
   else ret.setGroupId(this.getGroupId());
   ret.setGroupNum(this.getGroupNum());
   ret.setGroupName(this.getGroupName());
   ret.setGroupImg(this.getGroupImg());
   ret.setGroupType(this.getGroupType());
   ret.setPId(this.getPId());
   ret.setSort(this.getSort());
   ret.setCreateUserId(this.getCreateUserId());
   ret.setAdminUserIds(this.getAdminUserIds());
   ret.setDescn(this.getDescn());
   ret.setCTime(this.getCTime());
   ret.setLmTime(this.getLmTime());
   return ret;
 }
Esempio n. 3
0
 public String getInnerPhoneNum() {
   if (StringUtils.isNullOrEmptyOrSpace(this.innerPhoneNum)) return "3000";
   return innerPhoneNum;
 }