|
Oracle Fusion Middleware Java API Reference for Oracle WebCenter Portal 11g Release 1 (11.1.1.6.0) E15995-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPropertyServiceFactory
The factory interface to manage INamespace
and IPropertyService
instances. Users shouldn't use this directly, they should use the ServiceFactory
class instead. The implementation instances are created using the jar service loading mechanism.
Method Summary | |
---|---|
INamespace |
createNamespace(IContext context, INamespace namespace) Creates the given namespace . |
INamespace |
createNamespace(IContext context, INamespaceName namespaceName) Creates a namespace with the given name namespaceName . |
IPagedList<INamespace> |
filter(IContext context, NamespaceFilterContext fc) Searches for the namespaces based on the given namespace filter context fc . |
INamespace |
getNamespace(IContext context, INamespaceName namespaceName) Retrieves the namespace identified by the given namespaceName . |
IPagedList<INamespace> |
getNamespaces(IContext context, PaginationContext paginationContext) Retrieves a paged list of the namespaces found in the system. |
IPropertyService |
getPropertyService(IContext context, INamespaceName namespaceName) Returns the namespace scoped property service to manage the propertydefinitions, propertysetdefinitions and propertysets within the scope of the namespace identified by the given namespaceName . |
void |
removeAllNamespaces(IContext context) Removes all the namespaces in the system. |
INamespace |
removeNamespace(IContext context, INamespace namespace) Removes the given namespace . |
INamespace |
removeNamespace(IContext context, INamespaceName namespaceName) Removes the namespace identified by the given namespaceName . |
INamespace |
updateNamespace(IContext context, INamespace namespace) Updates the given namespace. |
Method Detail |
---|
INamespace createNamespace(IContext context, INamespaceName namespaceName) throws AlreadyExistsException
namespaceName
.context
- A property service context. If this API is accessed remotely this context must have remote properties.namespaceName
- A namespace name.AlreadyExistsException
- if the namespace with the given name namespaceName
already exists in the system.INamespace createNamespace(IContext context, INamespace namespace) throws AlreadyExistsException
namespace
.context
- A property service context. If this API is accessed remotely this context must have remote properties.namespace
- A namespace instance used as a template.AlreadyExistsException
- if the namespace already exists in the system.INamespace removeNamespace(IContext context, INamespaceName namespaceName) throws ObjectInUseException
namespaceName
.context
- A property service context. If this API is accessed remotely this context must have remote properties.namespaceName
- A namespace name.ObjectInUseException
- if there are propertysets, propertydefinitions and propertysetdefinitions associated with this namespace. Remove all the propertysetdefinitions, propertydefinitions and propertysets by calling removeAll* methods in IPropertyService
and then call this to avoid getting this exception.INamespace removeNamespace(IContext context, INamespace namespace) throws ObjectInUseException, ObjectOutOfSyncException
namespace
. If the optimistic concurrency feature is enabled, this method removes the namespace optimistically, it is removed only if its updatedOn time matches with the updatedOn time of the namespace in the system.context
- A property service context. If this API is accessed remotely this context must have remote properties.namespace
- A namespace that was returned by this system.ObjectInUseException
- if there are propertysets, propertydefinitions and propertysetdefinitions associated with this namespace. Remove all the propertysetdefinitions, propertydefinitions and propertysets by calling removeAll* methods in IPropertyService
and then call this to avoid getting this exception.ObjectOutOfSyncException
- if the optimistic concurrency feature is enabled and updatedOn time of the given namespace
doesn't match with the current version in the system.PropertyServiceContext.isOptimisticConcurrencyEnabled()
INamespace updateNamespace(IContext context, INamespace namespace) throws NotFoundException, ObjectOutOfSyncException
IContext.isOptimisticConcurrencyEnabled()
, this method updates the namespace optimistically. The given namespace is updated only if its updatedOn time matches with the updatedOn time of the namespace in the system.context
- A property service context. If this API is accessed remotely this context must have remote properties.namespace
- A namespace that was returned by this system.NotFoundException
- if there is no namespace in the system.ObjectOutOfSyncException
- if the optimistic concurrency feature is enabled and the updatedOn time of the given namespace
doesn't match with the current version in the system.INamespace getNamespace(IContext context, INamespaceName namespaceName)
namespaceName
.context
- A property service context. If this API is accessed remotely this context must have remote properties.namespaceName
- A namespace name.IPagedList<INamespace> getNamespaces(IContext context, PaginationContext paginationContext)
paginationContext
.context
- A property service context. If this API is accessed remotely this context must have remote properties.paginationContext
- containing the page size and the starting index.IPagedList<INamespace> filter(IContext context, NamespaceFilterContext fc)
fc
.context
- A property service context. If this API is accessed remotely this context must have remote properties.fc
- A filter context that contains search expression and pagination context.void removeAllNamespaces(IContext context) throws ObjectInUseException
context
- A property service context. If this API is accessed remotely this context must have remote properties.ObjectInUseException
- if there is at least one namespace that is associated with at least one of the propertysets, or the propertydefinitions or the propertysetdefinitions. Remove all the propertysetdefinitions, propertydefinitions and propertysets by calling removeAll* methods in IPropertyService
and then call this to avoid getting this exception.IPropertyService getPropertyService(IContext context, INamespaceName namespaceName)
namespaceName
.context
- A property service context. If this API is accessed remotely this context must have remote properties.namespaceName
- a namespace name.
|
Oracle Fusion Middleware Java API Reference for Oracle WebCenter Portal 11g Release 1 (11.1.1.6.0) E15995-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |