|
Oracle Fusion Middleware Java API Reference for Oracle WebCenter 11g Release 1 (11.1.1.4.0) E15995-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.wcps.property.ServiceFactory
public abstract class ServiceFactory
A factory class to manage namespaces (INamespace
) and property services (IPropertyService
).
Constructor Summary | |
---|---|
ServiceFactory() |
Method Summary | |
---|---|
static INamespace |
createNamespace(IContext context, INamespace namespace) Creates the given namespace . |
static INamespace |
createNamespace(IContext context, INamespaceName namespaceName) Creates an empty namespace with the given name namespaceName . |
static IPagedList<INamespace> |
filter(IContext context, NamespaceFilterContext fc) Searches for the namespaces based on the given namespace filter context fc . |
static INamespace |
getNamespace(IContext context, INamespaceName namespaceName) Retrieves the namespace with the given name namespaceName . |
static INamespace |
getNamespace(IContext context, java.lang.String namespaceIdStr) Retrieves the namespace with the given name namespaceName . |
static IPagedList<INamespace> |
getNamespaces(IContext context, PaginationContext paginationContext) Retrieves a paged list of namespaces found in the system. |
static IPropertyService |
getPropertyService(IContext context, INamespaceName namespaceName) Returns the namespace scoped property service to manager propertydefinitions, propertysetdefinitions and propertysets. |
static IPropertyService |
getPropertyService(IContext context, java.lang.String namespaceId) Returns the namespace scoped property service to manage the propertydefinitions, propertysetdefinitions and propertysets. |
static void |
removeAllNamespaces(IContext context) Removes all the namespaces in the system. |
static INamespace |
removeNamespace(IContext context, INamespace namespace) Removes the given namespace . |
static INamespace |
removeNamespace(IContext context, INamespaceName namespaceName) Removes the namespace associated with the given namespaceName . |
static INamespace |
updateNamespace(IContext context, INamespace namespace) Updates the given namespace in the system. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServiceFactory()
Method Detail |
---|
public static INamespace getNamespace(IContext context, java.lang.String namespaceIdStr)
namespaceName
.context
- a property service context. If this API is accessed remotely this context must have remote properties.namespaceIdStr
- The namespace name.public static 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
- The namespace name.public static 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 page size and starting index.public static 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.public static 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
exists.public static 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 with the given name exists.public static INamespace updateNamespace(IContext context, INamespace namespace) throws ObjectOutOfSyncException
namespace
in the system. If the optimistic concurrency feature is enabled IContext.isOptimisticConcurrencyEnabled()
, this method updates namespace optimistically. The given namespace is updated only if its updatedOn time matched 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 updatedOn time of the given namespace
doesn't match with the namespace in the system.public static 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 referring this namespace. Remove all the propertysetdefinitions, propertydefinitions and propertysets by calling removeAll* methods in IPropertyService
and then call this to avoid getting this exception.public static 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 is 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 referring 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 optimistic concurrency is enabled and updatedOn time of the given namespace
doesn't match with the current version in the system.PropertyServiceContext.isOptimisticConcurrencyEnabled()
public static 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, there are propertysets, propertydefinitions and propertysetdefinitions referring it. Remove all the propertysetdefinitions, propertydefinitions and propertysets by calling removeAll* methods in IPropertyService
and then call this to avoid getting this exception.public static IPropertyService getPropertyService(IContext context, java.lang.String namespaceId)
context
- a property service context. If this API is accessed remotely this context must have remote properties.namespaceId
- a namespace name.public static IPropertyService getPropertyService(IContext context, INamespaceName 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 11g Release 1 (11.1.1.4.0) E15995-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |