|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.portal.jems.as.system.AbstractJBossService
org.jboss.portal.core.impl.model.portal.AbstractPortalObjectContainer
public abstract class AbstractPortalObjectContainer
| Nested Class Summary | |
|---|---|
class |
AbstractPortalObjectContainer.ContainerContext
|
| Field Summary |
|---|
| Fields inherited from class org.jboss.system.ServiceMBeanSupport |
|---|
log, server, SERVICE_CONTROLLER_SIG, serviceName |
| Fields inherited from interface org.jboss.system.ServiceMBean |
|---|
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
| Constructor Summary | |
|---|---|
protected |
AbstractPortalObjectContainer()
|
| Method Summary | ||
|---|---|---|
Context |
createContext(java.lang.String namespace)
|
|
PortalPermission |
createPermission(java.lang.String uri,
java.util.Collection actions)
|
|
PortalPermission |
createPermission(java.lang.String uri,
java.lang.String action)
|
|
PortalPermission |
createPermissionContainer(PortalPermissionCollection collection)
|
|
protected abstract ContextImpl |
createRoot(java.lang.String namespace)
|
|
AuthorizationDomain |
getAuthorizationDomain()
Get the authorization domain. |
|
DomainConfigurator |
getConfigurator()
The domain configurator. |
|
ContentProviderRegistry |
getContentProviderRegistry()
|
|
Context |
getContext()
Returns the default root object. |
|
Context |
getContext(java.lang.String namespace)
|
|
PortalObject |
getObject(PortalObjectId id)
Returns a portal object or null if it cannot be found. |
|
|
getObject(PortalObjectId id,
java.lang.Class<T> expectedType)
Returns the portal object of the specified type identified with the specified identified or null if
it cannot be found. |
|
protected abstract ObjectNode |
getObjectNode(PortalObjectId id)
Must be subclasses to provide the access to a node. |
|
PortalPermission |
getPermission(java.lang.String roleName,
java.lang.String uri)
Load a permission from the repository. |
|
PermissionFactory |
getPermissionFactory()
The permission repository. |
|
PermissionRepository |
getPermissionRepository()
The permission factory. |
|
java.util.Set |
getSecurityBindings(java.lang.String uri)
Return the set of constraints for the given uri. |
|
java.lang.String |
getType()
The domain type. |
|
void |
removeSecurityBindings(java.lang.String uri)
Remove the contstraints for the provided uri |
|
void |
setContentProviderRegistry(ContentProviderRegistry contentProviderRegistry)
|
|
void |
setSecurityBindings(java.lang.String uri,
java.util.Set securityBindings)
Add the provided constraints to this policy configuration |
|
| Methods inherited from class org.jboss.portal.jems.as.system.AbstractJBossService |
|---|
create, destroy, getState, getStateString, start, stop |
| Methods inherited from class org.jboss.system.ServiceMBeanSupport |
|---|
createService, destroyService, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, startService, stopService |
| Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
|---|
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractPortalObjectContainer()
| Method Detail |
|---|
public ContentProviderRegistry getContentProviderRegistry()
public void setContentProviderRegistry(ContentProviderRegistry contentProviderRegistry)
public Context getContext()
PortalObjectContainer
getContext in interface PortalObjectContainer
public PortalObject getObject(PortalObjectId id)
throws java.lang.IllegalArgumentException
PortalObjectContainer
getObject in interface PortalObjectContainerid - the portal object id
java.lang.IllegalArgumentException - if the id is null
public <T extends PortalObject> T getObject(PortalObjectId id,
java.lang.Class<T> expectedType)
throws java.lang.IllegalArgumentException
PortalObjectContainernull if
it cannot be found.
getObject in interface PortalObjectContainerT - a class extending PortalObjectid - the portal object identifierexpectedType - the expected type of the object to be retrieved
null if it cannot be found
java.lang.IllegalArgumentException - if the specified id or the specified class is nullpublic Context getContext(java.lang.String namespace)
getContext in interface PortalObjectContainer
public Context createContext(java.lang.String namespace)
throws DuplicatePortalObjectException
createContext in interface PortalObjectContainerDuplicatePortalObjectExceptionpublic AuthorizationDomain getAuthorizationDomain()
PortalObjectContainer
getAuthorizationDomain in interface PortalObjectContainer
protected abstract ContextImpl createRoot(java.lang.String namespace)
throws DuplicatePortalObjectException
DuplicatePortalObjectExceptionpublic java.lang.String getType()
AuthorizationDomain
getType in interface AuthorizationDomainpublic DomainConfigurator getConfigurator()
AuthorizationDomain
getConfigurator in interface AuthorizationDomainpublic PermissionRepository getPermissionRepository()
AuthorizationDomain
getPermissionRepository in interface AuthorizationDomainpublic PermissionFactory getPermissionFactory()
AuthorizationDomain
getPermissionFactory in interface AuthorizationDomain
public PortalPermission createPermissionContainer(PortalPermissionCollection collection)
throws PortalSecurityException
createPermissionContainer in interface PermissionFactoryPortalSecurityException
public PortalPermission createPermission(java.lang.String uri,
java.lang.String action)
throws PortalSecurityException
createPermission in interface PermissionFactoryPortalSecurityException
public PortalPermission createPermission(java.lang.String uri,
java.util.Collection actions)
throws PortalSecurityException
createPermission in interface PermissionFactoryPortalSecurityException
public PortalPermission getPermission(java.lang.String roleName,
java.lang.String uri)
throws PortalSecurityException
PermissionRepository
getPermission in interface PermissionRepositoryPortalSecurityException
public void removeSecurityBindings(java.lang.String uri)
throws SecurityConfigurationException
DomainConfigurator
removeSecurityBindings in interface DomainConfiguratoruri - the identifier of the secured resource
SecurityConfigurationException
public void setSecurityBindings(java.lang.String uri,
java.util.Set securityBindings)
throws SecurityConfigurationException
DomainConfigurator
setSecurityBindings in interface DomainConfiguratorSecurityConfigurationExceptionpublic java.util.Set getSecurityBindings(java.lang.String uri)
DomainConfigurator
getSecurityBindings in interface DomainConfiguratorprotected abstract ObjectNode getObjectNode(PortalObjectId id)
id - the portal object path
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||