%line | %branch | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
org.apache.portals.graffito.jcr.exception.LockedException |
|
|
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 | * Throwed if a path is locked and a operation cannot be performed |
|
20 | * |
|
21 | * @author markoc |
|
22 | */ |
|
23 | ||
24 | public class LockedException extends LockingException { |
|
25 | ||
26 | private final String lockOwner; |
|
27 | ||
28 | private final String lockedNodePath; |
|
29 | ||
30 | public LockedException(String lockOwner, String lockedNodePath) { |
|
31 | 0 | super(); |
32 | 0 | this.lockOwner = lockOwner; |
33 | 0 | this.lockedNodePath = lockedNodePath; |
34 | 0 | } |
35 | ||
36 | /** |
|
37 | * |
|
38 | * @return The JCR Lock Owner |
|
39 | */ |
|
40 | public String getLockOwner() { |
|
41 | 0 | return lockOwner; |
42 | } |
|
43 | ||
44 | /** |
|
45 | * |
|
46 | * @return The JCR locked node path |
|
47 | */ |
|
48 | public String getLockedNodePath() { |
|
49 | 0 | return lockedNodePath; |
50 | } |
|
51 | ||
52 | } |
This report is generated by jcoverage, Maven and Maven JCoverage Plugin. |