ARoad0.AcsAddon.Accbee.Ubuntu.gBaseInterface
Interface UserIDUbuntu

All Superinterfaces:
ACSObject, BaseBeanManager, BaseObject, Basic, BoundBean, java.lang.Cloneable, java.lang.Comparable, Copyable, EligibleParty, FinalizedObject, FinalizedObjectForUser, GroupIDMember, ImmutableBasic, ImmutableEligibleParty, ImmutableGroupIDMember, ImmutablePrivilegeSource, ImmutableSource, ImmutableTarget, ImmutableUserID, PrivilegeSource, PrivilegeUser, UserID
All Known Implementing Classes:
UserIDUbuntuImpl

public interface UserIDUbuntu
extends UserID

This interface is the immutable version of UserID for Ubuntu. As a Linux/Unix account, it has an umask value.


Method Summary
 java.lang.String getUMask()
          This umask defines some rights to subtract to the 'full control' right, at the creation of a Resource that belongs to this UserID.
 java.util.Set<StringRight> processUMask(java.lang.String _mask, boolean _isDirectory, boolean _isNxDirectory)
          Get the denying rights for a resource and its AGO rights.
 void setUMask(java.lang.String _umask)
          The allowed format is 3 blocks for respectively Account, Group and Other rights.
 
Methods inherited from interface ARoad0.gBaseInterface.UserID
finalizeForUser, setEorPrimGroup, setOrder
 
Methods inherited from interface ARoad0.gBaseInterface.ImmutableUserID
getEorL_UserIDCurrentActors, getEorL_UserIDOwnResources, getEorPrimGroup, getOrder, ownsResource
 
Methods inherited from interface ARoad0.gBaseInterface.GroupIDMember
addGroupToGM, removeGroupToGM
 
Methods inherited from interface ARoad0.gBaseInterface.EligibleParty
copyWithoutInternalAcl, setEPType
 
Methods inherited from interface ARoad0.gBaseInterface.Basic
setComment
 
Methods inherited from interface ARoad0.gBaseInterface.PrivilegeSource
addEorPrivilegeForTypeToSource, removeEorPrivilegeToSource
 
Methods inherited from interface ARoad0.gBaseInterface.ImmutableGroupIDMember
getEorL_GroupID, isAdmin
 
Methods inherited from interface ARoad0.gBaseInterface.ImmutableEligibleParty
getEorL_AclConnectedResources, getEPType, getM_ConstrainedChildACS
 
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.BoundBean
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from interface ARoad0.gBaseInterface.FinalizedObject
finalizeForBase
 
Methods inherited from interface ARoad0.gBaseInterface.ImmutablePrivilegeSource
getEorL_SourcePrivilegeForLinks, getEorL_SourcePrivilegeForTypes, getEorL_SourcePrivileges
 
Methods inherited from interface ARoad0.gBaseInterface.ImmutableSource
getEorAliasAsInternalHardReference, getEorReferenceAsInternalHardAlias, getHasSoftAlias, getL_AcsOfSoftReferences, getL_SoftAlias, getType
 
Methods inherited from interface ARoad0.gBaseInterface.ACSObject
getAcsName, getEorACS
 
Methods inherited from interface ARoad0.gBaseInterface.BaseObject
equals, getFullName, getName, getNickName, hashCode
 
Methods inherited from interface ARoad0.gBaseInterface.BaseBeanManager
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from interface ARoad0.gBaseInterface.ImmutableTarget
getEorAliasAsInternalHardReference, getEorReferenceAsInternalHardAlias, getHasSoftAlias, getL_AcsOfSoftReferences, getL_SoftAlias, getType
 

Method Detail

getUMask

java.lang.String getUMask()
This umask defines some rights to subtract to the 'full control' right, at the creation of a Resource that belongs to this UserID. The default value is '--- --- ---' for respectively Account, Group and Other rights.

Returns:
the allowed format of 3 blocks of 3 letters among the values '-', 'r', 'w', 'x'.

setUMask

void setUMask(java.lang.String _umask)
              throws UpDateError
The allowed format is 3 blocks for respectively Account, Group and Other rights. _umask is the target value extended by SimplePropertyEditor with " ". No control of the management by the ACS of accounts, groups and other. Noop and error mesage to the user if the ep type is '' or contains ''.

Parameters:
_umask - from '--- --- ---' to 'wxr wxr wxr', following Linux/Unix concept (from 0 to 777), or 3 used acsrights/metarights separated by one space, or 3 blocks separated by one space and inferior to 4, containing at most one of the characters 'wxr'.
Throws:
UpDateError - for all the wrong formats or if the umask is immutable

processUMask

java.util.Set<StringRight> processUMask(java.lang.String _mask,
                                        boolean _isDirectory,
                                        boolean _isNxDirectory)
Get the denying rights for a resource and its AGO rights.

Parameters:
_mask - part of this userID umask which describes the requirement for owner, or group or other
_isDirectory - true if the calling resource is a directory
_isNxDirectory - true if the calling resource is a Linux/Unix directory
Returns:
the denying rights set by the umask for 'A' or 'G' or 'O' rights. May be empty but not null.