public interface IConcept extends ILocalizedDescription, org.sistema.persist.IPersistent
Modifier and Type | Method and Description |
---|---|
void |
addDocumentType(IDocType typeId)
Adds a valid document type for the concept.
|
java.util.Collection<IDocType> |
getDocumentTypes() |
java.lang.Integer |
getId() |
byte |
getProductRequired()
Determines if the concept requires a product.
|
boolean |
isDocumentTypeValid(java.lang.Integer documentTypeId) |
void |
setDocumentTypes(java.util.Collection<IDocType> types)
Sets the allowed document types for the concept.
|
void |
setId(java.lang.Integer id)
Sets the unique identifier of the concept.
|
void |
setProductRequired(byte productRequired)
Sets the product required flag.
|
getDescription, getDescription, getDescriptions, setDescriptions
void addDocumentType(IDocType typeId)
typeId
- java.util.Collection<IDocType> getDocumentTypes()
java.lang.Integer getId()
getId
in interface org.sistema.persist.IPersistent
byte getProductRequired()
boolean isDocumentTypeValid(java.lang.Integer documentTypeId)
documentTypeId
- void setDocumentTypes(java.util.Collection<IDocType> types)
types
- void setId(java.lang.Integer id)
id
- void setProductRequired(byte productRequired)
productRequired
- 0: no product is involved in the concept.
1: a product is required for the concept.
2: a product is optional for the concept.