class SoapTagService extends AbstractService implements TagService {

	@Override
	public void setDocumentTags(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());
		doc.setTags(tags);
		docService.update(sid, doc);
	}

}