public final class PSExternalURI extends PSURI implements PSEntity
DEFAULT_HOST, DEFAULT_PORT, DEFAULT_SCHEME, MAX_PORT_NUMBER
Constructor and Description |
---|
PSExternalURI(String url)
Construct a new document from the specified URL.
|
PSExternalURI(String scheme,
String host,
int port,
String path)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
EntityValidity |
checkValid()
Known constraints on Member are based on SQL definition:
|
String |
getDisplayTitle()
The display title is the title if it's specified,
otherwise the url if it's external or else the filename..
|
boolean |
isFolder() |
boolean |
isValid()
Determines whether the entity is valid based on known PageSeeder constraints.
|
void |
setFolder(boolean folder) |
String |
toString() |
checkURIValid, getCreatedDate, getDescription, getDocid, getId, getIdentifier, getKey, getLabels, getLabelsAsString, getMediaType, getModifiedDate, getTitle, isIdentifiable, setCreatedDate, setDescription, setDocid, setId, setLabels, setLabels, setMediaType, setModifiedDate, setTitle
getHost, getHostURL, getPath, getPort, getScheme, getURL, setHost, setPath, setPort, setScheme, toURL
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getId, getIdentifier, getKey, isIdentifiable
public PSExternalURI(String url)
The URL may omit the scheme or authority part, it which case it will default on the default values from the configuration.
Implementation note: this constructor will decompose the URL into its components.
url
- The URL to the document.IllegalArgumentException
- If the specified URL is invalidpublic String getDisplayTitle()
getDisplayTitle
in class PSURI
public boolean isFolder()
public void setFolder(boolean folder)
folder
- the folder flag to setpublic EntityValidity checkValid()
DocID VARCHAR(100) NULL, Scheme VARCHAR(20) CHARACTER SET ascii NULL, Path VARCHAR(500) CHARACTER SET ascii NULL, HostID INTEGER NULL, Port INTEGER NULL, Title VARCHAR(250) NULL, Behavior VARCHAR(80) NULL, LastModified DATETIME NULL, Description TEXT NULL, UserTitle VARCHAR(250) NULL, Type VARCHAR(100) NULL, Status VARCHAR(40) NULL, Labels VARCHAR(250) NULL,Determines whether this object is valid based on known PageSeeder constraints.
checkValid
in interface PSEntity
true
if the object is intrinsically valid based on its internal values;
false
if any of its attributes violates a PageSeeder constraint.public boolean isValid()
PSEntity
Copyright © 2016 Allette Systems. All rights reserved.