public class PDObjDefs extends ObjPD
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CT_DOC |
static java.lang.String |
CT_FOLDER |
static java.lang.String |
fACL |
static java.lang.String |
fACTIVE |
static java.lang.String |
fATTRDESCRIPTION |
static java.lang.String |
fATTRLONG |
static java.lang.String |
fATTRMODALLOW |
static java.lang.String |
fATTRMULTIVALUED |
static java.lang.String |
fATTRNAME |
static java.lang.String |
fATTRPRIMKEY |
static java.lang.String |
fATTRREQUIRED |
static java.lang.String |
fATTRTYPE |
static java.lang.String |
fATTRUNIQUE |
static java.lang.String |
fATTRUSERNAME |
static java.lang.String |
fCLASSTYPE |
static java.lang.String |
fCREATED |
static java.lang.String |
fDESCRIPTION |
static java.lang.String |
fNAME |
static java.lang.String |
fPARENT |
static java.lang.String |
fREPOSIT |
static java.lang.String |
fTRACEADD |
static java.lang.String |
fTRACEDEL |
static java.lang.String |
fTRACEMOD |
static java.lang.String |
fTRACEVIEW |
static java.lang.String |
fTYPNAME |
static java.lang.String |
TABVERSUFIX |
AllowedChars, fPDAUTOR, fPDDATE, SYN_ADD, SYN_DEL, SYN_PARENT, SYN_SEP, SYN_THES, XML_Attr, XML_Field, XML_Group, XML_GroupMembers, XML_ListAttr, XML_Metadata, XML_OPDList, XML_OPDObject, XML_User, XML_UserMembers
Constructor and Description |
---|
PDObjDefs(DriverGeneric Drv)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addAtribute(Attribute Attr)
Add (and saves) a new attribute to the current object definition
|
void |
AddObjectTables(java.lang.String Name,
Attribute NewAttr)
Update the definition of a created object type, adding an additional attribute
and updating the created tables
|
void |
assignValues(Record Rec)
Assign new values to the ObjDef object
|
Attribute |
ConvertRec(Record Rec)
Generates an Attribute from a Record containing definition (Ex.loaded from DDBB)
|
void |
CreateObjectTables(java.lang.String Name,
boolean isFolder)
Creates the Objects table with the definition
|
void |
delAtribute(java.lang.String AttrName)
Deletes (also in DDBB) an Attribute from object definition
|
void |
DelAtributes()
Deletes ALL the Attributes of the current definition
|
void |
DeleteObjectTables(java.lang.String Name)
Destroys all the tables created for storing objects of a type
|
void |
DelObjectTables(java.lang.String Name,
Attribute OldAttr)
Removes an attribute from a created object type, updating definition and tables created
|
java.lang.String |
getACL() |
Record |
GetAttrDef()
Returns the Record containg the definition of attributes of current object type (loading if needed)
|
java.lang.String |
getClassType()
Returns the ClassType (DOCUMENT or FOLDER)
|
java.lang.String |
getDescription() |
Cursor |
getListAttr(java.lang.String ClassName)
Return a Cursor with the list of the attibutes of ClassName
|
Cursor |
getListDocs()
Search for accesible definitions of CREATED clases from family CT_DOC
|
Cursor |
getListDocsActive()
Search for accesible definitions of CREATED clases from family CT_DOC
|
Cursor |
getListDocsRIS()
Search for accesible definitions of clases from family CT_DOC
|
Cursor |
getListFold()
Search for accesible definitions of clases from family CT_FOLDER
|
Cursor |
getListFoldActive()
Search for accesible definitions of clases from family CT_FOLDER
|
Cursor |
getListParentAttr(java.lang.String ClassName)
return a Cursor with the list of atributes of parent class of ClassName
including inherited.
|
Cursor |
getListParentAttr2(java.lang.String ClassName)
return a Cursor with the list of atributes of parent class of ClassName
including inherited.
|
java.util.Vector |
getListParentClases(java.lang.String ClassName)
return an ORDERED Vector of clases parent of ClassName (excluded)
|
java.util.Vector |
getListParentClases2(java.lang.String ClassName)
return an ORDERED Vector of clases parent of ClassName (Included)
|
java.util.HashSet<java.lang.String> |
getListSubClases(java.lang.String ClassName)
return an Vector of Subclases of ClassName (Included)
|
java.lang.String |
getName() |
java.util.HashSet<java.lang.String> |
getNamesDocsDefs()
Creates a HashSet with all the names of Documents definitions yet CREATED and
allowed to the user (by ACL)
|
java.util.HashSet<java.lang.String> |
getNamesFoldDefs()
Creates a HashSet with all the names of FOLDER definitions yet CREATED and
allowed to the user (by ACL)
|
java.util.HashSet<java.lang.String> |
getNamesUncreatedDefs(boolean Folds)
Creates a Hashset with folder or document definitions NOT CREATD yet
|
java.lang.String |
getParent()
Returns the Parent Class
|
Record |
getRecord()
Returns a record with the current values
|
static Record |
getRecordAttrsStruct()
returns the record containing the definition of structure for Object Attribute definition
|
java.lang.String |
getReposit()
Returns the Reposit where the documents binaries wil be stored
|
static java.lang.String |
getTableName()
Static method that returns the name of Object Definitions table in DDBB
|
java.lang.String |
getTabName()
Returns the name of Object Definitions table in DDBB
|
java.lang.String |
getTabNameAttrs()
Returns the name of Object Attribute Definitions table in DDBB
|
boolean |
isActive()
When true, the definition is active and can be used, otherwise is "deprecated"
and elements of the type can NOT be inserted
|
boolean |
isCreated()
When true, the definition is created and elements of the type can be inserted
|
boolean |
isTraceAdd() |
boolean |
isTraceDel() |
boolean |
isTraceMod() |
boolean |
isTraceView() |
void |
ProcesXMLNode(org.w3c.dom.Node OPDObject)
Process the object definition inserting a new object
|
void |
setACL(java.lang.String ACL) |
void |
setActive(boolean Active)
When true, the definition is active and can be used, otherwise is "deprecated"
and elements of the type can NOT be inserted
|
void |
setClassType(java.lang.String pClassType)
The family of class (can be only DOCUMENT o FOLDER)
|
void |
setCreated(boolean Created)
When true, the definition is created and elements of the type can be inserted
|
void |
setDescription(java.lang.String Description) |
void |
setName(java.lang.String Name) |
void |
setParent(java.lang.String Parent)
Set the parent class
|
void |
setReposit(java.lang.String Reposit)
Sets the Reposit where the documents binaries wil be stored
|
void |
setTraceAdd(boolean TraceAdd) |
void |
setTraceDel(boolean TraceDel) |
void |
setTraceMod(boolean TraceMod) |
void |
setTraceView(boolean TraceView) |
CheckName, Clear, delete, EndXML, getAll, getDrv, getPDAutor, getPDDate, insert, Install, Load, SearchLike, SearchLikeDesc, SearchQBE, SearchSelect, SearchSelectV, setDrv, StartXML, String2BD, toXML, unInstall, update
public static final java.lang.String fNAME
public static final java.lang.String fCLASSTYPE
public static final java.lang.String fDESCRIPTION
public static final java.lang.String fACTIVE
public static final java.lang.String fCREATED
public static final java.lang.String fACL
public static final java.lang.String fPARENT
public static final java.lang.String fREPOSIT
public static final java.lang.String fTRACEADD
public static final java.lang.String fTRACEDEL
public static final java.lang.String fTRACEMOD
public static final java.lang.String fTRACEVIEW
public static final java.lang.String fTYPNAME
public static final java.lang.String fATTRNAME
public static final java.lang.String fATTRUSERNAME
public static final java.lang.String fATTRDESCRIPTION
public static final java.lang.String fATTRTYPE
public static final java.lang.String fATTRREQUIRED
public static final java.lang.String fATTRLONG
public static final java.lang.String fATTRPRIMKEY
public static final java.lang.String fATTRUNIQUE
public static final java.lang.String fATTRMODALLOW
public static final java.lang.String fATTRMULTIVALUED
public static final java.lang.String CT_FOLDER
public static final java.lang.String CT_DOC
public static final java.lang.String TABVERSUFIX
public PDObjDefs(DriverGeneric Drv)
Drv
- OPD Sessionpublic void assignValues(Record Rec) throws PDException
assignValues
in class ObjPD
Rec
- Record of ObjDef type with new valuesPDException
- in any errorpublic java.lang.String getName()
public void setName(java.lang.String Name) throws PDExceptionFunc
Name
- the Name to setPDExceptionFunc
- in any errorpublic java.lang.String getDescription()
public void setDescription(java.lang.String Description)
Description
- the Description to setpublic boolean isActive()
public void setActive(boolean Active)
Active
- the Active to setpublic java.lang.String getTabName()
getTabName
in class ObjPD
public static java.lang.String getTableName()
public java.lang.String getTabNameAttrs()
public Record getRecord() throws PDException
getRecord
in class ObjPD
PDException
- in any errorpublic static Record getRecordAttrsStruct() throws PDException
PDException
- in any errorpublic java.lang.String getACL()
public void setACL(java.lang.String ACL)
ACL
- the ACL to setpublic java.lang.String getParent()
public void setParent(java.lang.String Parent)
Parent
- the Parent to setpublic java.lang.String getReposit()
public void setReposit(java.lang.String Reposit)
Reposit
- the Reposit to setpublic void addAtribute(Attribute Attr) throws PDException
Attr
- new attribute to ad to definitionPDException
- in any errorpublic void delAtribute(java.lang.String AttrName) throws PDException
AttrName
- Name of Attribute to deletePDException
- in any errorpublic void DelAtributes() throws PDException
PDException
- in any errorpublic Attribute ConvertRec(Record Rec) throws PDException
Rec
- Record contaning definitionPDException
- in any errorpublic java.lang.String getClassType()
public void setClassType(java.lang.String pClassType) throws PDException
pClassType
- The classtype to AssignPDException
- in any errorpublic Record GetAttrDef() throws PDException
PDException
- in any errorpublic void CreateObjectTables(java.lang.String Name, boolean isFolder) throws PDException
Name
- Name of the Object definitionisFolder
- true when the definition if of a folderPDException
- in any errorpublic void AddObjectTables(java.lang.String Name, Attribute NewAttr) throws PDException
Name
- Class NameNewAttr
- Attribute to AddPDException
- in any errorpublic void DelObjectTables(java.lang.String Name, Attribute OldAttr) throws PDException
Name
- Class definition to updateOldAttr
- Attribute to removePDException
- in any errorpublic void DeleteObjectTables(java.lang.String Name) throws PDException
Name
- object definitionPDException
- in any errorpublic boolean isTraceAdd()
public void setTraceAdd(boolean TraceAdd)
TraceAdd
- the TraceAdd to setpublic boolean isTraceDel()
public void setTraceDel(boolean TraceDel)
TraceDel
- the TraceDel to setpublic boolean isTraceMod()
public void setTraceMod(boolean TraceMod)
TraceMod
- the TraceMod to setpublic boolean isTraceView()
public void setTraceView(boolean TraceView)
TraceView
- the TraceView to setpublic Cursor getListFold() throws PDException
PDException
- on any errorpublic Cursor getListFoldActive() throws PDException
PDException
- on any errorpublic Cursor getListDocs() throws PDException
PDException
- on any errorpublic Cursor getListDocsActive() throws PDException
PDException
- on any errorpublic Cursor getListDocsRIS() throws PDException
PDException
- on any errorpublic Cursor getListAttr(java.lang.String ClassName) throws PDException
ClassName
- Name of classPDException
- in any errorpublic Cursor getListParentAttr(java.lang.String ClassName) throws PDException
ClassName
- name of the Class whom parent are searchedPDException
- in any errorpublic Cursor getListParentAttr2(java.lang.String ClassName) throws PDException
ClassName
- name of the Class whom parent are searchedPDException
- in any errorpublic java.util.Vector getListParentClases(java.lang.String ClassName) throws PDException
ClassName
- Class to bew searchedPDException
- in any errorpublic java.util.Vector getListParentClases2(java.lang.String ClassName) throws PDException
ClassName
- Class to bew searchedPDException
- in any errorpublic java.util.HashSet<java.lang.String> getListSubClases(java.lang.String ClassName) throws PDException
ClassName
- Class to bew searchedPDException
- in any errorpublic void ProcesXMLNode(org.w3c.dom.Node OPDObject) throws PDException
ProcesXMLNode
in class ObjPD
OPDObject
- XML node containing the object dataPDException
- if object name/index duplicated or in any errorpublic boolean isCreated()
public void setCreated(boolean Created)
Created
- the Created to setpublic java.util.HashSet<java.lang.String> getNamesDocsDefs() throws PDException
PDException
- in any errorpublic java.util.HashSet<java.lang.String> getNamesFoldDefs() throws PDException
PDException
- in any errorpublic java.util.HashSet<java.lang.String> getNamesUncreatedDefs(boolean Folds) throws PDException
Folds
- when true, return Folder definition, when false returns Document definitionsPDException
- in any error