public class PSGroupFolder extends PSAddressable implements PSEntity
DEFAULT_HOST, DEFAULT_PORT, DEFAULT_SCHEME, MAX_PORT_NUMBER
Constructor and Description |
---|
PSGroupFolder(String url)
Creates a new group folder from the specified URL.
|
Modifier and Type | Method and Description |
---|---|
EntityValidity |
checkValid()
Known constraints on Member are based on SQL definition:
|
static PSGroupFolder |
forPath(String path) |
Long |
getId() |
String |
getIdentifier()
Returns the identifier to use when connecting to PageSeeder based on the ID available.
|
String |
getKey() |
boolean |
isExternal() |
boolean |
isIdentifiable()
Determines whether the entity can be identified in PageSeeder.
|
boolean |
isValid()
Determines whether the entity is valid based on known PageSeeder constraints.
|
void |
setExternal(boolean isExternal) |
void |
setId(Long id) |
String |
toString() |
public PSGroupFolder(String url)
url
- The URL for this group folder.public String getKey()
public boolean isIdentifiable()
PSEntity
To be identifiable, the entity must have either a private id or a public id.
If the public ID does not correspond to a single attribute in PageSeeder, then a combination of attributes may be used to determine whether it is possible to identify the entity.
isIdentifiable
in interface PSEntity
true
if the object can be identified in PageSeeder;
false
if it is not possible to identify the entity form its attributes or keys.public String getIdentifier()
PSEntity
When both the private and public identifier are available, the private identifier takes precedence over the public one.
When the public identifier cannot be used on its own, then only the private ID is returned.
In general, if the PSEntity.isIdentifiable()
method return true
, this
method should return a value. When it is not the case, it should be clearly documented.
getIdentifier
in interface PSEntity
public void setId(Long id)
id
- the id to setpublic final boolean isExternal()
public final void setExternal(boolean isExternal)
isExternal
- the isExternal to setpublic EntityValidity checkValid()
GroupName VARCHAR(60) NULL GroupDesc VARCHAR(250) NULL DetailsForm VARCHAR(150) NULL Owner VARCHAR(100) NULLDetermines 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
public static PSGroupFolder forPath(String path)
Copyright © 2016 Allette Systems. All rights reserved.