%line | %branch | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
org.apache.portals.graffito.jcr.exception.IllegalUnlockException |
|
|
1 | /* |
|
2 | * Copyright 2000-2005 The Apache Software Foundation. |
|
3 | * |
|
4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
|
5 | * you may not use this file except in compliance with the License. |
|
6 | * You may obtain a copy of the License at |
|
7 | * |
|
8 | * http://www.apache.org/licenses/LICENSE-2.0 |
|
9 | * |
|
10 | * Unless required by applicable law or agreed to in writing, software |
|
11 | * distributed under the License is distributed on an "AS IS" BASIS, |
|
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
13 | * See the License for the specific language governing permissions and |
|
14 | * limitations under the License. |
|
15 | */ |
|
16 | package org.apache.portals.graffito.jcr.exception; |
|
17 | ||
18 | ||
19 | /** |
|
20 | * If user cannot unlock path, for example if he/she have not correct lockTokens |
|
21 | * |
|
22 | * @author Martin Koci |
|
23 | * @author <a href='mailto:the_mindstorm[at]evolva[dot]ro'>Alexandru Popescu</a> |
|
24 | */ |
|
25 | public class IllegalUnlockException extends LockingException { |
|
26 | ||
27 | /** Use serialVersionUID for interoperability. */ |
|
28 | private final static long serialVersionUID = 5078216219061716697L; |
|
29 | ||
30 | private final String lockOwner; |
|
31 | ||
32 | private final String path; |
|
33 | ||
34 | /** |
|
35 | * |
|
36 | * @return The JCR Lock Owner |
|
37 | */ |
|
38 | public String getLockOwner() { |
|
39 | 0 | return lockOwner; |
40 | } |
|
41 | ||
42 | /** |
|
43 | * |
|
44 | * @return the JCR path |
|
45 | */ |
|
46 | public String getPath() { |
|
47 | 0 | return path; |
48 | } |
|
49 | ||
50 | public IllegalUnlockException(String lockOwner, String path) { |
|
51 | 0 | super(); |
52 | 0 | this.lockOwner = lockOwner; |
53 | 0 | this.path = path; |
54 | 0 | } |
55 | ||
56 | } |
This report is generated by jcoverage, Maven and Maven JCoverage Plugin. |