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