|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dvb.io.persistent.FileAccessPermissions
org.ocap.storage.ExtendedFileAccessPermissions
public class ExtendedFileAccessPermissions
This class extends FileAccessPermissions to let granting applications provide read
and write file access to applications that have an organisation identifier different from
a granting application.
| Constructor Summary | |
|---|---|
ExtendedFileAccessPermissions(boolean readWorldAccessRight,
boolean writeWorldAccessRight,
boolean readOrganisationAccessRight,
boolean writeOrganisationAccessRight,
boolean readApplicationAccessRight,
boolean writeApplicationAccessRight,
int[] otherOrganisationsReadAccessRights,
int[] otherOrganisationsWriteAccessRights)
This constructor encodes application, application organisation, and world file access permissions as a set of booleans, and other organisations file access permissions as arrays of granted organisation identifiers. |
|
| Method Summary | |
|---|---|
int[] |
getReadAccessOrganizationIds()
Gets the array of organisation identifiers with read permission. |
int[] |
getWriteAccessOrganizationIds()
Gets the array of organisation identifiers with write permission. |
void |
setPermissions(boolean readWorldAccessRight,
boolean writeWorldAccessRight,
boolean readOrganisationAccessRight,
boolean writeOrganisationAccessRight,
boolean readApplicationAccessRight,
boolean writeApplicationAccessRight,
int[] otherOrganisationsReadAccessRights,
int[] otherOrganisationsWriteAcessRights)
This method allows modification of the permissions on this instance of the ExtendedFileAccessPermission class. |
| Methods inherited from class org.dvb.io.persistent.FileAccessPermissions |
|---|
hasReadApplicationAccessRight, hasReadOrganisationAccessRight, hasReadWorldAccessRight, hasWriteApplicationAccessRight, hasWriteOrganisationAccessRight, hasWriteWorldAccessRight, setPermissions |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExtendedFileAccessPermissions(boolean readWorldAccessRight,
boolean writeWorldAccessRight,
boolean readOrganisationAccessRight,
boolean writeOrganisationAccessRight,
boolean readApplicationAccessRight,
boolean writeApplicationAccessRight,
int[] otherOrganisationsReadAccessRights,
int[] otherOrganisationsWriteAccessRights)
readWorldAccessRight - read access for all applicationswriteWorldAccessRight - write access for all applicationsreadOrganisationAccessRight - read access for applications with the same
organisation as the granting application.writeOrganisationAccessRight - write access for applications with the same
organisation as the granting application.readApplicationAccessRight - read access for the owner.writeApplicationAccessRight - write access for the owner.otherOrganisationsReadAccessRights - array of other organisation identifiers with
read access. Applications with an organisation identifier matching one of these
organisation identifiers will be given read access.otherOrganisationsWriteAccessRights - array of other organisation identifiers with
write access. Applications with an organisation identifier matching one of these
organisation identifiers will be given write access.| Method Detail |
|---|
public void setPermissions(boolean readWorldAccessRight,
boolean writeWorldAccessRight,
boolean readOrganisationAccessRight,
boolean writeOrganisationAccessRight,
boolean readApplicationAccessRight,
boolean writeApplicationAccessRight,
int[] otherOrganisationsReadAccessRights,
int[] otherOrganisationsWriteAcessRights)
readWorldAccessRight - read access for all applicationswriteWorldAccessRight - write access for all applicationsreadOrganisationAccessRight - read access for organisationwriteOrganisationAccessRight - write access for organisationreadApplicationAccessRight - read access for the ownerwriteApplicationAccessRight - write access for the ownerotherOrganisationsReadAccessRights - array of other organisation identifiers with
read access. Applications with an organisation identifier matching one of these
organisation identifiers will be given read access.otherOrganisationsWriteAcessRights - array of other organisation identifiers with
write access. Applications with an organisation identifier matching one of these
organisation identifiers will be given write access.public int[] getReadAccessOrganizationIds()
public int[] getWriteAccessOrganizationIds()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||