KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > repo > importer > ImportNode


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.repo.importer;
18
19 import java.io.Serializable JavaDoc;
20 import java.util.List JavaDoc;
21 import java.util.Map JavaDoc;
22 import java.util.Set JavaDoc;
23
24 import org.alfresco.service.cmr.dictionary.DataTypeDefinition;
25 import org.alfresco.service.cmr.dictionary.TypeDefinition;
26 import org.alfresco.service.cmr.repository.NodeRef;
27 import org.alfresco.service.cmr.security.AccessPermission;
28 import org.alfresco.service.namespace.QName;
29
30
31 /**
32  * Description of node to import.
33  *
34  * @author David Caruana
35  *
36  */

37 public interface ImportNode
38 {
39     /**
40      * @return the parent context
41      */

42     public ImportParent getParentContext();
43
44     /**
45      * @return the type definition
46      */

47     public TypeDefinition getTypeDefinition();
48     
49     /**
50      * @return is this a node reference
51      */

52     public boolean isReference();
53     
54     /**
55      * @return the node ref
56      */

57     public NodeRef getNodeRef();
58     
59     /**
60      * @return node uuid to create node with
61      */

62     public String JavaDoc getUUID();
63
64     /**
65      * @return the child name
66      */

67     public String JavaDoc getChildName();
68     
69     /**
70      * Gets all properties for the node
71      *
72      * @return the properties
73      */

74     public Map JavaDoc<QName,Serializable JavaDoc> getProperties();
75
76     /**
77      * Gets all property datatypes for the node
78      *
79      * @return the property datatypes
80      */

81     public Map JavaDoc<QName,DataTypeDefinition> getPropertyDatatypes();
82     
83     /**
84      * @return the aspects of this node
85      */

86     public Set JavaDoc<QName> getNodeAspects();
87     
88     /**
89      * @return true => the node inherits permissions from its parent
90      */

91     public boolean getInheritPermissions();
92     
93     /**
94      * @return the permissions applied to this node
95      */

96     public List JavaDoc<AccessPermission> getAccessControlEntries();
97     
98 }
99
Popular Tags