KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > service > cmr > view > ImporterProgress


1 /*
2  * Copyright (C) 2005 Alfresco, Inc.
3  *
4  * Licensed under the Mozilla Public License version 1.1
5  * with a permitted attribution clause. You may obtain a
6  * copy of the License at
7  *
8  * http://www.alfresco.org/legal/license.txt
9  *
10  * Unless required by applicable law or agreed to in writing,
11  * software distributed under the License is distributed on an
12  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13  * either express or implied. See the License for the specific
14  * language governing permissions and limitations under the
15  * License.
16  */

17 package org.alfresco.service.cmr.view;
18
19 import java.io.Serializable JavaDoc;
20
21 import org.alfresco.service.cmr.repository.NodeRef;
22 import org.alfresco.service.cmr.security.AccessPermission;
23 import org.alfresco.service.namespace.QName;
24
25
26 /**
27  * Callback interface for monitoring progress of an import.
28  *
29  * @author David Caruana
30  *
31  */

32 public interface ImporterProgress
33 {
34     public void started();
35     
36     public void completed();
37     
38     public void error(Throwable JavaDoc e);
39     
40     /**
41      * Report creation of a node.
42      *
43      * @param nodeRef the node ref
44      * @param parentRef the parent ref
45      * @param assocName the child association type name
46      * @param childName the child association name
47      */

48     public void nodeCreated(NodeRef nodeRef, NodeRef parentRef, QName assocName, QName childName);
49
50     /**
51      * Report creation of a node link.
52      *
53      * @param nodeRef the node ref
54      * @param parentRef the parent ref
55      * @param assocName the child association type name
56      * @param childName the child association name
57      */

58     public void nodeLinked(NodeRef nodeRef, NodeRef parentRef, QName assocName, QName childName);
59     
60     /**
61      * Report creation of content
62      *
63      * @param nodeRef the node ref
64      * @param sourceUrl the source location of the content
65      */

66     public void contentCreated(NodeRef nodeRef, String JavaDoc sourceUrl);
67     
68     /**
69      * Report setting of a property
70      *
71      * @param nodeRef the node ref
72      * @param property the property name
73      * @param value the property value
74      */

75     public void propertySet(NodeRef nodeRef, QName property, Serializable JavaDoc value);
76     
77     /**
78      * Report setting of a permission
79      *
80      * @param nodeRef the node ref
81      * @param permission the permission
82      */

83     public void permissionSet(NodeRef nodeRef, AccessPermission permission);
84     
85     /**
86      * Report addition of an aspect
87      *
88      * @param nodeRef the node ref
89      * @param aspect the aspect
90      */

91     public void aspectAdded(NodeRef nodeRef, QName aspect);
92 }
93
Popular Tags