Revision 4469
Added by daigle about 16 years ago
src/edu/ucsb/nceas/metacat/AccessSection.java | ||
---|---|---|
40 | 40 |
{ |
41 | 41 |
//private String accessSectionId = null; |
42 | 42 |
private String permissionOrder = null; |
43 |
private Vector accessRules = new Vector();
|
|
43 |
private Vector<AccessRule> accessRules = new Vector<AccessRule>();
|
|
44 | 44 |
private String references = null; |
45 | 45 |
private String controlLevel = null; |
46 |
private Stack storedTmpNodeStack = null; |
|
47 |
private Vector describedIdList = new Vector();
|
|
46 |
private Stack<NodeRecord> storedTmpNodeStack = null;
|
|
47 |
private Vector<String> describedIdList = new Vector<String>();
|
|
48 | 48 |
private long startedDescribesNodeId = -1; |
49 |
private String inlineDataFileName = null; |
|
49 | 50 |
private Logger logMetacat = Logger.getLogger(AccessSection.class); |
50 | 51 |
|
51 | 52 |
|
52 | 53 |
/** |
53 | 54 |
* Set a storedTempNodeStack |
54 | 55 |
*/ |
55 |
public void setStoredTmpNodeStack(Stack myStack) |
|
56 |
public void setStoredTmpNodeStack(Stack<NodeRecord> myStack)
|
|
56 | 57 |
{ |
57 | 58 |
this.storedTmpNodeStack = myStack; |
58 | 59 |
} |
... | ... | |
60 | 61 |
/** |
61 | 62 |
* Get storedTempNodeStack |
62 | 63 |
*/ |
63 |
public Stack getStoredTmpNodeStack() |
|
64 |
public Stack<NodeRecord> getStoredTmpNodeStack()
|
|
64 | 65 |
{ |
65 | 66 |
return this.storedTmpNodeStack; |
66 | 67 |
} |
... | ... | |
104 | 105 |
} |
105 | 106 |
|
106 | 107 |
/** Get all access rule */ |
107 |
public Vector getAccessRules() |
|
108 |
public Vector<AccessRule> getAccessRules()
|
|
108 | 109 |
{ |
109 | 110 |
return this.accessRules; |
110 | 111 |
} |
... | ... | |
122 | 123 |
} |
123 | 124 |
|
124 | 125 |
/** Set a described id list (in data access part)*/ |
125 |
public void setDescribedIdList(Vector list) |
|
126 |
public void setDescribedIdList(Vector<String> list)
|
|
126 | 127 |
{ |
127 | 128 |
describedIdList = list; |
128 | 129 |
} |
129 | 130 |
|
130 | 131 |
/** Get a described id list */ |
131 |
public Vector getDescribedIdList() |
|
132 |
public Vector<String> getDescribedIdList()
|
|
132 | 133 |
{ |
133 | 134 |
return describedIdList; |
134 | 135 |
} |
135 | 136 |
|
136 |
/** Set a the start "describes" node id*/
|
|
137 |
public void seStartedDescribesNodeId(long id) |
|
137 |
/** Set the start "describes" node id*/ |
|
138 |
public void setStartedDescribesNodeId(long id)
|
|
138 | 139 |
{ |
139 | 140 |
startedDescribesNodeId = id; |
140 | 141 |
} |
... | ... | |
144 | 145 |
{ |
145 | 146 |
return startedDescribesNodeId; |
146 | 147 |
} |
148 |
|
|
149 |
/** Set the inlineDataFileName */ |
|
150 |
public void setInlineDataFileName(String fileName) |
|
151 |
{ |
|
152 |
inlineDataFileName = fileName; |
|
153 |
} |
|
154 |
|
|
155 |
/** Get the inlineDataFileName */ |
|
156 |
public String getInlineDataFileName() |
|
157 |
{ |
|
158 |
return inlineDataFileName; |
|
159 |
} |
|
147 | 160 |
|
148 | 161 |
/** Method to copy a accesssection object to a new one */ |
149 | 162 |
public void copyPermOrderAndAccessRules(AccessSection newAccessSection) |
... | ... | |
153 | 166 |
logMetacat.info("Copy permission order: " + |
154 | 167 |
this.getPermissionOrder()); |
155 | 168 |
newAccessSection.setPermissionOrder(this.getPermissionOrder()); |
156 |
Vector accessRuleVector = this.getAccessRules(); |
|
169 |
Vector<AccessRule> accessRuleVector = this.getAccessRules();
|
|
157 | 170 |
// go through access rule vector |
158 | 171 |
for (int i=0; i< accessRuleVector.size(); i++) |
159 | 172 |
{ |
Also available in: Unified diff
Add some generics typing. Add getters and setters for the inline file name that the access section affects.