|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
manager for infobits. frontend for infobit DAO
| Method Summary | |
Version |
createBinary(Infobit ib,
java.lang.String name,
byte[] data,
java.lang.String mime,
java.util.Set keywords)
create binary infobit content |
Version |
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 name,
Acl acl)
create new infobit instance with specified name and acl |
Version |
createScript(Infobit ib,
java.lang.String name,
Infobit template,
java.util.Map links,
java.util.Set keywords)
create script. |
Version |
createTemplate(Infobit ib,
java.lang.String name,
java.lang.String text)
create template for scripts. |
Version |
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)
Primitive content as byte array. |
java.io.InputStream |
getContent(PrimitiveContent content)
stream with data of primitive content ( binary, text or whatever ). |
int |
getContentLength(PrimitiveContent content)
Gets the size of the content. |
Infobit |
getInfobit(java.lang.String id)
load infobit in with id. |
java.lang.String |
getString(PrimitiveContent content)
primitive content as string. |
boolean |
hasInfobit(java.lang.String id)
whether pool knows about infobit ( i.e. |
java.util.Collection |
queryInfobits(java.lang.String where)
query infobits. |
void |
removeInfobit(java.lang.String id)
remove infobit if possible |
void |
setActualVersion(Infobit ib,
Version version)
Sets the ActualVersion attribute of the InfobitManager object |
void |
setAttribute(Content content,
java.lang.String name,
java.lang.String value)
set attribute value for given infobit content. |
void |
setAttribute(Infobit infobit,
java.lang.String name,
java.lang.String value)
set attribute value for given infobit. |
| Method Detail |
public Infobit createInfobit(java.lang.String name,
Acl acl)
throws InfobitException,
InfobitSecurityException
name - infobit nameacl - acl name
InfobitException - thrown when infobit creation fails
InfobitSecurityException - thrown because of insufficient
privileges
public boolean hasInfobit(java.lang.String id)
throws InfobitException
id - infobit id
InfobitException - thrown when some problem occurs
public Infobit getInfobit(java.lang.String id)
throws InfobitException,
InfobitSecurityException
id - infobit id
InfobitException - when some problem occurs
InfobitSecurityException - Description of Exception
public void removeInfobit(java.lang.String id)
throws InfobitException,
InfobitIntegrityException,
InfobitSecurityException
id - infobit id
InfobitException - when some problem occurs
InfobitSecurityException - when insufficient permissions.
InfobitIntegrityException - when removal violates structural
integrity
public Version createText(Infobit ib,
java.lang.String name,
java.lang.String text,
java.util.Set keywords)
throws InfobitException,
InfobitSecurityException
ib - 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 Version createBinary(Infobit ib,
java.lang.String name,
java.io.InputStream stream,
java.lang.String mime,
java.util.Set keywords)
throws InfobitException,
InfobitSecurityException
ib - 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 Version createBinary(Infobit ib,
java.lang.String name,
byte[] data,
java.lang.String mime,
java.util.Set keywords)
throws InfobitException,
InfobitSecurityException
ib - 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 Version createTemplate(Infobit ib,
java.lang.String name,
java.lang.String text)
throws InfobitException,
InfobitSecurityException
ib - infobitname - unique version name ( within given
infobit )text - template text
InfobitException - when some problem occurs
InfobitSecurityException - when insufficient permissions.
public Version createScript(Infobit ib,
java.lang.String name,
Infobit template,
java.util.Map links,
java.util.Set keywords)
throws InfobitException,
InfobitSecurityException
ib - 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
public void setActualVersion(Infobit ib,
Version version)
throws InfobitException,
InfobitSecurityException
ib - The new ActualVersion valueversion - The new ActualVersion value
InfobitException - Description of Exception
InfobitSecurityException - Description of Exception
public java.io.InputStream getContent(PrimitiveContent content)
throws InfobitException,
InfobitSecurityException
content - Description of Parameter
InfobitException - Description of Exception
InfobitSecurityException - Description of Exception
public int getContentLength(PrimitiveContent content)
throws InfobitException,
InfobitSecurityException
content - The content the size of which to
query
InfobitException - Description of Exception
InfobitSecurityException - Description of Exception
public byte[] getBytes(PrimitiveContent content)
throws InfobitException,
InfobitSecurityException
content - Description of Parameter
InfobitException - Description of Exception
InfobitSecurityException - Description of Exception
public java.lang.String getString(PrimitiveContent content)
throws InfobitException,
InfobitSecurityException
content - 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
name - The new Attribute valuevalue - The new Attribute valueinfobit - The new Attribute value
InfobitException - Description of Exception
InfobitSecurityException - Description of Exception
public void setAttribute(Content content,
java.lang.String name,
java.lang.String value)
throws InfobitException,
InfobitSecurityException
name - The new Attribute valuevalue - The new Attribute valuecontent - The new Attribute value
InfobitException - Description of Exception
InfobitSecurityException - Description of Exception
public java.util.Collection queryInfobits(java.lang.String where)
throws InfobitException,
InfobitSecurityException
where - Description of Parameter
InfobitException - Description of Exception
InfobitSecurityException - Description of Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||