public class S_LibraryObjectDefinition extends Object implements Cloneable, Serializable
Modifier | Constructor and Description |
---|---|
protected |
S_LibraryObjectDefinition()
default constructor.
|
|
S_LibraryObjectDefinition(LibraryObjectDefinition def)
Construct a S_LibraryObjectDefinition, initializing with a
class Identifier.
|
|
S_LibraryObjectDefinition(LibrarySessionInterface session,
Long classid)
Construct a S_LibraryObjectDefinition, initializing with a
class Identifier.
|
|
S_LibraryObjectDefinition(Long classid)
Construct a S_LibraryObjectDefinition, initializing with a
class Identifier.
|
Modifier and Type | Method and Description |
---|---|
protected LibraryObjectDefinition |
constructBeanDefinition(LibrarySessionInterface session)
construct a bean-side definition.
|
void |
copyInto(S_LibraryObjectDefinition def)
Copy the contents of the target Definition into the specified
Definition.
|
AttributeValue |
getAttribute(String name)
return an AttributeValue object
that holds the value of the requested attribute.
|
AttributeValue[] |
getAttributes()
return array of Attribute values that were set for this
new instance.
|
LibraryObjectDefinition |
getBeanDefinition(LibrarySessionInterface session)
return bean-side definition.
|
protected Boolean |
getBooleanAttribute(String name)
return Boolean value of an
attribute value set with setAttribute.
|
Long |
getClassId()
return the Class Id, null if not specified
|
LibraryObjectDefinition |
getDefinition()
return bean-side definition.
|
Long |
getId()
return the Id, null if not yet specified
|
protected Long |
getLongAttribute(String name)
return Long value of an
attribute value set with setAttribute.
|
protected String |
getName()
return the Name of the object
|
Object |
getOption(String name)
return an option value
|
String[] |
getOptionKeys()
Return array of option keys
|
ReferenceAttributeValue |
getReferenceAttribute(String name)
return a reference attribute value.
|
ReferenceAttributeValue[] |
getReferenceAttributes()
return array of reference attributes.
|
protected String |
getStringAttribute(String name)
return String value of an
attribute value set with setAttribute.
|
Object |
getSystemOption(String name)
return a system option value.
|
String[] |
getSystemOptionKeys()
Return array of system option keys
|
AttributeValue |
getSystemSetAttribute(String name)
return a System set AttributeValue object
that holds the value of the requested attribute.
|
AttributeValue[] |
getSystemSetAttributes()
Gets the system-set attributes.
|
AttributeValue |
getUserSetAttribute(String name)
return a User-set AttributeValue object
that holds the value of the requested attribute.
|
AttributeValue[] |
getUserSetAttributes()
return array of Attribute values that were set
by the user for this new instance.
|
void |
mergeDefinition(S_LibraryObjectDefinition def)
combines values from def into this definition.
|
void |
removeAttribute(String name)
removes an attribute setting for the
new instance.
|
void |
removeOption(String name)
removes an option setting for the
new instance.
|
protected void |
removeReferenceAttribute(String name)
removes a reference attribute setting for the
new instance.
|
void |
removeSystemOption(String name)
removes a system option setting for the
new instance.
|
void |
removeSystemSetAttribute(String name)
removes a SystemSet attribute setting for the
new instance.
|
void |
removeUserSetAttribute(String name)
removes a user-set attribute setting for the
new instance.
|
protected void |
setAttribute(String name,
AttributeValue value)
set an attribute for the new instance.
|
void |
setClassId(Long classid)
set the Class Id
|
void |
setId(Long id)
set the object Id
|
protected void |
setName(String name)
set the Name of the new instance.
|
void |
setOption(String name,
Object value)
set an option for the new instance.
|
void |
setReferenceAttribute(ReferenceAttributeValue value)
set a reference attribute for the new instance.
|
protected void |
setReferenceAttribute(String name,
ReferenceAttributeValue value)
set a reference attribute
for the new instance.
|
void |
setSession(LibrarySessionInterface session)
Set or reset the session associated with this instance.
|
void |
setSystemOption(String name,
Object value)
set a system option for the new instance.
|
void |
setSystemSetAttribute(AttributeValue value)
set a SystemSet attribute for the new instance.
|
void |
setSystemSetAttribute(String name,
AttributeValue value)
set a system-set attribute for the new instance (or for update).
|
void |
setUserSetAttribute(AttributeValue value)
set an attribute for the new instance.
|
void |
setUserSetAttribute(String name,
AttributeValue value)
set an attribute for the new instance.
|
public static final String ATTRIBUTE_NAME
public static final String SYSTEMOPTION_INITIALSELFCYCLE
public static final String SYSTEMOPTION_REMOVEALLPROPERTIES
public static final String SYSTEMOPTION_INDEXLIST
public static final String SYSTEMOPTION_FREE_COORDINATION_OPTION1
public static final String SYSTEMOPTION_FREE_COORDINATION_OPTION2
public static final String SYSTEMOPTION_FREE_COORDINATION_OPTION3
public static final String SYSTEMOPTION_FREE_COORDINATION_OPTION4
public static final String SYSTEMOPTION_UPDATE_COORDINATION_OPTION1
public static final String SYSTEMOPTION_CREATE_COORDINATION_CONTENTQUOTA_SETTING
public static final String SYSTEMOPTION_COPY_CATEGORIES
public static final String SYSTEMOPTION_CONTENTQUOTQA_COPY_OPTION
public static final String SYSTEMOPTION_COPY_CONTENT_OPTION
public static final String SYSTEMOPTION_BYPASS_OWNER_UNIQUENESS_CHECK
public static final String SYSTEMOPTION_BYPASS_POLICY_CHECK
public static final String SYSTEMOPTION_OPERATION_POLICIES
public static final String SYSTEMOPTION_BYPASS_FOLDER_INDEX
public static final String SYSTEMOPTION_DERIVED_DEFS_INCLUDE_CATEGORIES
protected LibraryObjectDefinition m_Definition
protected S_LibraryObjectDefinition() throws IfsException
IfsException
- if operation fails.public S_LibraryObjectDefinition(Long classid) throws IfsException
classid
- the ID of the ClassObject that will
be described by this definitionIfsException
- if operation fails.public S_LibraryObjectDefinition(LibraryObjectDefinition def) throws IfsException
def
- the Definition to encapsulateIfsException
- if operation fails.public S_LibraryObjectDefinition(LibrarySessionInterface session, Long classid) throws IfsException
session
- the session contextclassid
- the ID of the ClassObject that will
be described by this definitionIfsException
- if operation fails.public void setSession(LibrarySessionInterface session) throws IfsException
session
- the new session contextIfsException
- if operation fails.public Long getClassId() throws IfsException
IfsException
- if the operation failspublic Long getId() throws IfsException
IfsException
- if the operation failspublic void setClassId(Long classid) throws IfsException
classid
- the Class IdIfsException
- if the operation failspublic void setId(Long id) throws IfsException
id
- the IdIfsException
- if the operation failspublic void copyInto(S_LibraryObjectDefinition def) throws IfsException
def
- The definition which gets set with the
information contained in the target definitionIfsException
- if the operation failspublic LibraryObjectDefinition getDefinition() throws IfsException
IfsException
- if operation fails.public LibraryObjectDefinition getBeanDefinition(LibrarySessionInterface session) throws IfsException
session
- the bean-side session.IfsException
- if operation fails.protected LibraryObjectDefinition constructBeanDefinition(LibrarySessionInterface session) throws IfsException
session
- the bean-side session.IfsException
- if operation fails.protected void setAttribute(String name, AttributeValue value) throws IfsException
name
- The attribute namevalue
- The attribute value.IfsException
- if operation fails.public void setUserSetAttribute(String name, AttributeValue value) throws IfsException
name
- The attribute namevalue
- The attribute value.IfsException
- if operation fails.public void setUserSetAttribute(AttributeValue value) throws IfsException
value
- The attribute value.IfsException
- if operation fails.public void setSystemSetAttribute(String name, AttributeValue value) throws IfsException
name
- The attribute namevalue
- The attribute value.IfsException
- if operation fails.public void setSystemSetAttribute(AttributeValue value) throws IfsException
value
- The attribute value with the name already set.IfsException
- if operation fails.public AttributeValue getAttribute(String name) throws IfsException
name
- the name of the AttributeIfsException
- if the operation failspublic AttributeValue getUserSetAttribute(String name) throws IfsException
name
- the name of the user-set AttributeIfsException
- if the operation failspublic AttributeValue getSystemSetAttribute(String name) throws IfsException
name
- the name of the System set AttributeIfsException
- if the operation failsprotected void setReferenceAttribute(String name, ReferenceAttributeValue value) throws IfsException
name
- The reference attribute name namevalue
- The reference attribute value.IfsException
- if operation fails.public void setReferenceAttribute(ReferenceAttributeValue value) throws IfsException
value
- The reference attribute value.IfsException
- if operation fails.public ReferenceAttributeValue getReferenceAttribute(String name)
name
- the name of the reference attributepublic ReferenceAttributeValue[] getReferenceAttributes() throws IfsException
IfsException
- if operation fails.protected void removeReferenceAttribute(String name) throws IfsException
name
- The name of the reference attribute to be removed.IfsException
public void setSystemOption(String name, Object value) throws IfsException
name
- The option namevalue
- The option value.IfsException
- if operation fails.public Object getSystemOption(String name) throws IfsException
name
- the name of the system optionIfsException
- if the operation failspublic String[] getSystemOptionKeys() throws IfsException
IfsException
- if operation fails.public void setOption(String name, Object value) throws IfsException
name
- The option namevalue
- The option value. The value must be serializable.IfsException
- if operation fails.public Object getOption(String name) throws IfsException
name
- the name of the optionIfsException
- if the operation failspublic String[] getOptionKeys() throws IfsException
IfsException
- if operation fails.protected String getStringAttribute(String name)
name
- the name of the Attributeprotected Long getLongAttribute(String name)
name
- the name of the Attributeprotected Boolean getBooleanAttribute(String name)
name
- the name of the Attributeprotected void setName(String name) throws IfsException
name
- The name to be used for the new instance.IfsException
- if operation fails.protected String getName()
public void removeAttribute(String name) throws IfsException
name
- The name of the Attribute to be removed.IfsException
public void removeUserSetAttribute(String name) throws IfsException
name
- The name of the user-set Attribute to be removed.IfsException
public void removeSystemSetAttribute(String name) throws IfsException
name
- The name of the SystemSetAttribute to be removed.IfsException
public AttributeValue[] getUserSetAttributes() throws IfsException
IfsException
public AttributeValue[] getSystemSetAttributes() throws IfsException
IfsException
- if the operation failspublic AttributeValue[] getAttributes() throws IfsException
IfsException
public void removeOption(String name) throws IfsException
name
- The name of the option to be removed.IfsException
public void removeSystemOption(String name) throws IfsException
name
- The name of the option to be removed.IfsException
public void mergeDefinition(S_LibraryObjectDefinition def) throws IfsException
def
- The definition to be merged in.IfsException
Copyright © 2023. All rights reserved.