anvil.server.file
Class FileTribe
java.lang.Object
|
+--anvil.server.file.PersistentFileNamespace
|
+--anvil.server.file.FileTribe
- All Implemented Interfaces:
- Entity, FileEntity, Namespace, PersistentNamespace, Tribe
- public class FileTribe
- extends PersistentFileNamespace
- implements FileEntity, Tribe
interface FileTribe
|
Constructor Summary |
FileTribe(FileRealm realm,
java.io.File file,
int id,
java.lang.String name)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
FileTribe
public FileTribe(FileRealm realm,
java.io.File file,
int id,
java.lang.String name)
toString
public java.lang.String toString()
- Overrides:
toString in class PersistentFileNamespace
getId
public int getId()
- Specified by:
getId in interface FileEntity
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
getRealm
public Realm getRealm()
- Specified by:
getRealm in interface Entity
getName
public java.lang.String getName()
- Specified by:
getName in interface FileEntity- Overrides:
getName in class PersistentFileNamespace
attach
public void attach(Citizen citizen)
- Specified by:
attach in interface Tribe
attach
public void attach(Tribe tribe)
- Specified by:
attach in interface Tribe
detach
public void detach(Citizen citizen)
- Specified by:
detach in interface Tribe
detach
public void detach(Tribe tribe)
- Specified by:
detach in interface Tribe
getParents
public Tribe[] getParents()
- Specified by:
getParents in interface Entity
hasChilds
public boolean hasChilds()
- Specified by:
hasChilds in interface Tribe
getChilds
public Tribe[] getChilds()
- Specified by:
getChilds in interface Tribe
getCitizens
public Citizen[] getCitizens()
- Specified by:
getCitizens in interface Tribe
remove
public void remove()
- Specified by:
remove in interface Tribe- Overrides:
remove in class PersistentFileNamespace
getPermissions
public java.security.PermissionCollection getPermissions()
- Specified by:
getPermissions in interface FileEntity
getCombinedPermissions
public java.security.PermissionCollection getCombinedPermissions()
- Specified by:
getCombinedPermissions in interface Entity
addPermission
public void addPermission(java.security.Permission perm)
- Specified by:
addPermission in interface FileEntity
removePermission
public void removePermission(java.security.Permission perm)
- Specified by:
removePermission in interface Entity
listPermissions
public java.util.Iterator listPermissions()
- Specified by:
listPermissions in interface Entity
write
public void write(java.io.OutputStream out)
throws java.io.IOException
- Specified by:
write in interface FileEntity
java.io.IOException
commit
public void commit()
- Specified by:
commit in interface FileEntity- Overrides:
commit in class PersistentFileNamespace