|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.services.StandardManager
wt.ownership.StandardOwnershipService
Server implementation of the OwnershipService capability.
Use the newStandardOwnershipService
static factory method(s),
not the StandardOwnershipService
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
Field Summary | |
private static String |
CLASSNAME
|
private static boolean |
DEBUG
|
private static String |
RESOURCE
|
private static boolean |
VERBOSE
|
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 | |
StandardOwnershipService()
|
Method Summary | |
Ownable |
assignOwnership(Ownable obj,
WTPrincipal principal)
Assign the ownership of an object to a specific principal (user or group). |
WTCollection |
assignOwnership(WTCollection objs,
WTPrincipal principal)
Assign the ownership of objects to a specific principal (user or group). |
void |
changeOwner(Ownable obj,
WTPrincipal principal,
boolean commit_change)
Replace the Owner of an object. |
void |
changeOwnership(WTCollection objs,
WTPrincipal principal,
boolean commit_change)
Replace the Owner of the specified objects. |
protected void |
dispatchVetoableMultiObjectEvent(String eventType,
WTCollection objs,
Ownership new_ownership,
boolean commit)
Supported API: false |
String |
getConceptualClassname()
Deprecated. |
static StandardOwnershipService |
newStandardOwnershipService()
Default factory for the class. |
protected void |
performStartupProcess()
Override StandardManager to supply startup method. |
protected void |
processFullRestoreEvent(Ownable target)
Supported API: false |
void |
registerEvents(ManagerService ms)
Register events with the passed ManagerService. |
Ownable |
releaseOwnership(Ownable obj)
Release the ownership of an Ownable object. |
WTCollection |
releaseOwnership(WTCollection objs)
Release the ownership of Ownable objects. |
void |
replaceOwnership(Ownable from,
Ownable to,
boolean commit_change)
Give one Ownable object the same ownership as another. |
void |
replaceOwnership(Ownable from,
WTCollection tos)
Give Ownable objects the same ownership as another. |
private void |
replaceOwnership(Ownership new_ownership,
Ownable object,
boolean commit_change)
|
private void |
replaceOwnership(Ownership new_ownership,
WTCollection objects,
boolean commit_change)
|
Ownable |
takeOwnership(Ownable obj)
Take over the ownership of an Ownable object. |
WTCollection |
takeOwnership(WTCollection objs)
Take over the ownership of Ownable objects. |
private WTCollection |
updateOwnership(WTCollection objects,
Ownership new_ownership)
|
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 final boolean DEBUG
private static final boolean VERBOSE
Constructor Detail |
public StandardOwnershipService()
Method Detail |
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
getConceptualClassname
in class StandardManager
protected void dispatchVetoableMultiObjectEvent(String eventType, WTCollection objs, Ownership new_ownership, boolean commit) throws WTException
eventType
- objs
- new_ownership
- commit
-
WTException
protected void processFullRestoreEvent(Ownable target) throws WTException
target
-
WTException
public void replaceOwnership(Ownable from, WTCollection tos) throws WTException, OwnershipException
from
- tos
-
WTException
OwnershipException
public static StandardOwnershipService newStandardOwnershipService() throws WTException
WTException
public Ownable assignOwnership(Ownable obj, WTPrincipal principal) throws WTException
assignOwnership
in interface OwnershipService
obj
- principal
-
WTException
OwnershipHelper
public Ownable takeOwnership(Ownable obj) throws WTException
takeOwnership
in interface OwnershipService
obj
-
WTException
OwnershipHelper
,
SessionMgr
public Ownable releaseOwnership(Ownable obj) throws WTException
releaseOwnership
in interface OwnershipService
obj
-
WTException
OwnershipHelper
public WTCollection assignOwnership(WTCollection objs, WTPrincipal principal) throws WTException
assignOwnership
in interface OwnershipService
objs
- principal
-
WTException
OwnershipHelper
public WTCollection takeOwnership(WTCollection objs) throws WTException
takeOwnership
in interface OwnershipService
objs
-
WTException
OwnershipHelper
,
SessionMgr
public WTCollection releaseOwnership(WTCollection objs) throws WTException
releaseOwnership
in interface OwnershipService
objs
-
WTException
OwnershipHelper
public void replaceOwnership(Ownable from, Ownable to, boolean commit_change) throws WTException, OwnershipException
replaceOwnership
in interface OwnershipServiceSvr
from
- to
- commit_change
-
WTException
OwnershipException
public void changeOwner(Ownable obj, WTPrincipal principal, boolean commit_change) throws WTException, OwnershipException
changeOwner
in interface OwnershipServiceSvr
obj
- principal
- commit_change
-
WTException
OwnershipException
public void changeOwnership(WTCollection objs, WTPrincipal principal, boolean commit_change) throws WTException, OwnershipException
changeOwnership
in interface OwnershipServiceSvr
objs
- principal
- commit_change
-
WTException
OwnershipException
protected void performStartupProcess() throws ManagerException
performStartupProcess
in class StandardManager
ManagerException
public void registerEvents(ManagerService ms)
registerEvents
in interface Manager
registerEvents
in class StandardManager
ms
- the ManagerService with which to register events.private void replaceOwnership(Ownership new_ownership, WTCollection objects, boolean commit_change) throws WTException, OwnershipException
WTException
OwnershipException
private void replaceOwnership(Ownership new_ownership, Ownable object, boolean commit_change) throws WTException, OwnershipException
WTException
OwnershipException
private WTCollection updateOwnership(WTCollection objects, Ownership new_ownership) throws WTException, OwnershipException
WTException
OwnershipException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |