org.nuiton.topia.security.entities.authorization
Class TopiaAuthorizationImpl

java.lang.Object
  extended by org.nuiton.topia.persistence.TopiaEntityAbstract
      extended by org.nuiton.topia.security.entities.authorization.TopiaAuthorizationAbstract
          extended by org.nuiton.topia.security.entities.authorization.TopiaAuthorizationImpl
All Implemented Interfaces:
Serializable, TopiaEntity, TopiaAuthorization, NoSecurityLoad
Direct Known Subclasses:
TopiaAssociationAuthorizationAbstract, TopiaEntityAuthorizationAbstract

public abstract class TopiaAuthorizationImpl
extends TopiaAuthorizationAbstract
implements TopiaAuthorization

Classe permettant la comparaison des autorisations.

Author:
ruchaud
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.nuiton.topia.persistence.TopiaEntityAbstract
readListeners, readVetoables, topiaContext, topiaCreateDate, topiaId, topiaVersion, writeListeners, writeVetoables
 
Fields inherited from interface org.nuiton.topia.persistence.TopiaEntity
TOPIA_CREATE_DATE, TOPIA_ID, TOPIA_VERSION
 
Constructor Summary
TopiaAuthorizationImpl()
           
 
Method Summary
 boolean implies(TopiaAuthorization other)
          Compare deux autorisations entres elles.
 boolean impliesActions(int thisActions, int thatActions)
          Compare deux actions entre elles.
 boolean impliesExpression(String thisExpression, String thatExpression)
          Comparare deux identifiants entres eux.
 boolean impliesPrincipals(Set thisPrincipals, Set thatPrincipals)
          Compare deux principals entre eux.
 
Methods inherited from class org.nuiton.topia.security.entities.authorization.TopiaAuthorizationAbstract
accept, accept, delete, getComposite, toString, update
 
Methods inherited from class org.nuiton.topia.persistence.TopiaEntityAbstract
addPropertyChangeListener, addPropertyChangeListener, addPropertyListener, addPropertyListener, addVetoableChangeListener, addVetoableChangeListener, addVetoableListener, addVetoableListener, equals, fireOnPostRead, fireOnPostRead, fireOnPostWrite, fireOnPostWrite, fireOnPreRead, fireOnPreWrite, getAggregate, getTopiaContext, getTopiaCreateDate, getTopiaId, getTopiaVersion, hashCode, postCreate, removePropertyChangeListener, removePropertyChangeListener, removePropertyListener, removePropertyListener, removeVetoableChangeListener, removeVetoableChangeListener, removeVetoableListener, removeVetoableListener, setTopiaContext, setTopiaCreateDate, setTopiaId, setTopiaVersion
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.nuiton.topia.security.entities.authorization.TopiaAuthorization
getActions, getExpression, getPrincipals
 
Methods inherited from interface org.nuiton.topia.persistence.TopiaEntity
accept, addPropertyChangeListener, addPropertyChangeListener, addPropertyListener, addPropertyListener, addVetoableChangeListener, addVetoableChangeListener, addVetoableListener, addVetoableListener, delete, getAggregate, getComposite, getTopiaContext, getTopiaCreateDate, getTopiaId, getTopiaVersion, postCreate, removePropertyChangeListener, removePropertyChangeListener, removePropertyListener, removePropertyListener, removeVetoableChangeListener, removeVetoableChangeListener, removeVetoableListener, removeVetoableListener, setTopiaCreateDate, setTopiaId, setTopiaVersion, update
 

Constructor Detail

TopiaAuthorizationImpl

public TopiaAuthorizationImpl()
Method Detail

implies

public boolean implies(TopiaAuthorization other)
Compare deux autorisations entres elles.

Specified by:
implies in interface TopiaAuthorization
Parameters:
other - une autre autorisation
Returns:
vrai si l'autorisation implique l'autre

impliesExpression

public boolean impliesExpression(String thisExpression,
                                 String thatExpression)
Comparare deux identifiants entres eux. thisId => thatId = ?

Specified by:
impliesExpression in interface TopiaAuthorization
Parameters:
thisExpression - un identifiant
thatExpression - un autre identifiant
Returns:
vrai si thisId implique thatId

impliesActions

public boolean impliesActions(int thisActions,
                              int thatActions)
Compare deux actions entre elles. thisActions => thatActions = ?

Specified by:
impliesActions in interface TopiaAuthorization
Parameters:
thisActions - une action
thatActions - une autre action
Returns:
vrai si thisActions implique thatActions

impliesPrincipals

public boolean impliesPrincipals(Set thisPrincipals,
                                 Set thatPrincipals)
Compare deux principals entre eux. thisPrincipals => thatPrincipals = ?

Specified by:
impliesPrincipals in interface TopiaAuthorization
Parameters:
thisPrincipals - un principal
thatPrincipals - un autre principal
Returns:
vrai si thisPrincipals implique thatPrincipals


Copyright © 2004-2010 CodeLutin. All Rights Reserved.