ARoad0.gBaseInterface
Interface Directory

All Superinterfaces:
ACSObject, BaseBeanManager, BaseObject, Basic, BoundBean, java.lang.Cloneable, java.lang.Comparable, Copyable, FinalizedObject, FinalizedObjectForUser, ImmutableBasic, ImmutableDirectory, ImmutableLeaf, ImmutableNode, ImmutablePrivilegeTarget, ImmutableResource, ImmutableTarget, Leaf, Node, PrivilegeTarget, PrivilegeUser, Resource
All Known Subinterfaces:
BasesSetMySQL, DirectoryMySQL, DirectoryUbuntu
All Known Implementing Classes:
BasesSetMySQLImpl, DirectoryImpl, DirectoryMySQLImpl, DirectoryUbuntuImpl

public interface Directory
extends Node, Resource, ImmutableDirectory

The directory is composed of directories and files as children, and it is a kind of resource. It manages fully the AG inherited rights of its children. It manages only partially the ACL and PRI inherited rights of its children, and this may be completed by the AcsAddons. There are three flows of data to manage the inherited AclEntries:

- one at the ACL creation/deletion, and this is not done in the generic gBaseInterface,

- one at their inner rights editing, and this is the responsability of this interface,

- and the last flow, only for the condition ACL, at the editing of the membership relation between the source and a condition group, and this is the responsability of this interface.

There are two flows of data to manage the inherited Privileges:

- one at the privilege creation/deletion, and this is not done in the generic gBaseInterface,

- one at their sources editing, and this is the responsability of this interface.

See Also:
Resource

Method Summary
 void resetInheritedAclEntryRightsOfChildren(AclEntry _acl)
          Resets the inherited AclEntry rights in the children, if the AclEntry inheritance is applicable.
 void resetInheritedPrivilegeRightsOfChildren(PrivilegeForLinks _lpri)
          Resets the inherited Privilege rights in the children, if the Privilege inheritance is applicable.
 void setEnforceChildGID(boolean _a)
           
 
Methods inherited from interface ARoad0.gBaseInterface.Resource
addAclEntry, copyWithoutInternalAcl, removeAclEntry, resetInheritedAclEntryRights, resetInheritedPrivilegeRights, selectInheritedPrivilege, setEorGroupID, setEorUserID, setL_groupRights, setL_ownerRights, setL_rootRights, setResourceType
 
Methods inherited from interface ARoad0.gBaseInterface.Basic
finalizeForUser, setComment
 
Methods inherited from interface ARoad0.gBaseInterface.PrivilegeTarget
addEorPrivilegeForTypeToTarget, removeEorPrivilegeToTarget
 
Methods inherited from interface ARoad0.gBaseInterface.ImmutableDirectory
getEnforceChildGID, getEorL_Children
 
Methods inherited from interface ARoad0.gBaseInterface.ImmutableResource
containsAclEntryToEP, getActorActivated, getAGOAccessFromTheParentAccount, getAGOAccessFromTheParentGroup, getEorGroupID, getEorImmutableL_TargetInheritedAclEntries, getEorL_EPthroughAclEntry, getEorUserID, getL_aclEntry, getL_AcsControllers, getL_groupRights, getL_inheritedGroupRights, getL_inheritedOwnerRights, getL_ownerRights, getL_rootRights, getM_ConstrainedChildACS, getM_TargetInheritedACLRights, getResourceType, hasTheAccountAndGroupOfParent, selectInheritedAclEntry
 
Methods inherited from interface ARoad0.gBaseInterface.ImmutableBasic
getComment, getEorAliasAsInternalHardReference, getEorReferenceAsInternalHardAlias, getHasSoftAlias, getImpliedViews, getIS_Name, getL_AcsOfSoftReferences, getL_SoftAlias, getPropertyChangeListeners, getSerialVersionUID, getVirtualFolders
 
Methods inherited from interface ARoad0.gBaseInterface.Copyable
copy
 
Methods inherited from interface ARoad0.gBaseInterface.ImmutablePrivilegeTarget
getEorImmutableL_TargetInheritedLinkedPrivileges, getEorL_TargetPrivilegeForLinks, getEorL_TargetPrivilegeForTypes, getEorL_TargetPrivileges, getM_TargetInheritedLinkedPRIRights, getType
 
Methods inherited from interface ARoad0.gBaseInterface.ImmutableTarget
getEorAliasAsInternalHardReference, getEorReferenceAsInternalHardAlias, getHasSoftAlias, getL_AcsOfSoftReferences, getL_SoftAlias
 
Methods inherited from interface ARoad0.gBaseInterface.BaseBeanManager
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from interface ARoad0.gBaseInterface.ImmutableLeaf
compareTo, getEorParent
 
Methods inherited from interface ARoad0.gBaseInterface.ACSObject
getAcsName, getEorACS
 
Methods inherited from interface ARoad0.gBaseInterface.BaseObject
equals, getFullName, getName, getNickName, hashCode
 

Method Detail

setEnforceChildGID

void setEnforceChildGID(boolean _a)
Parameters:
_a - true if the groupID is changed for the newly-created files to this directory groupID, and the newly-created sub-directories have this property set to true.

resetInheritedAclEntryRightsOfChildren

void resetInheritedAclEntryRightsOfChildren(AclEntry _acl)
Resets the inherited AclEntry rights in the children, if the AclEntry inheritance is applicable. There are three flows of data to manage the inherited AclEntries:

- one at the ACL creation/deletion, and this is not done in the generic gBase package,

- one at their inner rights editing,

- and the last flow, only for the condition ACL, at the editing of the membership relation between the source and a condition group.

This method is called for handling the second and the third cases, to update the children of the Directory the AclEntry which is the target of the AclEntry. Not described in the BeanInfo since the user does not call it. Note: the creation of the inherited AclEntry in a child is not handled by the generic gBase package, while the rights updating of the inherited AclEntry is handled through this method.

Parameters:
_acl - inherited AclEntry with updated rights

resetInheritedPrivilegeRightsOfChildren

void resetInheritedPrivilegeRightsOfChildren(PrivilegeForLinks _lpri)
Resets the inherited Privilege rights in the children, if the Privilege inheritance is applicable. There are two flows of data to manage the inherited Privileges:

- one at the privilege creation/deletion, and this is not done in the generic gBase package,

- one at their sources editing,

This method is called for handling the second case, to update the children of the Directory which is the target of the Privilege. Not described in the BeanInfo since the user does not call it. Note: the creation of the inherited Privilege in a child is not handled by the generic gBase package, while the rights updating of the inherited Privilege is handled through this method.

Parameters:
_lpri - inherited privilege with updated sources