|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.dao.support.DaoSupport
org.springframework.orm.ojb.support.PersistenceBrokerDaoSupport
org.apache.jetspeed.components.dao.InitablePersistenceBrokerDaoSupport
org.apache.jetspeed.security.spi.impl.SecurityAccessImpl
public class SecurityAccessImpl
Provides a utility class for common SPI queries.
| Field Summary |
|---|
| Fields inherited from class org.apache.jetspeed.components.dao.InitablePersistenceBrokerDaoSupport |
|---|
repositoryPath |
| Fields inherited from class org.springframework.dao.support.DaoSupport |
|---|
logger |
| Constructor Summary | |
|---|---|
SecurityAccessImpl(java.lang.String repositoryPath)
|
|
| Method Summary | |
|---|---|
InternalGroupPrincipal |
getInternalGroupPrincipal(java.lang.String groupFullPathName)
Returns the InternalGroupPrincipalfrom the group full path name. |
java.util.Iterator |
getInternalGroupPrincipals(java.lang.String filter)
Returns a InternalGroupPrincipal collection of Group given the filter. |
InternalRolePrincipal |
getInternalRolePrincipal(java.lang.String roleFullPathName)
Returns the InternalRolePrincipalfrom the role full path name. |
java.util.Iterator |
getInternalRolePrincipals(java.lang.String filter)
Returns a InternalRolePrincipal collection given the filter. |
InternalUserPrincipal |
getInternalUserPrincipal(java.lang.String username)
Returns the InternalUserPrincipal from the user name. |
InternalUserPrincipal |
getInternalUserPrincipal(java.lang.String username,
boolean isMappingOnly)
Returns the InternalUserPrincipal from the user name. |
java.util.Iterator |
getInternalUserPrincipals(java.lang.String filter)
Returns a collection of Principalgiven the filter. |
boolean |
isKnownUser(java.lang.String username)
Returns if a Internal UserPrincipal is defined for the user name. |
void |
removeInternalGroupPrincipal(InternalGroupPrincipal internalGroup)
Remove the given InternalGroupPrincipal. |
void |
removeInternalRolePrincipal(InternalRolePrincipal internalRole)
Remove the given InternalRolePrincipal. |
void |
removeInternalUserPrincipal(InternalUserPrincipal internalUser)
Remove the given InternalUserPrincipal. |
void |
setInternalGroupPrincipal(InternalGroupPrincipal internalGroup,
boolean isMappingOnly)
Sets the given InternalGroupPrincipal. |
void |
setInternalRolePrincipal(InternalRolePrincipal internalRole,
boolean isMappingOnly)
Sets the given InternalRolePrincipal. |
void |
setInternalUserPrincipal(InternalUserPrincipal internalUser,
boolean isMappingOnly)
Sets the given InternalUserPrincipal. |
| Methods inherited from class org.apache.jetspeed.components.dao.InitablePersistenceBrokerDaoSupport |
|---|
init |
| Methods inherited from class org.springframework.orm.ojb.support.PersistenceBrokerDaoSupport |
|---|
checkDaoConfig, closePersistenceBrokerIfNecessary, convertOjbAccessException, createPersistenceBrokerTemplate, getJcdAlias, getPersistenceBroker, getPersistenceBrokerTemplate, releasePersistenceBroker, setJcdAlias, setPersistenceBrokerTemplate |
| Methods inherited from class org.springframework.dao.support.DaoSupport |
|---|
afterPropertiesSet, initDao |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SecurityAccessImpl(java.lang.String repositoryPath)
repositoryPath - | Method Detail |
|---|
public boolean isKnownUser(java.lang.String username)
Returns if a Internal UserPrincipal is defined for the user name.
isKnownUser in interface SecurityAccessusername - The user name.
public InternalUserPrincipal getInternalUserPrincipal(java.lang.String username)
Returns the InternalUserPrincipal from the user name.
getInternalUserPrincipal in interface SecurityAccessusername - The user name.
InternalUserPrincipal.
public InternalUserPrincipal getInternalUserPrincipal(java.lang.String username,
boolean isMappingOnly)
Returns the InternalUserPrincipal from the user name.
getInternalUserPrincipal in interface SecurityAccessusername - The user name.isMappingOnly - Whether a principal's purpose is for security mappping only.
InternalUserPrincipal.public java.util.Iterator getInternalUserPrincipals(java.lang.String filter)
Returns a collection of Principalgiven the filter.
getInternalUserPrincipals in interface SecurityAccessfilter - The filter.
InternalUserPrincipal.
public void setInternalUserPrincipal(InternalUserPrincipal internalUser,
boolean isMappingOnly)
throws SecurityException
Sets the given InternalUserPrincipal.
setInternalUserPrincipal in interface SecurityAccessinternalUser - The InternalUserPrincipal.isMappingOnly - Whether a principal's purpose is for security mappping only.
SecurityException - Throws a SecurityException.
public void removeInternalUserPrincipal(InternalUserPrincipal internalUser)
throws SecurityException
Remove the given InternalUserPrincipal.
removeInternalUserPrincipal in interface SecurityAccessinternalUser - The InternalUserPrincipal.
SecurityException - Throws a SecurityException.public InternalRolePrincipal getInternalRolePrincipal(java.lang.String roleFullPathName)
Returns the InternalRolePrincipalfrom the role full path name.
getInternalRolePrincipal in interface SecurityAccessroleFullPathName - The role full path name.
InternalRolePrincipal.
public void setInternalRolePrincipal(InternalRolePrincipal internalRole,
boolean isMappingOnly)
throws SecurityException
Sets the given InternalRolePrincipal.
setInternalRolePrincipal in interface SecurityAccessinternalRole - The InternalRolePrincipal.isMappingOnly - Whether a principal's purpose is for security mappping only.
SecurityException - Throws a SecurityException.
public void removeInternalRolePrincipal(InternalRolePrincipal internalRole)
throws SecurityException
Remove the given InternalRolePrincipal.
removeInternalRolePrincipal in interface SecurityAccessinternalRole - The InternalRolePrincipal.
SecurityException - Throws a SecurityException.public InternalGroupPrincipal getInternalGroupPrincipal(java.lang.String groupFullPathName)
Returns the InternalGroupPrincipalfrom the group full path name.
getInternalGroupPrincipal in interface SecurityAccessgroupFullPathName - The group full path name.
InternalGroupPrincipal.
public void setInternalGroupPrincipal(InternalGroupPrincipal internalGroup,
boolean isMappingOnly)
throws SecurityException
Sets the given InternalGroupPrincipal.
setInternalGroupPrincipal in interface SecurityAccessinternalGroup - The InternalGroupPrincipal.isMappingOnly - Whether a principal's purpose is for security mappping only.
SecurityException - Throws a SecurityException.
public void removeInternalGroupPrincipal(InternalGroupPrincipal internalGroup)
throws SecurityException
Remove the given InternalGroupPrincipal.
removeInternalGroupPrincipal in interface SecurityAccessinternalGroup - The InternalGroupPrincipal.
SecurityException - Throws a SecurityException.public java.util.Iterator getInternalRolePrincipals(java.lang.String filter)
SecurityAccess
Returns a InternalRolePrincipal collection given the filter.
getInternalRolePrincipals in interface SecurityAccessfilter - The filter.
InternalRolePrincipal.public java.util.Iterator getInternalGroupPrincipals(java.lang.String filter)
SecurityAccess
Returns a InternalGroupPrincipal collection of Group given the filter.
getInternalGroupPrincipals in interface SecurityAccessfilter - The filter.
InternalGroupPrincipal.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||