コード例 #1
0
  public void mergeTags(long fromTagId, long toTagId, boolean overrideProperties)
      throws PortalException, SystemException {

    AssetTagPermission.check(getPermissionChecker(), fromTagId, ActionKeys.VIEW);

    AssetTagPermission.check(getPermissionChecker(), toTagId, ActionKeys.UPDATE);

    assetTagLocalService.mergeTags(fromTagId, toTagId, overrideProperties);
  }
コード例 #2
0
  public void deleteTags(long[] tagIds) throws PortalException, SystemException {

    for (long tagId : tagIds) {
      AssetTagPermission.check(getPermissionChecker(), tagId, ActionKeys.DELETE);

      assetTagLocalService.deleteTag(tagId);
    }
  }
コード例 #3
0
  public AssetTag updateTag(
      long tagId, String name, String[] tagProperties, ServiceContext serviceContext)
      throws PortalException, SystemException {

    AssetTagPermission.check(getPermissionChecker(), tagId, ActionKeys.UPDATE);

    return assetTagLocalService.updateTag(getUserId(), tagId, name, tagProperties, serviceContext);
  }
コード例 #4
0
  public AssetTag getTag(long tagId) throws PortalException, SystemException {
    AssetTagPermission.check(getPermissionChecker(), tagId, ActionKeys.VIEW);

    return assetTagLocalService.getTag(tagId);
  }