|
||||||||||
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 InternalGroupPrincipal from 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 InternalRolePrincipal from 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 Principal given 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 SecurityAccess
username
- The user name.
public InternalUserPrincipal getInternalUserPrincipal(java.lang.String username)
Returns the InternalUserPrincipal
from the user name.
getInternalUserPrincipal
in interface SecurityAccess
username
- The user name.
InternalUserPrincipal
.public InternalUserPrincipal getInternalUserPrincipal(java.lang.String username, boolean isMappingOnly)
Returns the InternalUserPrincipal
from the user name.
getInternalUserPrincipal
in interface SecurityAccess
username
- 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 Principal
given the filter.
getInternalUserPrincipals
in interface SecurityAccess
filter
- The filter.
InternalUserPrincipal
.public void setInternalUserPrincipal(InternalUserPrincipal internalUser, boolean isMappingOnly) throws SecurityException
Sets the given InternalUserPrincipal
.
setInternalUserPrincipal
in interface SecurityAccess
internalUser
- 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 SecurityAccess
internalUser
- The InternalUserPrincipal
.
SecurityException
- Throws a SecurityException
.public InternalRolePrincipal getInternalRolePrincipal(java.lang.String roleFullPathName)
Returns the InternalRolePrincipal
from the role full path name.
getInternalRolePrincipal
in interface SecurityAccess
roleFullPathName
- The role full path name.
InternalRolePrincipal
.public void setInternalRolePrincipal(InternalRolePrincipal internalRole, boolean isMappingOnly) throws SecurityException
Sets the given InternalRolePrincipal
.
setInternalRolePrincipal
in interface SecurityAccess
internalRole
- 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 SecurityAccess
internalRole
- The InternalRolePrincipal
.
SecurityException
- Throws a SecurityException
.public InternalGroupPrincipal getInternalGroupPrincipal(java.lang.String groupFullPathName)
Returns the InternalGroupPrincipal
from the group full path name.
getInternalGroupPrincipal
in interface SecurityAccess
groupFullPathName
- The group full path name.
InternalGroupPrincipal
.public void setInternalGroupPrincipal(InternalGroupPrincipal internalGroup, boolean isMappingOnly) throws SecurityException
Sets the given InternalGroupPrincipal
.
setInternalGroupPrincipal
in interface SecurityAccess
internalGroup
- 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 SecurityAccess
internalGroup
- 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 SecurityAccess
filter
- 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 SecurityAccess
filter
- The filter.
InternalGroupPrincipal
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |