class SoapTagService extends AbstractService implements TagService {

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

		User user = validateSession(sid);
		checkReadEnable(user, doc.getFolderId());
		return doc.getTags() != null ? doc.getTags() : new String[0];
	}

}