public class WfXMLWebLink extends WfXMLObject implements Cloneable
WfXMLObject
for details and examples.namespace, notes, userId
Constructor and Description |
---|
WfXMLWebLink(DMSWebLink dmsWebLink)
Use this constructor to build a WfXMLWebLink out of a
DMSWebLink . |
WfXMLWebLink(Element webLinkElem)
Deprecated.
|
WfXMLWebLink(String name,
String url,
String description,
String userId)
Creates a web link with all possible fields.
|
WfXMLWebLink(org.apache.xmlbeans.XmlObject obj) |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates a deep copy of this web link.
|
DMSObject |
createDMSObject(User defaultCreator)
Creates a
DMSWebLink object out of this
WfXMLWebLink . |
void |
fill(DMSObject existingWebLink,
User defaultCreator)
This method fills an existing
DMSWebLink with the data
of this WfXMLWebLink and updates it to the database. |
Element |
getAsXML()
This method creates a JDOM representation of this web link.
|
String |
getDescription()
Returns the description of this web link.
|
String |
getName()
Returns the name string of this web link.
|
String |
getURL()
Returns the URL (as
String ) of this web link. |
org.apache.xmlbeans.XmlObject |
getXMLObject() |
void |
setDescription(String description)
Set a new description for this web link.
|
void |
setName(String name)
Set the name of this web link.
|
void |
setURL(String url)
Set the URL for this web link.
|
createInstance, createInstance, createInstance, getUser, getUser, getUserId, setUserId
public WfXMLWebLink(String name, String url, String description, String userId)
name
- A subject for the note.url
- The content of the note.description
- A description text for the web link. A description is not
obligatory, so you can provide null
if you don't want to set
something special.userId
- Id of the user who will be (or is) the creator of the note.
You can use null
here, if you don't want to use a special
user. In that case the note will be created by another user (if possible),
or an error will occur.public WfXMLWebLink(org.apache.xmlbeans.XmlObject obj)
@Deprecated public WfXMLWebLink(Element webLinkElem)
Element
. The
Element
must be a web link element, otherwise an
exception will be thrown.webLinkElem
- JDOM Element
representing a
web link.IllegalArgumentException
- if the webLinkElem
parameter
is no valid note element.public WfXMLWebLink(DMSWebLink dmsWebLink) throws Exception
DMSWebLink
. The WfXMLWebLink will be filled with
the values of the DMSWebLink
.dmsWebLink
- A DMSWebLink
object.Exception
- if there occur problems reading data from the
DMSWebLink
object.public String getName()
getName
in class WfXMLObject
String
containing the name of this
web link or null
if no name has been defined.public String getURL()
String
) of this web link.String
with the URL of this web link or
null
if no URL has been set.public String getDescription()
String
holding the description of this
web link or null
if no description has been defined.public void setName(String name)
name
- A String
containing a new name for
this web link.public void setURL(String url)
http://www...
") so that the link will work properly
in @enterprise.url
- A String
with the new URL for the
web linkpublic void setDescription(String description)
description
- A String
holding the new
description.public void fill(DMSObject existingWebLink, User defaultCreator) throws Exception
DMSWebLink
with the data
of this WfXMLWebLink and updates it to the database.fill
in class WfXMLObject
existingWebLink
- The existing DMSWebLink
. If you pass
an object that is no DMSWebLink
, this method will simply
do nothing.defaultCreator
- A creator for objects that must be created. As this method
updates a web link, the user will not be used, because it will not be necessary
to create anything here. You can simply pass in null
.Exception
- If updating the DMSWebLink
with the
data fails.public DMSObject createDMSObject(User defaultCreator)
DMSWebLink
object out of this
WfXMLWebLink
.createDMSObject
in class WfXMLObject
defaultCreator
- You can specify a default creator with this parameter.
If there is no user defined in this WfXMLWebLink
object, or if the defined
user cannot be found, the defaultCreator
will be used. If this
user also does not exist, an
ApplicationException
will be
thrown.DMSWebLink
object, or
null
if creating the web link didn't work.public Element getAsXML()
getAsXML
in class WfXMLObject
Element
, which is a web link element
with all information of this web link.public Object clone()
WfXMLWebLink
.public org.apache.xmlbeans.XmlObject getXMLObject()
getXMLObject
in class WfXMLObject
@enterprise 10.0.39049 Copyright © 2024 FREQUENTIS AG. All Rights Reserved.