public class CidsBean extends Object implements PropertyChangeListener, de.cismet.connectioncontext.ConnectionContextProvider
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
artificialChange |
protected String |
backlinkFieldname |
protected CidsBean |
backlinkObject |
protected IntraObjectCacheJsonParams |
jsonSerializerParams |
protected MetaObject |
metaObject |
protected PropertyChangeSupport |
propertyChangeSupport |
| Constructor and Description |
|---|
CidsBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCollectionElement(String property,
CidsBean arrayElement)
DOCUMENT ME!
|
void |
addCollectionElements(String property,
Collection<CidsBean> arrayElements)
DOCUMENT ME!
|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Add PropertyChangeListener.
|
static boolean |
checkWritePermission(User user,
CidsBean bean)
DOCUMENT ME!
|
static CidsBean |
createNewCidsBeanFromJSON(boolean intraObjectCacheEnabled,
String json)
DOCUMENT ME!
|
static CidsBean |
createNewCidsBeanFromTableName(String domainName,
String tableName)
Deprecated.
|
static CidsBean |
createNewCidsBeanFromTableName(String domainName,
String tableName,
de.cismet.connectioncontext.ConnectionContext connectionContext)
DOCUMENT ME!
|
static CidsBean |
createNewCidsBeanFromTableName(String domainName,
String tableName,
Map<String,Object> initialProperties)
Deprecated.
|
static CidsBean |
createNewCidsBeanFromTableName(String domainName,
String tableName,
Map<String,Object> initialProperties,
de.cismet.connectioncontext.ConnectionContext connectionContext)
DOCUMENT ME!
|
static Collection<CidsBean> |
createNewCidsBeansFromJSONCollection(boolean intraObjectCacheEnabled,
String json)
DOCUMENT ME!
|
void |
delete()
call this method to delete the subobject and remove all the references it will not delete subobjects of the
object itself.
|
boolean |
equals(Object obj)
DOCUMENT ME!
|
void |
fillEmptyFieldWithEmptySubInstance(String name)
DOCUMENT ME!
|
void |
firePropertyChanged(String propertyName,
Object oldValue,
Object newValue)
This method is used from sub classes to firePropertyChange without the need to access a private or protected
class.
|
List<CidsBean> |
getBeanCollectionProperty(String collectionProperty)
DOCUMENT ME!
|
CidsBeanInfo |
getCidsBeanInfo()
DOCUMENT ME!
|
static com.fasterxml.jackson.databind.ObjectMapper |
getCidsBeanIntraObjectCacheMapper()
DOCUMENT ME!
|
static com.fasterxml.jackson.databind.ObjectMapper |
getCidsBeanObjectMapper()
DOCUMENT ME!
|
de.cismet.connectioncontext.ConnectionContext |
getConnectionContext() |
CidsBean |
getEmptyBeanFromArrayAttribute(String fieldname)
DOCUMENT ME!
|
boolean |
getHasWritePermission(User user)
DOCUMENT ME!
|
IntraObjectCacheJsonParams |
getJsonSerializerParams()
DOCUMENT ME!
|
static MetaClass |
getMetaClassFromTableName(String domainName,
String tableName)
Deprecated.
|
static MetaClass |
getMetaClassFromTableName(String domainName,
String tableName,
de.cismet.connectioncontext.ConnectionContext connectionContext)
DOCUMENT ME!
|
MetaObject |
getMetaObject()
DOCUMENT ME!
|
String |
getMOString()
DOCUMENT ME!
|
String |
getPrimaryKeyFieldname()
DOCUMENT ME!
|
Integer |
getPrimaryKeyValue()
DOCUMENT ME!
|
Object |
getProperty(String name)
Convenience Method.
|
PropertyChangeListener[] |
getPropertyChangeListeners()
DOCUMENT ME!
|
PropertyDescriptor[] |
getPropertyDescriptors()
DOCUMENT ME!
|
String[] |
getPropertyNames()
DOCUMENT ME!
|
boolean |
hasArtificialChangeFlag()
DOCUMENT ME!
|
int |
hashCode()
DOCUMENT ME!
|
boolean |
hasObjectReadPermission(User user)
DOCUMENT ME!
|
boolean |
hasObjectWritePermission(User user)
DOCUMENT ME!
|
void |
listElementPropertyChanged(String arrayfield,
org.jdesktop.observablecollections.ObservableList list,
int index)
Notification than a property of an element in this list has changed.
|
void |
listElementReplaced(String arrayfield,
org.jdesktop.observablecollections.ObservableList list,
int index,
Object oldElement)
Notification that an element has been replaced by another in the list.
|
void |
listElementsAdded(String arrayfield,
org.jdesktop.observablecollections.ObservableList list,
int index,
int length)
Notification that elements have been added to the list.
|
void |
listElementsRemoved(String arrayfield,
org.jdesktop.observablecollections.ObservableList list,
int index,
List oldElements)
Notification that elements have been removed from the list.
|
CidsBean |
persist()
Deprecated.
|
CidsBean |
persist(de.cismet.connectioncontext.ConnectionContext connectionContext)
DOCUMENT ME!
|
CidsBean |
persist(MetaService metaService,
User user,
String domain)
Deprecated.
|
CidsBean |
persist(MetaService metaService,
User user,
String domain,
de.cismet.connectioncontext.ConnectionContext connectionContext)
DOCUMENT ME!
|
void |
propertyChange(PropertyChangeEvent evt)
This method gets called when a bound property is changed.
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Remove PropertyChangeListener.
|
void |
setArtificialChangeFlag(boolean artificialChange)
DOCUMENT ME!
|
void |
setBacklinkInformation(String fieldname,
CidsBean parentObject)
DOCUMENT ME!
|
protected void |
setJsonSerializerParams(IntraObjectCacheJsonParams jsonSerializerParams)
DOCUMENT ME!
|
void |
setMetaObject(MetaObject metaObject)
DOCUMENT ME!
|
void |
setProperty(String name,
Object value)
Convenience Method.
|
String |
toJSONString(boolean intraObjectCacheEnabled)
DOCUMENT ME!
|
String |
toJSONString(boolean intraObjectCacheEnabled,
boolean jsonOmitNull,
int jsonLevel,
Collection<String> jsonPropFields,
Collection<String> jsonPropExpand)
DOCUMENT ME!
|
static String |
toJSONString(boolean intraObjectCacheEnabled,
Collection<CidsBean> beans)
DOCUMENT ME!
|
String |
toJSONString(IntraObjectCacheJsonParams params)
DOCUMENT ME!
|
static String |
toJSONString(IntraObjectCacheJsonParams params,
Collection<CidsBean> beans)
DOCUMENT ME!
|
String |
toObjectString()
DOCUMENT ME!
|
String |
toString()
DOCUMENT ME!
|
protected PropertyChangeSupport propertyChangeSupport
protected MetaObject metaObject
protected String backlinkFieldname
protected CidsBean backlinkObject
protected boolean artificialChange
protected transient IntraObjectCacheJsonParams jsonSerializerParams
public static com.fasterxml.jackson.databind.ObjectMapper getCidsBeanObjectMapper()
public static com.fasterxml.jackson.databind.ObjectMapper getCidsBeanIntraObjectCacheMapper()
public MetaObject getMetaObject()
public boolean getHasWritePermission(User user)
user - DOCUMENT ME!public boolean hasObjectWritePermission(User user)
user - DOCUMENT ME!public boolean hasObjectReadPermission(User user)
user - DOCUMENT ME!public void setMetaObject(MetaObject metaObject)
metaObject - DOCUMENT ME!public String getMOString()
public String toString()
public boolean equals(Object obj)
public int hashCode()
public String toObjectString()
@Deprecated public CidsBean persist(MetaService metaService, User user, String domain) throws Exception
metaService - DOCUMENT ME!user - DOCUMENT ME!domain - DOCUMENT ME!Exception - DOCUMENT ME!public CidsBean persist(MetaService metaService, User user, String domain, de.cismet.connectioncontext.ConnectionContext connectionContext) throws Exception
metaService - DOCUMENT ME!user - DOCUMENT ME!domain - DOCUMENT ME!connectionContext - DOCUMENT ME!Exception - DOCUMENT ME!@Deprecated public CidsBean persist() throws Exception
Exception - DOCUMENT ME!public CidsBean persist(de.cismet.connectioncontext.ConnectionContext connectionContext) throws Exception
connectionContext - DOCUMENT ME!Exception - DOCUMENT ME!public void addCollectionElement(String property, CidsBean arrayElement)
property - DOCUMENT ME!arrayElement - DOCUMENT ME!public void addCollectionElements(String property, Collection<CidsBean> arrayElements)
property - DOCUMENT ME!arrayElements - DOCUMENT ME!public void setBacklinkInformation(String fieldname, CidsBean parentObject)
fieldname - DOCUMENT ME!parentObject - DOCUMENT ME!public void addPropertyChangeListener(PropertyChangeListener listener)
listener - DOCUMENT ME!public void removePropertyChangeListener(PropertyChangeListener listener)
listener - DOCUMENT ME!public PropertyChangeListener[] getPropertyChangeListeners()
public void firePropertyChanged(String propertyName, Object oldValue, Object newValue)
propertyName - DOCUMENT ME!oldValue - DOCUMENT ME!newValue - DOCUMENT ME!public void propertyChange(PropertyChangeEvent evt)
propertyChange in interface PropertyChangeListenerevt - A PropertyChangeEvent object describing the event source and the property that has changed.public void delete()
throws Exception
Exception - java.lang.Exceptionpublic void fillEmptyFieldWithEmptySubInstance(String name) throws Exception
name - DOCUMENT ME!Exception - DOCUMENT ME!RuntimeException - DOCUMENT ME!public CidsBean getEmptyBeanFromArrayAttribute(String fieldname)
fieldname - DOCUMENT ME!RuntimeException - DOCUMENT ME!public void setProperty(String name, Object value) throws Exception
PropertyUtils.setProperty(this, name, value);name - DOCUMENT ME!value - DOCUMENT ME!Exception - java.lang.Exceptionpublic Object getProperty(String name)
PropertyUtils.getProperty(this, name);name - DOCUMENT ME!public void listElementsAdded(String arrayfield, org.jdesktop.observablecollections.ObservableList list, int index, int length)
arrayfield - DOCUMENT ME!list - the ObservableList that has changedindex - the index the elements were added tolength - the number of elements that were addedRuntimeException - DOCUMENT ME!public void listElementsRemoved(String arrayfield, org.jdesktop.observablecollections.ObservableList list, int index, List oldElements)
arrayfield - DOCUMENT ME!list - the ObservableList that has changedindex - the starting index the elements were removed fromoldElements - a list containing the elements that were removed.public void listElementReplaced(String arrayfield, org.jdesktop.observablecollections.ObservableList list, int index, Object oldElement)
arrayfield - DOCUMENT ME!list - the ObservableList that has changedindex - the index of the element that was replacedoldElement - the element at the index before the changepublic void listElementPropertyChanged(String arrayfield, org.jdesktop.observablecollections.ObservableList list, int index)
ObservableLists support this
notification. Only observable lists that return true from supportsElementPropertyChanged send
this notification.arrayfield - DOCUMENT ME!list - the ObservableList that has changedindex - the index of the element that changedpublic String[] getPropertyNames()
public String getPrimaryKeyFieldname()
public Integer getPrimaryKeyValue()
public PropertyDescriptor[] getPropertyDescriptors()
Error - DOCUMENT ME!public String toJSONString(boolean intraObjectCacheEnabled)
intraObjectCacheEnabled - DOCUMENT ME!public String toJSONString(boolean intraObjectCacheEnabled, boolean jsonOmitNull, int jsonLevel, Collection<String> jsonPropFields, Collection<String> jsonPropExpand)
intraObjectCacheEnabled - DOCUMENT ME!jsonOmitNull - DOCUMENT ME!jsonLevel - DOCUMENT ME!jsonPropFields - DOCUMENT ME!jsonPropExpand - DOCUMENT ME!public String toJSONString(IntraObjectCacheJsonParams params)
params - DOCUMENT ME!public static String toJSONString(boolean intraObjectCacheEnabled, Collection<CidsBean> beans)
intraObjectCacheEnabled - DOCUMENT ME!beans - DOCUMENT ME!public static String toJSONString(IntraObjectCacheJsonParams params, Collection<CidsBean> beans)
params - DOCUMENT ME!beans - DOCUMENT ME!public CidsBeanInfo getCidsBeanInfo()
public boolean hasArtificialChangeFlag()
public void setArtificialChangeFlag(boolean artificialChange)
artificialChange - DOCUMENT ME!@Deprecated public static CidsBean createNewCidsBeanFromTableName(String domainName, String tableName, Map<String,Object> initialProperties) throws Exception
domainName - DOCUMENT ME!tableName - DOCUMENT ME!initialProperties - DOCUMENT ME!Exception - DOCUMENT ME!public static CidsBean createNewCidsBeanFromTableName(String domainName, String tableName, Map<String,Object> initialProperties, de.cismet.connectioncontext.ConnectionContext connectionContext) throws Exception
domainName - DOCUMENT ME!tableName - DOCUMENT ME!initialProperties - DOCUMENT ME!connectionContext - DOCUMENT ME!Exception - DOCUMENT ME!public static CidsBean createNewCidsBeanFromJSON(boolean intraObjectCacheEnabled, String json) throws Exception
intraObjectCacheEnabled - DOCUMENT ME!json - DOCUMENT ME!Exception - DOCUMENT ME!public static Collection<CidsBean> createNewCidsBeansFromJSONCollection(boolean intraObjectCacheEnabled, String json) throws Exception
intraObjectCacheEnabled - DOCUMENT ME!json - DOCUMENT ME!Exception - DOCUMENT ME!@Deprecated public static CidsBean createNewCidsBeanFromTableName(String domainName, String tableName) throws Exception
domainName - DOCUMENT ME!tableName - DOCUMENT ME!Exception - DOCUMENT ME!public static CidsBean createNewCidsBeanFromTableName(String domainName, String tableName, de.cismet.connectioncontext.ConnectionContext connectionContext) throws Exception
domainName - DOCUMENT ME!tableName - DOCUMENT ME!connectionContext - DOCUMENT ME!Exception - DOCUMENT ME!@Deprecated public static MetaClass getMetaClassFromTableName(String domainName, String tableName) throws Exception
domainName - DOCUMENT ME!tableName - DOCUMENT ME!Exception - DOCUMENT ME!public static MetaClass getMetaClassFromTableName(String domainName, String tableName, de.cismet.connectioncontext.ConnectionContext connectionContext) throws Exception
domainName - DOCUMENT ME!tableName - DOCUMENT ME!connectionContext - DOCUMENT ME!Exception - DOCUMENT ME!public List<CidsBean> getBeanCollectionProperty(String collectionProperty)
collectionProperty - DOCUMENT ME!public static boolean checkWritePermission(User user, CidsBean bean)
user - DOCUMENT ME!bean - DOCUMENT ME!public IntraObjectCacheJsonParams getJsonSerializerParams()
protected void setJsonSerializerParams(IntraObjectCacheJsonParams jsonSerializerParams)
jsonSerializerParams - DOCUMENT ME!public de.cismet.connectioncontext.ConnectionContext getConnectionContext()
getConnectionContext in interface de.cismet.connectioncontext.ConnectionContextProviderCopyright © 2012–2026 cismet GmbH. All rights reserved.