|
Project JXTA | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jxta.impl.access.AccessList
PeerView ACL is described as follows
Nested Class Summary | |
static class |
AccessList.Entry
Entries class |
Field Summary | |
protected Map |
accessMap
|
(package private) String |
description
|
(package private) boolean |
grantAll
|
Constructor Summary | |
AccessList()
Default Constructor |
|
AccessList(Element root)
Construct from a StructuredDocument |
|
AccessList(InputStream stream)
Intialize access list from an InputStream |
|
AccessList(Map map)
Constructor for the HealthMessage object |
Method Summary | |
void |
add(AccessList.Entry entry)
|
Map |
getAccessMap()
gets the entries list |
static String |
getAdvertisementType()
All messages have a type (in xml this is !doctype) which identifies the message |
String |
getDescrption()
gets the description |
Document |
getDocument(MimeMediaType asMimeType)
{@inheritDoc} |
boolean |
getGrantAll()
gets the description |
void |
init(File fromFile)
Intialize access list from a file |
protected void |
initialize(TextElement doc)
Process an individual element from the document. |
boolean |
isAllowed(ID id)
|
void |
refresh(File file)
|
void |
refresh(InputStream stream)
|
void |
remove(AccessList.Entry entry)
|
void |
setDescrption(String description)
sets description |
void |
setEntries(Map map)
sets the entries list |
void |
setGrantAll(boolean grantAll)
gets the description |
String |
toString()
returns the document string representation of this object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected Map accessMap
String description
boolean grantAll
Constructor Detail |
public AccessList()
public AccessList(InputStream stream) throws IOException
public AccessList(Map map)
public AccessList(Element root)
root
- root elementMethod Detail |
public void init(File fromFile) throws IOException
fromFile
- file to init from
IOException
- if an io error occurspublic void refresh(File file)
public void refresh(InputStream stream) throws IOException
IOException
public String getDescrption()
public boolean getGrantAll()
public void setGrantAll(boolean grantAll)
public void setDescrption(String description)
description
- The new descriptionpublic void setEntries(Map map)
public void add(AccessList.Entry entry)
public void remove(AccessList.Entry entry)
public boolean isAllowed(ID id)
public Map getAccessMap()
public Document getDocument(MimeMediaType asMimeType)
asMimeType
- mime type encoding
protected void initialize(TextElement doc)
doc
- public String toString()
public static String getAdvertisementType()
|
JXTA J2SE | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |