Revision 6176
Added by Chris Jones over 13 years ago
src/edu/ucsb/nceas/metacat/dataone/D1NodeService.java | ||
---|---|---|
120 | 120 |
/* Methods common to CNAuthorization and MNAuthorization APIs */ |
121 | 121 |
|
122 | 122 |
/** |
123 |
* Determine if a particular operation can be performed on an object given |
|
124 |
* by the Subject identified in the Session. |
|
125 |
* |
|
126 |
* @param session - the Session object containing the credentials for the Subject |
|
127 |
* @param pid - the object identifier for the given object to determine authorization |
|
128 |
* @param operation - the permission to check for authorization |
|
129 |
* |
|
130 |
* @return true or false |
|
131 |
* @throws InvalidToken |
|
132 |
* @throws ServiceFailure |
|
133 |
* @throws NotFound |
|
134 |
* @throws NotAuthorized |
|
135 |
* @throws NotImplemented |
|
136 |
* @throws InvalidRequest |
|
137 |
*/ |
|
138 |
public boolean isAuthorized(Session session, Identifier pid, Permission operation) |
|
139 |
throws ServiceFailure, InvalidRequest, InvalidToken, NotFound, |
|
140 |
NotAuthorized, NotImplemented { |
|
141 |
|
|
142 |
return false; |
|
143 |
} |
|
144 |
|
|
145 |
/** |
|
146 | 123 |
* Set access for a given object using the object identifier and a Subject |
147 | 124 |
* under a given Session. |
148 | 125 |
* |
Also available in: Unified diff
CNAuthorization.isAuthorized() and MNAuthorization.isAuthorized() differ. Removed it from the base class.