1 16 package org.apache.commons.net.nntp; 17 18 32 33 public final class NewsgroupInfo 34 { 35 41 public static final int UNKNOWN_POSTING_PERMISSION = 0; 42 43 44 public static final int MODERATED_POSTING_PERMISSION = 1; 45 46 47 public static final int PERMITTED_POSTING_PERMISSION = 2; 48 49 52 public static final int PROHIBITED_POSTING_PERMISSION = 3; 53 54 private String __newsgroup; 55 private int __estimatedArticleCount; 56 private int __firstArticle, __lastArticle; 57 private int __postingPermission; 58 59 void _setNewsgroup(String newsgroup) 60 { 61 __newsgroup = newsgroup; 62 } 63 64 void _setArticleCount(int count) 65 { 66 __estimatedArticleCount = count; 67 } 68 69 void _setFirstArticle(int first) 70 { 71 __firstArticle = first; 72 } 73 74 void _setLastArticle(int last) 75 { 76 __lastArticle = last; 77 } 78 79 void _setPostingPermission(int permission) 80 { 81 __postingPermission = permission; 82 } 83 84 89 public String getNewsgroup() 90 { 91 return __newsgroup; 92 } 93 94 100 public int getArticleCount() 101 { 102 return __estimatedArticleCount; 103 } 104 105 110 public int getFirstArticle() 111 { 112 return __firstArticle; 113 } 114 115 120 public int getLastArticle() 121 { 122 return __lastArticle; 123 } 124 125 131 public int getPostingPermission() 132 { 133 return __postingPermission; 134 } 135 136 153 } 154 | Popular Tags |