public class EntityTargetProviderImpl extends java.lang.Object implements IPermissionTargetProvider, java.io.Serializable
TODO: This implementation currently has a number of problems. The code uses the EntityEnum class and is hardcoded to only recognize four types of entities: uPortal person groups, person entities, portlet categories, and portlet entities. This code also may perform poorly for large portal installations for searches that return many results.
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
log |
| Constructor and Description |
|---|
EntityTargetProviderImpl(java.util.Set<java.lang.String> targetTypeNames)
Construct a new instance of targets matching the set of allowed target entity types.
|
| Modifier and Type | Method and Description |
|---|---|
org.apereo.portal.permission.target.IPermissionTarget |
getTarget(java.lang.String key)
The
key parameter should specify a unique entity across all 4 supported
types: people, groups, portlets, and categories. |
java.util.Collection<org.apereo.portal.permission.target.IPermissionTarget> |
searchTargets(java.lang.String term)
Search this provider for a particular target using a single string search term.
|
void |
setGroupListHelper(org.apereo.portal.layout.dlm.remoting.IGroupListHelper helper) |
public EntityTargetProviderImpl(java.util.Set<java.lang.String> targetTypeNames)
targetTypeNames - @Autowired(required=true) public void setGroupListHelper(org.apereo.portal.layout.dlm.remoting.IGroupListHelper helper)
public org.apereo.portal.permission.target.IPermissionTarget getTarget(java.lang.String key)
key parameter should specify a unique entity across all 4 supported
types: people, groups, portlets, and categories.
Concrete examples of working keys:
getTarget in interface IPermissionTargetProviderpublic java.util.Collection<org.apereo.portal.permission.target.IPermissionTarget> searchTargets(java.lang.String term)
IPermissionTargetProvidersearchTargets in interface IPermissionTargetProviderterm - search term