|
Clearspace API (1.7.0) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DocumentFieldAttributes
Document field attributes consist of properties which control how the field is used throughout the system. For example, the searchable attribute defines whether the document field will be added to the search index.
| Method Summary | |
|---|---|
boolean |
isAlterable()
Returns true if the associated document field is an alterable document field or not. |
boolean |
isFilterable()
Returns the filterability of the associated document field. |
boolean |
isRequired()
Returns true if the associated document field is required. |
boolean |
isSearchable()
Returns whether the associated document field is searchable or not. |
boolean |
isVisible()
Returns the visibility of the associated document field. |
void |
setAlterable(boolean alterable)
Sets whether the associated document field is alterable or not. |
void |
setFilterable(boolean filterable)
Sets the filterability of the associated document field. |
void |
setRequired(boolean required)
Sets whether the associated document field is required or not. |
void |
setSearchable(boolean searchable)
Sets whether the associated document field can be searched. |
void |
setVisible(boolean visible)
Sets the visibility of the associated document field. |
| Method Detail |
|---|
boolean isAlterable()
void setAlterable(boolean alterable)
throws UnauthorizedException
As part of the contract of this method any field that has the alterable attribute set to true must also have a default getValue defined. If this condition is not met this method will throw an IllegalStateException.
alterable - true is the field is to be alterable, false otherwise.
UnauthorizedException - if not an administrator.boolean isSearchable()
Searchability does not override moderation or permissions - a user will only be able to see the document in search results (even if it has a document field marked as searchable) only if the document is moderated appropriately and the user has the proper permissions to view the document.
void setSearchable(boolean searchable)
throws UnauthorizedException
Searchability does not override moderation or permissions - a user will only be able to see the document in search results (even if it has a document field marked as searchable) only if the document is moderated appropriately and the user has the proper permissions to view the document.
searchable - true if the associated document field should be marked as searchable, false
otherwise.
UnauthorizedException - if not an administrator.boolean isRequired()
DocumentState.INCOMPLETE state. This means that documents can be created and saved in a draft
state and later on completed and submitted. The default getValue is false.
void setRequired(boolean required)
throws UnauthorizedException
required - true if the associated document field is required, false otherwise
UnauthorizedException - if not an administrator.boolean isVisible()
Document field visibility is primarily aimed at solving the problem where you want document authors to provide information as part of the document creation process (say "Internal issue #") but do not want that information displayed to the public.
void setVisible(boolean visible)
throws UnauthorizedException
Document field visibility is primarily aimed at solving the problem where you want document authors to provide information as part of the document creation process (say "Internal issue #") but do not want that information displayed to the public.
visible - true if the associated document field should be visible, false otherwise.
UnauthorizedException - if not an administrator.boolean isFilterable()
Note that document fields of the
DocumentFieldType.DataType.LIST_MULTI are explicitly
disallowed from being filterable.
void setFilterable(boolean filterable)
throws UnauthorizedException
Note that document fields of the
DocumentFieldType.DataType.LIST_MULTI are explicitly
disallowed from being filterable. Attempting to set such a document field to filterable will
do nothing.
filterable - true if the document field should be filterable, false otherwise.
UnauthorizedException - if not an administrator.
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||