|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectARoad0.gBase.BaseUtilityImpl
ARoad0.AcsAddon.Accbee.Ubuntu.gBase.BaseUtilityUbuntuImpl
public class BaseUtilityUbuntuImpl
This class is a utility class for the Ubuntu ACS, with only static methods. It provides synchronized methods to copy, get a BaseObject or a BeanInfo, and mainly handle rights and right operations. The calls to this class are reserved to the classes of this package, even if its methods are public since they override the super methods. Caution: this class is not defined in ACSFactoryUtilityImpl.M_GENERIC_ACS_VOCABULARY, then it is not possible to get it outside this package through ARoad0.gBaseInterface.ACSRun.getM_AcsVocabulary(). This class has no subclass in this package.
Field Summary | |
---|---|
private static java.util.Set<StringRight> |
l_denyRightsForLinuxStickybit__
|
private static java.util.Set<StringRight> |
l_rightsForLinuxStickybit__
|
Fields inherited from class ARoad0.gBase.BaseUtilityImpl |
---|
INITIAL_CAPACITY, instance__ |
Constructor Summary | |
---|---|
BaseUtilityUbuntuImpl()
Public constructor |
Method Summary | |
---|---|
protected static java.util.Set<StringRight> |
getChildRightsSetFromParentAGORights(StringRight[] _l_parentRights,
ImmutableACS _acs)
Gets the child inherited rights from the AGO directory rights, for the children. |
static java.util.Set<StringRight> |
getDeleteRenameRights(ImmutableACS _acs)
This method allows to implement the 'sticky bit' management for Directories. |
static java.util.Set<StringRight> |
getDenyDeleteRenameRights(ImmutableACS _acs)
This method allows to implement the 'sticky bit' management for Directories. |
static BaseUtilityImpl |
getInstance()
Only method to obtain the unique instance of BaseUtilityUbuntuImpl. |
static java.util.Set<StringRight> |
subtractUMask(java.util.Set<StringRight> _l_Rights,
ImmutableACS _acs,
ImmutableResource _res,
java.lang.String _maskType)
This method allows to implement the 'umask' management for Resources. |
static boolean |
withAcrossToDirectoryAGRights(StringRight[] _l_rights)
Analyze the directory rights to say if the AGO inherited rights which are derived from the directory rights allow some access to the child. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static java.util.Set<StringRight> l_rightsForLinuxStickybit__
private static java.util.Set<StringRight> l_denyRightsForLinuxStickybit__
Constructor Detail |
---|
public BaseUtilityUbuntuImpl()
Method Detail |
---|
public static BaseUtilityImpl getInstance()
public static boolean withAcrossToDirectoryAGRights(StringRight[] _l_rights)
_l_rights
- rights of a Directory
public static java.util.Set<StringRight> getDeleteRenameRights(ImmutableACS _acs)
_acs
- to process. May be null.
public static java.util.Set<StringRight> getDenyDeleteRenameRights(ImmutableACS _acs)
_acs
- to process. May be null.
public static java.util.Set<StringRight> subtractUMask(java.util.Set<StringRight> _l_Rights, ImmutableACS _acs, ImmutableResource _res, java.lang.String _maskType)
_l_Rights
- positive or negative rights to process. Not null and no null item.
May be empty._acs
- uses all the rights in the two right sets. May be null._res
- the Resource on which the returned rights are applied. Never null._maskType
- is for AGO rights 'owner', 'group' or 'other'. Never null.
protected static java.util.Set<StringRight> getChildRightsSetFromParentAGORights(StringRight[] _l_parentRights, ImmutableACS _acs)
_l_parentRights
- acsrights or metarights of a directory. Never null._acs
- of the Resource calling this method. Never null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |