class SoapTagService extends AbstractService implements TagService {

	@Override
	public String[] getFolderTags(String sid, long folderId) throws Exception {
		SoapFolderService folderService = getFolderService();
		WSFolder folder = folderService.getFolder(sid, folderId);
		if (folder == null)
			return new String[0];

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

}