|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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(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)
|
org.apache.jetspeed.security.om.InternalRolePrincipal |
getInternalRolePrincipal(String roleFullPathName)
Returns the InternalRolePrincipal from the role full path name. |
Iterator |
getInternalRolePrincipals(String 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 |
---|
checkDaoConfig, 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(String repositoryPath)
repositoryPath
- Method Detail |
---|
public boolean isKnownUser(String username)
Returns if a Internal UserPrincipal is defined for the user name.
isKnownUser
in interface org.apache.jetspeed.security.spi.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 org.apache.jetspeed.security.spi.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 org.apache.jetspeed.security.spi.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 org.apache.jetspeed.security.spi.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 org.apache.jetspeed.security.spi.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 org.apache.jetspeed.security.spi.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 org.apache.jetspeed.security.spi.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 org.apache.jetspeed.security.spi.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 org.apache.jetspeed.security.spi.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 org.apache.jetspeed.security.spi.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 org.apache.jetspeed.security.spi.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 org.apache.jetspeed.security.spi.SecurityAccess
internalGroup
- The InternalGroupPrincipal
.
org.apache.jetspeed.security.SecurityException
- Throws a SecurityException
.public Iterator getInternalRolePrincipals(String filter)
getInternalRolePrincipals
in interface org.apache.jetspeed.security.spi.SecurityAccess
public Iterator getInternalGroupPrincipals(String filter)
getInternalGroupPrincipals
in interface org.apache.jetspeed.security.spi.SecurityAccess
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |