class SoapTagService extends AbstractService implements TagService {

	@Override
	public void addDocumentTags(String sid, long docId, String[] tags) throws Exception {
		SoapDocumentService docService = getDocumentService();
		WSDocument doc = docService.getDocument(sid, docId);
		if (doc == null)
			return;

		User user = validateSession(sid);
		checkWriteEnable(user, doc.getFolderId());
		for (String tag : tags)
			doc.addTag(tag);
		docService.update(sid, doc);
	}

}