|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.services.StandardManager
wt.transfer.StandardTransferService
Provides the standard implementation of server-side functionality as defined by the TransferService interface. This class is the one intended to be extended to enhance functionality.
As defined by the standard transfer service's access control rules, all objects being either exported or imported must be checked to ensure that the session's principal performing the transfer has applicable permissions. For exports the session principal must be able to read the objects. For imports the session principal must be able to create and/or modify the objects.
Additionally, when object are being imported if they are not currently assigned as being owned and foldered, then the transfer service is responsible for ensuring that these objects will be correctly persisted.
If the standard implementation is not desired then a custom implementation can extend from TransferService alongside the standard implementation, and be specified as a property to be used as the default transfer service.
Use the newStandardTransferService
static factory method(s),
not the StandardTransferService
constructor, to construct
instances of this class. Instances must be constructed using the static
factory(s), in order to ensure proper initialization of the instance.
Supported API: false
Extendable: false
StandardManager
,
Serialized FormField Summary | |
private static String |
CLASSNAME
|
private static String |
RESOURCE
|
private static TransferService |
service
|
Fields inherited from class wt.services.StandardManager |
|
Fields inherited from interface wt.services.Manager |
MANAGER_SERVICE, STARTUP_AUTOMATIC, STARTUP_MANUAL, STATUS_EMERGENCY_SHUTDOWN, STATUS_EMERGENCY_SHUTTING_DOWN, STATUS_SHUTDOWN, STATUS_SHUTDOWN_ERRORS, STATUS_SHUTDOWN_FAILURE, STATUS_SHUTTING_DOWN, STATUS_STARTED, STATUS_STARTED_ERRORS, STATUS_STARTING_UP, STATUS_STARTUP_FAILURE |
Constructor Summary | |
StandardTransferService()
|
Method Summary | |
private void |
expandNode(ClassInfo nodeinfo,
Hashtable pihash)
|
void |
exportObjects(ExportSpec spec)
Supported API: false |
void |
exportObjects(ExportSpec spec,
Persistable objectBasis)
Supported API: false |
void |
exportObjects(ExportSpec spec,
Persistable objectBasis,
ConfigSpec configBasis)
Supported API: false |
void |
exportObjects(ExportSpec spec,
TransferFilter[] filters)
Supported API: false |
void |
exportObjects(ExportSpec spec,
TransferFilter template,
ConfigSpec configBasis)
Supported API: false |
void |
exportObjects(ExportSpec spec,
TransferFilter template,
Persistable objectBasis)
Supported API: false |
void |
exportObjects(ExportSpec spec,
TransferFilter template,
Persistable objectBasis,
ConfigSpec configBasis)
Supported API: false |
Hashtable |
getAllDescendentsOf(Class target)
Supported API: false |
Hashtable |
getAllDescendentsOf(String classname)
Supported API: false |
String |
getConceptualClassname()
Returns the conceptual (modeled) name for the class. |
Vector |
getDirectDescendentsOf(Class target)
Supported API: false |
Vector |
getDirectDescendentsOf(String classname)
Supported API: false |
static TransferService |
getService()
|
protected boolean |
hasAccess(String typename,
String permission)
Supported API: false |
void |
importObjects(ImportSpec spec)
Supported API: false |
void |
importObjects(ImportSpec spec,
TransferFilter[] filters)
Supported API: false |
static StandardTransferService |
newStandardTransferService()
Default factory for the class. |
protected void |
performStartupProcess()
Overrides the startup process specific to the transfer service to provide custom startup for event subscription. |
void |
registerEvents(ManagerService manager)
Overrides the registration of all applicable transfer service events with the service manager. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private static TransferService service
Constructor Detail |
public StandardTransferService()
Method Detail |
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
getConceptualClassname
in class StandardManager
public void registerEvents(ManagerService manager)
registerEvents
in interface Manager
registerEvents
in class StandardManager
manager
- protected void performStartupProcess() throws ManagerException
performStartupProcess
in class StandardManager
ManagerException
protected boolean hasAccess(String typename, String permission) throws WTException
typename
- permission
-
WTException
public static StandardTransferService newStandardTransferService() throws WTException
WTException
public void exportObjects(ExportSpec spec) throws WTException, TransferException, WTPropertyVetoException
exportObjects
in interface TransferService
spec
-
WTException
TransferException
WTPropertyVetoException
public void exportObjects(ExportSpec spec, Persistable objectBasis) throws WTException, TransferException, WTPropertyVetoException
exportObjects
in interface TransferService
spec
- objectBasis
-
WTException
TransferException
WTPropertyVetoException
public void exportObjects(ExportSpec spec, Persistable objectBasis, ConfigSpec configBasis) throws WTException, TransferException, WTPropertyVetoException
exportObjects
in interface TransferService
spec
- objectBasis
- configBasis
-
WTException
TransferException
WTPropertyVetoException
public void exportObjects(ExportSpec spec, TransferFilter[] filters) throws WTException, TransferException, WTPropertyVetoException
exportObjects
in interface TransferService
spec
- filters
-
WTException
TransferException
WTPropertyVetoException
public void exportObjects(ExportSpec spec, TransferFilter template, Persistable objectBasis) throws WTException, TransferException, WTPropertyVetoException
exportObjects
in interface TransferService
spec
- template
- objectBasis
-
WTException
TransferException
WTPropertyVetoException
public void exportObjects(ExportSpec spec, TransferFilter template, ConfigSpec configBasis) throws WTException, TransferException, WTPropertyVetoException
exportObjects
in interface TransferService
spec
- template
- configBasis
-
WTException
TransferException
WTPropertyVetoException
public void exportObjects(ExportSpec spec, TransferFilter template, Persistable objectBasis, ConfigSpec configBasis) throws WTException, TransferException, WTPropertyVetoException
exportObjects
in interface TransferService
spec
- template
- objectBasis
- configBasis
-
WTException
TransferException
WTPropertyVetoException
public void importObjects(ImportSpec spec) throws WTException, TransferException, WTPropertyVetoException
importObjects
in interface TransferService
spec
-
WTException
TransferException
WTPropertyVetoException
public void importObjects(ImportSpec spec, TransferFilter[] filters) throws WTException, TransferException, WTPropertyVetoException
importObjects
in interface TransferService
spec
- filters
-
WTException
TransferException
WTPropertyVetoException
public Hashtable getAllDescendentsOf(Class target) throws WTException, TransferException, WTIntrospectionException
getAllDescendentsOf
in interface TransferService
target
-
WTException
TransferException
WTIntrospectionException
public Hashtable getAllDescendentsOf(String classname) throws WTException, TransferException, WTIntrospectionException
getAllDescendentsOf
in interface TransferService
classname
-
WTException
TransferException
WTIntrospectionException
public Vector getDirectDescendentsOf(Class target) throws WTException, TransferException, WTIntrospectionException
getDirectDescendentsOf
in interface TransferService
target
-
WTException
TransferException
WTIntrospectionException
public Vector getDirectDescendentsOf(String classname) throws WTException, TransferException, WTIntrospectionException
getDirectDescendentsOf
in interface TransferService
classname
-
WTException
TransferException
WTIntrospectionException
private void expandNode(ClassInfo nodeinfo, Hashtable pihash)
public static TransferService getService()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |