public class SharableManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
GROUP_ALL
_more_
|
static LogUtil |
LU
_more_
|
static java.util.List |
shareGroupNames
_more_
|
Constructor and Description |
---|
SharableManager() |
Modifier and Type | Method and Description |
---|---|
static void |
addSharable(Sharable s)
Adds the sharable.
|
static void |
addSharableListener(SharableListener listener)
Add a listener to the list of listeners.
|
static void |
addShareGroup(java.lang.Object group)
Adds the share group.
|
static void |
addShareGroupName(java.lang.String name)
Adds the share group name.
|
protected static void |
checkShareData(Sharable from,
java.lang.Object dataId,
java.lang.Object[] data,
boolean internal,
boolean external)
Check share data.
|
static java.util.List |
getDefaultShareGroups()
Gets the default share groups.
|
static java.util.List |
getShareGroupNames()
Gets the share group names.
|
static void |
removeSharable(Sharable s)
Removes the sharable.
|
static void |
removeSharableListener(SharableListener listener)
Remove a listener from the list of listeners.
|
public static final LogUtil LU
public static java.util.List shareGroupNames
public static final java.lang.String GROUP_ALL
public static java.util.List getShareGroupNames()
public static void addShareGroupName(java.lang.String name)
name
- the namepublic static void addSharable(Sharable s)
s
- the spublic static void removeSharable(Sharable s)
s
- the spublic static void addSharableListener(SharableListener listener)
listener
- the listenerpublic static void removeSharableListener(SharableListener listener)
listener
- the listenerprotected static void checkShareData(Sharable from, java.lang.Object dataId, java.lang.Object[] data, boolean internal, boolean external)
from
- the fromdataId
- the data iddata
- the datainternal
- the internalexternal
- the externalpublic static java.util.List getDefaultShareGroups()
public static void addShareGroup(java.lang.Object group)
group
- the group