public class Type extends Object implements IOAtom, Serializable
IOObject
's state or type.
Type.Category
is a manditory attribute and describes to which category group this type belongs.
For example:
Types of category SectionStateType
has these possible names: published
and notPublished.
Type objects can be retrieved from TypeManager
.
Example 1: Retrieving the Type object belonging to section state "published"
The wanted state can be retrieved from TypeManager.getType(Type.Category, String)
where the category is Type.SectionStateType
and the String
is FieldConstants.PUBLISHED
.
Example 2: Setting state on a section:
The wanted state can be retrieved from TypeManager.getType(Type.Category, String)
.
Once you have the type object you can call SectionTransaction.setState(int)
with the int found in getId()
.
Example 3: Setting pool type
The wanted type can be retrieved from TypeManager.getType(Type.Category, String)
.
Once you have the type object you can call PoolTransaction.setType(neo.xredsys.api.Type)
with the Type object found.
Modifier and Type | Class and Description |
---|---|
static class |
Type.Category
Describes to which category group a
Type object belongs. |
IOAtom.ObjectType
Modifier and Type | Field and Description |
---|---|
static Type.Category |
AgreementType
Constant to specify that a Type object describes an AgreementType
|
static Type.Category[] |
AllCategories |
static Type.Category |
ArticleContentType
Deprecated.
replaced with
ArticleType |
static Type.Category |
ArticlePoolStateType
Constant to specify that a Type object describes an articles state
in a pool
|
static Type.Category |
ArticleReferenceType
Constant to specify that a Type object describes the type of
relation between an Article and a ReferenceEntity
|
static Type.Category |
ArticleStateType
Constant to specify that a Type object describes an ArticleState
|
static Type.Category |
ArticleType
Constant to specify that a Type object describes an ArticleType
|
static Type.Category |
ArticleVariant
Constant to specify that a Type object describes an article variant
|
protected Type.Category |
category |
static Type.Category |
EntityStateType
Constant to specify that a Type object describes an EntityStateType
|
static Type.Category |
EntityType
Constant to specify that a Type object describes an EntityType
|
protected int |
id |
static Type.Category |
Language
Constant to specify that a Type object describes a Language
|
static Type.Category |
LayoutType
Constant to specify that a Type object describes a LayoutType
|
protected String |
name |
static Type.Category |
PersonArticleRoleType
Constant to specify a relation between a person and an article
|
static Type.Category |
PoolRuleType
Constant to specify that a Type object describes a PoolRuleType
|
static Type.Category |
PoolType
Constant to specify that a Type object describes a PoolType
|
protected Hashtable |
properties |
static Type.Category |
PublicationType
Constant to specify that a Type object describes a PublicationType
|
static Type.Category |
RelationType
Constant to specify that a Type object describes a relation type
between two articles
|
static Type.Category |
SectionStateType
Constant to specify that a Type object describes a SectionStateType
|
static Type.Category |
SectionType
Constant to specify that a Type object describes a SectionType
|
static Type.Category |
StorylineTemplateType
Constant to specify that a Type object describes a storyline template type
|
static Type.Category |
UserStatus
Constant to specify that a Type object describes a UserStatus
|
ID_INVALID, OBJECTTYPE_AGREEMENTINFO, OBJECTTYPE_ARTICLE, OBJECTTYPE_CATALOG, OBJECTTYPE_CATEGORY, OBJECTTYPE_ENTITY, OBJECTTYPE_FORUM, OBJECTTYPE_LAYOUT, OBJECTTYPE_MAX, OBJECTTYPE_MIN, OBJECTTYPE_PERSON, OBJECTTYPE_POOL, OBJECTTYPE_POSTING, OBJECTTYPE_PRESENTATION_FORUM, OBJECTTYPE_PRESENTATION_POSTING, OBJECTTYPE_PRESENTATION_THREAD, OBJECTTYPE_PROFILE, OBJECTTYPE_PUBLICATION, OBJECTTYPE_SECTION, OBJECTTYPE_THREAD, OBJECTTYPE_TOPIC, OBJECTTYPE_UNKNOWN, OBJECTTYPE_USERGROUP
Constructor and Description |
---|
Type(Type.Category category,
int id,
String name) |
Type(Type.Category category,
int id,
String name,
Hashtable properties) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
boolean |
equals(String name) |
Type.Category |
getCategory()
Retrieves the category to which this type belongs.
|
int |
getId()
Retrieves the id of this type.
|
String |
getName()
Retrieves the name of this type.
|
int |
hashCode() |
void |
setCategory(Type.Category v)
Deprecated.
Do not use. throws a UnsupportedOperationException.
|
void |
setId(int v)
Deprecated.
Do not use. throws a UnsupportedOperationException.
|
void |
setName(String v)
Deprecated.
Do not use. throws a UnsupportedOperationException
|
String |
toString() |
public static final Type.Category EntityType
public static final Type.Category EntityStateType
public static final Type.Category SectionType
public static final Type.Category SectionStateType
public static final Type.Category PoolType
public static final Type.Category PoolRuleType
public static final Type.Category ArticleType
public static final Type.Category LayoutType
public static final Type.Category ArticleContentType
ArticleType
public static final Type.Category ArticleVariant
public static final Type.Category ArticlePoolStateType
public static final Type.Category ArticleStateType
public static final Type.Category ArticleReferenceType
public static final Type.Category PersonArticleRoleType
public static final Type.Category AgreementType
public static final Type.Category Language
public static final Type.Category UserStatus
public static final Type.Category RelationType
public static final Type.Category PublicationType
public static final Type.Category StorylineTemplateType
public static final Type.Category[] AllCategories
protected Type.Category category
protected int id
protected String name
protected Hashtable properties
public Type(Type.Category category, int id, String name)
public Type(Type.Category category, int id, String name, Hashtable properties)
public Type.Category getCategory()
public void setCategory(Type.Category v)
v
- the category to which this type should belongpublic int getId()
public void setId(int v)
v
- the id of this typepublic String getName()
public void setName(String v)
v
- the name of this typepublic boolean equals(String name)
© 1998- 2021 Escenic AS