public final class PSFolder extends PSURI implements PSEntity
DEFAULT_HOST, DEFAULT_PORT, DEFAULT_SCHEME, MAX_PORT_NUMBER
Constructor and Description |
---|
PSFolder(String url)
Construct a new folder from the specified URL.
|
Modifier and Type | Method and Description |
---|---|
EntityValidity |
checkValid()
Known constraints on Member are based on SQL definition:
|
String |
getFoldername() |
static String |
getFoldername(String url)
Returns the foldername from the path or URL.
|
String |
toString() |
checkURIValid, getCreatedDate, getDescription, getDisplayTitle, getDocid, getId, getIdentifier, getKey, getLabels, getLabelsAsString, getMediaType, getModifiedDate, getTitle, isIdentifiable, isValid, 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, isValid
public PSFolder(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 of the folder.IllegalArgumentException
- If the specified URL is invalidpublic String getFoldername()
public 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.Copyright © 2016 Allette Systems. All rights reserved.