|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nees.metadata.schema.Schema
org.nees.metadata.schema.CompiledSchema
This is a schema that is compiled and stored as MetadataObjects in NMDS. This Schema will transparently fetch and decompile MetadataClasses from NMDS as required.
| Constructor Summary | |
CompiledSchema(NMDSFacade f)
|
|
| Method Summary | |
void |
addMetadataClass(MetadataClass cls)
Also compiles and uploads the class to NMDS. |
Identifier[] |
getClassIds()
|
java.util.HashMap |
getClassIdTitles()
Returns a HashMap of class titles keyed by id |
MetadataClass |
getMetadataClass(Identifier cId)
Fetches the class from NMDS if required |
java.util.Collection |
getMetadataClasses()
Warning: this could be a very expensive call. |
long |
getTTL()
|
void |
setAllUsersPermissions(NMDSPermissions p)
Set the permissions given to compiled classes for all users |
void |
setAllUsersPermissions(java.lang.String p)
Set the permissions given to compiled classes for all users |
void |
setTTL(long t)
|
| Methods inherited from class org.nees.metadata.schema.Schema |
getRelationConstraint, getRelationConstraints, getSubclasses, getSuperclass |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CompiledSchema(NMDSFacade f)
| Method Detail |
public void setTTL(long t)
public long getTTL()
public void setAllUsersPermissions(java.lang.String p)
public void setAllUsersPermissions(NMDSPermissions p)
public void addMetadataClass(MetadataClass cls)
addMetadataClass in class Schemacls - the class to addpublic MetadataClass getMetadataClass(Identifier cId)
getMetadataClass in class SchemacId - the class id
public java.util.Collection getMetadataClasses()
getMetadataClasses in class Schemapublic Identifier[] getClassIds()
getClassIds in class Schemapublic java.util.HashMap getClassIdTitles()
getClassIdTitles in class Schema
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||