|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.infodesire.infobit.dao.BaseDAO
|
+--com.infodesire.infobit.dao.InfobitDAO
DAO for infobits - encapsulates infobit creation and manipulation as well as accsess control
| Constructor Summary | |
InfobitDAO(SecurityProvider sec,
SessionProvider sess)
Constructor for the InfobitDAO object |
|
| Method Summary | |
void |
createBinary(Infobit ib,
java.lang.String name,
byte[] data,
java.lang.String mime,
java.util.Set keywords)
create binary infobit content |
void |
createBinary(Infobit ib,
java.lang.String name,
java.io.InputStream stream,
java.lang.String mime,
java.util.Set keywords)
create binary infobit content |
Infobit |
createInfobit(java.lang.String id,
Acl acl)
create new infobit |
void |
createScript(Infobit ib,
java.lang.String name,
Infobit template,
java.util.Map links,
java.util.Set keywords)
create script. |
void |
createTemplate(Infobit ib,
java.lang.String name,
java.lang.String text)
create template for scripts. |
void |
createText(Infobit ib,
java.lang.String name,
java.lang.String text,
java.util.Set keywords)
create new version with textual content. |
byte[] |
getBytes(PrimitiveContent content)
Gets the Bytes attribute of the InfobitDAO object |
java.io.InputStream |
getContent(PrimitiveContent content)
return contents of primitive element as binary stream. |
int |
getContentLength(PrimitiveContent content)
Gets the size of the content. |
Infobit |
getInfobit(java.lang.String name)
load infobit by name |
java.lang.String |
getString(PrimitiveContent content)
Gets the String attribute of the InfobitDAO object |
boolean |
hasInfobit(java.lang.String name)
whether given infobit exists |
java.util.Collection |
queryInfobits(java.lang.String where)
DOCUMENT METHOD |
void |
removeInfobit(Infobit ib)
remove infobit from existence. |
void |
removeInfobit(java.lang.String name)
remove infobit instance. |
void |
setActualVersion(Infobit ib,
Version version)
Sets the ActualVersion attribute of the InfobitDAO object |
void |
setAttribute(Content content,
java.lang.String name,
java.lang.String value)
Sets the Attribute attribute of the Content object |
void |
setAttribute(Infobit infobit,
java.lang.String name,
java.lang.String value)
set infobit attrobute. |
| Methods inherited from class com.infodesire.infobit.dao.BaseDAO |
doLoad, getSecurityProvider, getSessionProvider, performQuery, performQuery, setSecurityProvider, setSessionProvider |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public InfobitDAO(SecurityProvider sec,
SessionProvider sess)
sec - security providersess - session provider| Method Detail |
public java.lang.String getString(PrimitiveContent content)
throws InfobitException,
InfobitSecurityException
getString in interface InfobitManagercontent - Description of Parameter
InfobitException - Description of Exception
InfobitSecurityException - Description of Exception
public Infobit getInfobit(java.lang.String name)
throws InfobitException
getInfobit in interface InfobitManagername - name of infobit
InfobitException - will be thrown is something wrong happens.
public java.io.InputStream getContent(PrimitiveContent content)
throws InfobitException,
InfobitSecurityException
getContent in interface InfobitManagercontent - Description of Parameter
InfobitException - Description of Exception
InfobitSecurityException - Description of Exception
public int getContentLength(PrimitiveContent content)
throws InfobitException,
InfobitSecurityException
getContentLength in interface InfobitManagercontent - The content the size of which to
query
InfobitException - Description of Exception
InfobitSecurityException - Description of Exception
public byte[] getBytes(PrimitiveContent content)
throws InfobitException,
InfobitSecurityException
getBytes in interface InfobitManagercontent - Description of Parameter
InfobitException - Description of Exception
InfobitSecurityException - Description of Exception
public void setAttribute(Infobit infobit,
java.lang.String name,
java.lang.String value)
throws InfobitException,
InfobitSecurityException
setAttribute in interface InfobitManagername - attribute namevalue - attribute valueinfobit - The new Attribute value
InfobitException - will be thrown if something wrong
happens
InfobitSecurityException - will be thrown on insufficient
security permissions
public void setAttribute(Content content,
java.lang.String name,
java.lang.String value)
throws InfobitException,
InfobitSecurityException
setAttribute in interface InfobitManagercontent - content objectname - attribute namevalue - attribute value
InfobitException - will be thrown if something wrong
happens
InfobitSecurityException - will be thrown on insufficient
security permissions
public void setActualVersion(Infobit ib,
Version version)
throws InfobitException,
InfobitSecurityException
setActualVersion in interface InfobitManagerib - The new ActualVersion valueversion - The new ActualVersion value
InfobitException - Description of Exception
InfobitSecurityException - Description of Exception
public java.util.Collection queryInfobits(java.lang.String where)
throws InfobitException,
InfobitSecurityException
queryInfobits in interface InfobitManagerwhere - Description of Parameter
InfobitException - Description of Exception
InfobitSecurityException - Description of Exception
public boolean hasInfobit(java.lang.String name)
throws InfobitException
hasInfobit in interface InfobitManagername - Description of Parameter
InfobitException - canb be thrown if something wents wrong
public void removeInfobit(java.lang.String name)
throws InfobitException,
InfobitSecurityException
removeInfobit in interface InfobitManagername - Description of Parameter
InfobitException - Description of Exception
InfobitSecurityException - Description of Exception
public void removeInfobit(Infobit ib)
throws InfobitException,
InfobitSecurityException
ib - Description of Parameter
InfobitException - Description of Exception
InfobitSecurityException - Description of Exception
public Infobit createInfobit(java.lang.String id,
Acl acl)
throws InfobitException,
InfobitSecurityException
createInfobit in interface InfobitManagerid - string id of infobitacl - Description of Parameter
InfobitException - will be thrown if something went
wrong
InfobitSecurityException - Description of Exception
public void createText(Infobit ib,
java.lang.String name,
java.lang.String text,
java.util.Set keywords)
throws InfobitException,
InfobitSecurityException
createText in interface InfobitManagerib - infobitname - unique version name ( within given
infobit )keywords - keywords for searching. shall
contain stringstext - textual content of infobit
InfobitException - when some problem occurs
InfobitSecurityException - when insufficient permissions.
public void createBinary(Infobit ib,
java.lang.String name,
java.io.InputStream stream,
java.lang.String mime,
java.util.Set keywords)
throws InfobitException,
InfobitSecurityException
createBinary in interface InfobitManagerib - infobitname - unique version name ( within given
infobit )stream - stream containing binary datamime - mime typekeywords - keywords for searching . shall
contain strings
InfobitException - when some problem occurs
InfobitSecurityException - when insufficient permissions.
public void createBinary(Infobit ib,
java.lang.String name,
byte[] data,
java.lang.String mime,
java.util.Set keywords)
throws InfobitException,
InfobitSecurityException
createBinary in interface InfobitManagerib - infobitname - unique version name ( within given
infobit )data - array coontaining binary datamime - mime typekeywords - keywords for searching. shall
contain strings
InfobitException - when some problem occurs
InfobitSecurityException - when insufficient permissions.
public void createTemplate(Infobit ib,
java.lang.String name,
java.lang.String text)
throws InfobitException,
InfobitSecurityException
createTemplate in interface InfobitManagerib - infobitname - unique version name ( within given
infobit )text - template text
InfobitException - when some problem occurs
InfobitSecurityException - when insufficient permissions.
public void createScript(Infobit ib,
java.lang.String name,
Infobit template,
java.util.Map links,
java.util.Set keywords)
throws InfobitException,
InfobitSecurityException
createScript in interface InfobitManagerib - infobitname - unique version name ( within given
infobit )template - template infobitlinks - map of links to be merged with
template. shall be keyed by strings and contain infobitskeywords - keywords for searching. shall
contain strings
InfobitException - Description of Exception
InfobitSecurityException - Description of Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||