|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectARoad0.gBase.ACSFactoryImpl
ARoad0.AcsAddon.Accbee.Ubuntu.gBase.ACSFactoryUbuntuImpl
public class ACSFactoryUbuntuImpl
This class is responsible for creating a Linux Ubuntu as an access control system (ACS). Almost all the work is done by the super class, and this class has just to use the right methods of the superclass. Called by gDMak.ActionNewACSyst and Ubuntu.gWork.AcsFactoryUbuntu. This class uses for its GUI two BeanInfo, Ubuntu.gBaseBeanInfo.ACSFactoryImplUbuntuBeanInfo and ARoad0.gBaseBeanInfo.ACSPreFactoryImplBeanInfo. ACSPreFactoryImplBeanInfo ensures the creation of the ACSFactory instance and the ACS rights list. It is a javabean without specific bound properties.
ACSUbuntuImplBeanInfo
Field Summary | |
---|---|
private static int |
PRIME
|
Constructor Summary | |
---|---|
ACSFactoryUbuntuImpl()
Default constructor. |
|
ACSFactoryUbuntuImpl(ImmutableName _iSname,
ImmutableName _name,
java.lang.String _ACStype,
ImmutableName _parentName)
Called by Ubuntu.gWork.AcsFactoryUbuntu. |
Method Summary | |
---|---|
ACSImpl |
createACS()
Creates the ACSUbuntuImpl with its structural arguments. |
void |
initializeConstraintsBeforeCreation()
Initializes the ACS constraints maps before the call to ACSUbuntuImpl.valueOf(). |
Methods inherited from class java.lang.Object |
---|
clone, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final int PRIME
Constructor Detail |
---|
public ACSFactoryUbuntuImpl()
public ACSFactoryUbuntuImpl(ImmutableName _iSname, ImmutableName _name, java.lang.String _ACStype, ImmutableName _parentName) throws BaseError
_iSname
- the name of the IS containing this new ACS. May be null, and
ISFactoryUtilityImpl.DEFAULT_IS_NAME is then set as IS name and it is created
BaseManagerImpl._name
- the name of the new ACS. Never null._ACStype
- the ACS type. Never null._parentName
- the parent of this new ACS. No use if _iSname is null.
Otherwise, it has to contain the IS name.
BaseError
- if _type is null, _parentName does not start with _iSname.Method Detail |
---|
public void initializeConstraintsBeforeCreation()
- AGO inheritance 1: new child/node inherits denying mask rights from the account
- AGO right inheritance 1: child/node inherits rights from the direct and indirect parents
- AGO right inheritance 2: at creation, child may inherit some current rights from its direct parent node
- AGO right inheritance 2: at creation, node may inherit some current rights from its direct parent node
- resource 1: new child/node inherits the current G, if activated, and G is not the account primary group,
- AGO right 3: at administration, only node owner has the deleting and renaming rights, if activated
The last rule is added as key in the ACS structure. This method adds to the standard rights the key 'Resource.OtherRights' for the ResourceUbuntu property, and with the values used for the Group standard rights. This AcsAddon method may also add to ACSImpl.m_Structure_ some new keys. An ACSFactoryUbuntuImpl for a new ACS derived from an Ubuntu ACS has already all these values. Called by createACS(). Overrides and calls first the super method.
initializeConstraintsBeforeCreation
in class ACSFactoryImpl
public ACSImpl createACS() throws BaseError
createACS
in class ACSFactoryImpl
BaseError
- if the integrity rules are not followed (with the list of
all the user errors, including up to 2500 words when all the rules
are unmatched), if the ACS is already known by BaseManagerImpl.ACSFactoryImpl.createACS()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |