Revision 19419 branches/v10/extensions/extPublish/src/org/gvsig/publish/serversmodel/RemoteResource.java
RemoteResource.java | ||
---|---|---|
80 | 80 |
* Properties |
81 | 81 |
*/ |
82 | 82 |
private String title = null; |
83 |
|
|
83 |
private String name = null; |
|
84 | 84 |
/** |
85 | 85 |
* Constructor |
86 | 86 |
* |
... | ... | |
110 | 110 |
public void setTitle(String title) { |
111 | 111 |
this.title = title; |
112 | 112 |
} |
113 |
|
|
114 | 113 |
/** |
115 | 114 |
* |
115 |
* @return name which identifies the remote resource. Is unique. |
|
116 |
*/ |
|
117 |
public String getName(){ |
|
118 |
if (this.name == null){ |
|
119 |
this.name = getLayerInfo().getName(); |
|
120 |
} |
|
121 |
return this.name; |
|
122 |
} |
|
123 |
/** |
|
124 |
* TODO: IMPORTANT: In not used at the moment (is used getLAyerInfo.getName() instead) |
|
125 |
* @param name String which identifies the remote resource. If this name exists, overrides the existent remote resource. |
|
126 |
*/ |
|
127 |
public void setName(String name){ |
|
128 |
this.name = name; |
|
129 |
} |
|
130 |
|
|
131 |
/** |
|
132 |
* |
|
116 | 133 |
* Useful to show in a tree. |
117 | 134 |
*/ |
118 | 135 |
public String toString(){ |
... | ... | |
254 | 271 |
XMLEntity children = xml.firstChild("role", "children"); |
255 | 272 |
for (int i=0; i<children.getChildrenCount(); i++){ |
256 | 273 |
XMLEntity child = children.getChild(i); |
257 |
RemoteResource r = PublishRegister.register().getRemoteResource(getService(), child.getStringProperty("type"));
|
|
274 |
RemoteResource r = PublishRegister.register().getRemoteResource(getService(), child.getStringProperty(REMOTERESOURCE_TYPE_KEY));
|
|
258 | 275 |
if (r == null){ |
259 | 276 |
PublishLogger.getLog().error("ERROR RemoteResource: I can't create a child from persistence"); |
260 | 277 |
} |
Also available in: Unified diff