@Immutable public final class DyTalks extends Object implements Talks
Talks.InDir
Modifier and Type | Field and Description |
---|---|
static String |
ATTR_ACTIVE
Is it active (1) or archived (0).
|
static String |
ATTR_NUMBER
Its number.
|
static String |
ATTR_REPO
Name of the repo it belongs to.
|
static String |
ATTR_UPDATED
When updated.
|
static String |
ATTR_XML
XML of the talk.
|
static String |
ATTR_XML_ZIP
XML of the talk, gzip.
|
static String |
HASH
Talk unique name.
|
static String |
IDX_ACTIVE
Index name.
|
static String |
IDX_NUMBERS
Index name.
|
static String |
IDX_SIBLINGS
Index name.
|
static String |
TBL
Table name.
|
Constructor and Description |
---|
DyTalks(com.jcabi.dynamo.Region reg,
co.stateful.Counter cnt)
Public ctor.
|
Modifier and Type | Method and Description |
---|---|
Iterable<Talk> |
active()
Get only active talks.
|
void |
create(String repo,
String name)
Create a new one (runtime exception if it exists already).
|
void |
delete(String name)
Delete an existing talk (runtime exception if it's absent).
|
boolean |
exists(long number)
Talk exists already?
|
boolean |
exists(String name)
Talk exists already?
|
Talk |
get(long number)
Get an existing talk (runtime exception if it's absent).
|
Talk |
get(String name)
Get an existing talk (runtime exception if it's absent).
|
Iterable<Talk> |
recent()
Get recent talks.
|
Iterable<Talk> |
siblings(String repo,
Date since)
Get siblings, since this date (all talks will be older that this date).
|
public static final String TBL
public static final String IDX_ACTIVE
public static final String IDX_NUMBERS
public static final String IDX_SIBLINGS
public static final String HASH
public static final String ATTR_NUMBER
public static final String ATTR_REPO
public static final String ATTR_ACTIVE
public static final String ATTR_XML
public static final String ATTR_XML_ZIP
public static final String ATTR_UPDATED
public DyTalks(com.jcabi.dynamo.Region reg, co.stateful.Counter cnt)
reg
- Regioncnt
- Counter of talkspublic boolean exists(long number)
Talks
public Talk get(long number)
Talks
public boolean exists(String name)
Talks
public Talk get(String name)
Talks
public void delete(String name)
Talks
public void create(String repo, String name) throws IOException
Talks
create
in interface Talks
repo
- Name of the repository it is inname
- The nameIOException
- If failspublic Iterable<Talk> active()
Talks
Copyright © 2009–2018 Rultor Inc.. All rights reserved.