|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xcmis.spi.model.TypeDefinition
public class TypeDefinition
| Constructor Summary | |
|---|---|
TypeDefinition()
|
|
TypeDefinition(String id,
BaseType baseId,
String queryName,
String localName,
String localNamespace,
String parentId,
String displayName,
String description,
boolean creatable,
boolean fileable,
boolean queryable,
boolean fulltextIndexed,
boolean includedInSupertypeQuery,
boolean controllablePolicy,
boolean controllableACL,
boolean versionable,
String[] allowedSourceTypes,
String[] allowedTargetTypes,
ContentStreamAllowed contentStreamAllowed,
Map<String,PropertyDefinition<?>> propertyDefinitions)
|
|
| Method Summary | |
|---|---|
String[] |
getAllowedSourceTypes()
Set of allowed type to be source of relationship. |
String[] |
getAllowedTargetTypes()
Set of allowed type to be target of relationship. |
BaseType |
getBaseId()
Base type ID. |
ContentStreamAllowed |
getContentStreamAllowed()
Indicates is content stream allowed or not allowed or needed for this type. |
String |
getDescription()
Optional type description. |
String |
getDisplayName()
Optional type display name. |
String |
getId()
Type unique identifier. |
String |
getLocalName()
Local (internal) type name. |
String |
getLocalNamespace()
Local (internal) name-space for type. |
String |
getParentId()
Parent type ID. |
PropertyDefinition<?> |
getPropertyDefinition(String id)
Get PropertyDefinition by ID. |
Collection<PropertyDefinition<?>> |
getPropertyDefinitions()
|
String |
getQueryName()
Type Query name. |
boolean |
isControllableACL()
Indicates can be CMIS ACL applied to object of this type. |
boolean |
isControllablePolicy()
Indicates can be CMIS policies applied to object of this type. |
boolean |
isCreatable()
Indicates is type creatable or not. |
boolean |
isFileable()
Indicates is type is fileable or not. |
boolean |
isFulltextIndexed()
Indicates can it be used in fulltext queries via SQL CONTAINS(...) clause. |
boolean |
isIncludedInSupertypeQuery()
Indicates is type included in queries of super-types. |
boolean |
isQueryable()
Is type queryable. |
boolean |
isVersionable()
Indicate is this type versionable or not. |
void |
setAllowedSourceTypes(String[] allowedSourceTypes)
|
void |
setAllowedTargetTypes(String[] allowedTargetTypes)
|
void |
setBaseId(BaseType baseId)
|
void |
setContentStreamAllowed(ContentStreamAllowed contentStreamAllowed)
|
void |
setControllableACL(boolean controllableACL)
|
void |
setControllablePolicy(boolean controllablePolicy)
|
void |
setCreatable(boolean creatable)
|
void |
setDescription(String description)
|
void |
setDisplayName(String displayName)
|
void |
setFileable(boolean fileable)
|
void |
setFulltextIndexed(boolean fulltextIndexed)
|
void |
setId(String id)
|
void |
setIncludedInSupertypeQuery(boolean includedInSupertypeQuery)
|
void |
setLocalName(String localName)
|
void |
setLocalNamespace(String localNamespace)
|
void |
setParentId(String parentId)
|
void |
setPropertyDefinitions(Map<String,PropertyDefinition<?>> propertyDefinitions)
|
void |
setQueryable(boolean queryable)
|
void |
setQueryName(String queryName)
|
void |
setVersionable(boolean versionable)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TypeDefinition()
public TypeDefinition(String id,
BaseType baseId,
String queryName,
String localName,
String localNamespace,
String parentId,
String displayName,
String description,
boolean creatable,
boolean fileable,
boolean queryable,
boolean fulltextIndexed,
boolean includedInSupertypeQuery,
boolean controllablePolicy,
boolean controllableACL,
boolean versionable,
String[] allowedSourceTypes,
String[] allowedTargetTypes,
ContentStreamAllowed contentStreamAllowed,
Map<String,PropertyDefinition<?>> propertyDefinitions)
| Method Detail |
|---|
public String getId()
public BaseType getBaseId()
BaseTypepublic String getQueryName()
public String getLocalName()
public String getLocalNamespace()
public String getParentId()
null for root types.
nullpublic String getDisplayName()
null if not providedpublic String getDescription()
null if not providedpublic boolean isCreatable()
true if creatable false otherwisepublic boolean isFileable()
true if fileable false otherwisepublic boolean isQueryable()
FROM clause
of SQL statement.
true if type queryable false otherwisepublic boolean isFulltextIndexed()
CONTAINS(...) clause.
true if type fulltextIndexed false
otherwisepublic boolean isIncludedInSupertypeQuery()
true if type included in super types queries
false otherwisepublic boolean isControllablePolicy()
true if type controllable by policies
false otherwisepublic boolean isControllableACL()
true if type controllable by ACL false
otherwisepublic ContentStreamAllowed getContentStreamAllowed()
ContentStreamAllowed.NOT_ALLOWED for type other then
cmis:document.
public String[] getAllowedSourceTypes()
null. For relationship null minds there
is no any restriction for source types.
nullpublic String[] getAllowedTargetTypes()
null. For relationship null minds there
is no any restriction for target types.
nullpublic boolean isVersionable()
true if type versionable false otherwisepublic Collection<PropertyDefinition<?>> getPropertyDefinitions()
null if type was retrieved
with parameter 'includePropertyDefintions' as false,
see Connection.getTypeDefinition(String, boolean)public PropertyDefinition<?> getPropertyDefinition(String id)
PropertyDefinition by ID.
id - property definition id
null if type was retrieved
with parameter 'includePropertyDefintions' as false,
see Connection.getTypeDefinition(String, boolean) or if
property definition with specified ID does not exist.public void setId(String id)
public void setBaseId(BaseType baseId)
public void setQueryName(String queryName)
public void setLocalName(String localName)
public void setLocalNamespace(String localNamespace)
public void setParentId(String parentId)
public void setDisplayName(String displayName)
public void setDescription(String description)
public void setCreatable(boolean creatable)
public void setFileable(boolean fileable)
public void setQueryable(boolean queryable)
public void setFulltextIndexed(boolean fulltextIndexed)
public void setIncludedInSupertypeQuery(boolean includedInSupertypeQuery)
public void setControllablePolicy(boolean controllablePolicy)
public void setControllableACL(boolean controllableACL)
public void setVersionable(boolean versionable)
public void setAllowedSourceTypes(String[] allowedSourceTypes)
public void setAllowedTargetTypes(String[] allowedTargetTypes)
public void setContentStreamAllowed(ContentStreamAllowed contentStreamAllowed)
public void setPropertyDefinitions(Map<String,PropertyDefinition<?>> propertyDefinitions)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||