|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.inf.sharing.AbstractDataSharingDelegate
wt.inf.sharing.DefaultDataSharingDelegate
Default implementation of the DataSharingDelegate
interface.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
static long |
EXTERNALIZATION_VERSION_UID
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private static boolean |
VERBOSE
|
Constructor Summary | |
DefaultDataSharingDelegate()
|
Method Summary | |
ObjectIdentifier |
getOid(Object object)
Returns object's associated oid. |
String |
getOidString(Object object)
Returns String representation of the object's oid (debugging). |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(DefaultDataSharingDelegate thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
private void |
setIterationAdHocAccess(AdHocControlled object,
WTPrincipal user,
WTPrincipalReference admins_ref,
long target_container_id)
|
private void |
setIterationAdHocAccess(Persistable object,
WTContainer to_container,
Folder to_folder)
|
SharedContainerMap |
setMapAccess(SharedContainerMap map)
Gives the share creator and container administrators all rights over the share. |
WTCollection |
setMapAccess(WTCollection maps)
Sets ad hoc access control to the SharedContainerMap
objects contained in the WTCollection passed
as argument. |
Persistable |
setObjectAccess(Persistable object,
WTContainer to_container,
boolean is_version_share)
Gives the container administrators the same rights as the share creator over the share target. |
Persistable |
setObjectAccess(Persistable object,
WTContainer to_container,
boolean is_version_share,
Folder to_folder)
|
WTCollection |
setObjectAccess(WTCollection objects,
WTContainer to_container,
boolean is_version_share)
Sets ad hoc access control to the Persistable objects
contained in the WTCollection passed as
argument This method is called when the object is being shared to
the container passed as argument. |
WTCollection |
setObjectAccess(WTCollection objects,
WTContainer to_container,
boolean is_version_share,
Folder to_folder)
|
private void |
setObjectAdHocAccess(AdHocControlled object,
WTPrincipal user,
WTPrincipalReference admins_ref,
long target_container_id)
|
private Persistable |
setObjectAdHocAccess(Persistable object,
WTContainer to_container,
Folder to_folder)
|
private String |
showCollection(Collection collection)
Returns String representation of the list passed as argument (debugging). |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class wt.inf.sharing.AbstractDataSharingDelegate |
checkValidShare, checkValidShare, readVersion |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static final boolean VERBOSE
Constructor Detail |
public DefaultDataSharingDelegate()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class AbstractDataSharingDelegate
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class AbstractDataSharingDelegate
input
-
IOException
ClassNotFoundException
protected boolean readVersion(DefaultDataSharingDelegate thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public SharedContainerMap setMapAccess(SharedContainerMap map) throws WTException
setMapAccess
in interface DataSharingDelegate
setMapAccess
in class AbstractDataSharingDelegate
map
-
WTException
public Persistable setObjectAccess(Persistable object, WTContainer to_container, boolean is_version_share) throws WTException
setObjectAccess
in interface DataSharingDelegate
setObjectAccess
in class AbstractDataSharingDelegate
object
- to_container
- is_version_share
-
WTException
public WTCollection setMapAccess(WTCollection maps) throws WTException
SharedContainerMap
objects contained in the WTCollection
passed
as argument. Returns a collection of persisted shares. This method
is called when shares are created. and the maps passed as argument
has not been persisted yet.
setMapAccess
in interface DataSharingDelegate
setMapAccess
in class AbstractDataSharingDelegate
maps
-
WTException
public WTCollection setObjectAccess(WTCollection objects, WTContainer to_container, boolean is_version_share) throws WTException
Persistable
objects
contained in the WTCollection
passed as
argument This method is called when the object is being shared to
the container passed as argument. The object is updated in the database
in case it is modified. Returns a collection of persisted objects.
setObjectAccess
in interface DataSharingDelegate
setObjectAccess
in class AbstractDataSharingDelegate
objects
- to_container
- is_version_share
-
WTException
private void setObjectAdHocAccess(AdHocControlled object, WTPrincipal user, WTPrincipalReference admins_ref, long target_container_id) throws WTException
WTException
private void setIterationAdHocAccess(AdHocControlled object, WTPrincipal user, WTPrincipalReference admins_ref, long target_container_id) throws WTException
WTException
public ObjectIdentifier getOid(Object object)
public String getOidString(Object object)
private String showCollection(Collection collection) throws WTException
WTException
public Persistable setObjectAccess(Persistable object, WTContainer to_container, boolean is_version_share, Folder to_folder) throws WTException
setObjectAccess
in interface DataSharingDelegate
WTException
public WTCollection setObjectAccess(WTCollection objects, WTContainer to_container, boolean is_version_share, Folder to_folder) throws WTException
setObjectAccess
in interface DataSharingDelegate
WTException
private void setIterationAdHocAccess(Persistable object, WTContainer to_container, Folder to_folder) throws WTException
WTException
private Persistable setObjectAdHocAccess(Persistable object, WTContainer to_container, Folder to_folder) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |