public class AssetRelation extends BaseManager
BaseManager.PackEntryChangeListener, BaseManager.RegistryEntry
TYPE_EJP, TYPE_NATIVE
Modifier and Type | Method and Description |
---|---|
GUID |
getAssetRelationID()
Returns the asset relation id of this asset relation.
|
java.lang.String |
getDescription(int languageID,
boolean useFallback)
Returns the description of this asset relation.
|
java.lang.String |
getDirectionNameToChild(int languageID,
boolean useFallback)
Returns the direction name of this asset relation.
|
java.lang.String |
getDirectionNameToMaster(int languageID,
boolean useFallback)
Returns the direction name of this asset relation.
|
java.lang.String |
getName(int languageID,
boolean useFallback)
Returns the name of this asset relation.
|
java.lang.String |
getName(int languageID,
boolean useFallback,
boolean useRelationIDAsFallback)
Returns the name of this asset relation.
|
RestrictionsList |
getRestrictionsList()
Returns the list of roles and users that are allowed to assign this asset relation if
isRestricted() returns true. |
java.lang.String |
getTabNameToChild(int languageID,
boolean useFallback)
Returns the direction name of this asset relation.
|
java.lang.String |
getTabNameToMaster(int languageID,
boolean useFallback)
Returns the tab name of this asset relation.
|
boolean |
getTreatAsMaster()
Returns whether this asset relation is treated as master.
|
boolean |
isRestricted()
Returns whether this asset relation is restricted to roles and users.
|
void |
setDescription(int languageID,
java.lang.String description)
Sets the description of this asset relation for the given language.
|
void |
setDirectionNameToChild(int languageID,
java.lang.String directionName)
Sets the direction name of this asset relation for the given language.
|
void |
setDirectionNameToMaster(int languageID,
java.lang.String directionName)
Sets the direction name of this asset relation for the given language.
|
void |
setName(int languageID,
java.lang.String name)
Sets the name of this asset relation for the given language.
|
void |
setRestricted(boolean restricted)
Sets this asset relation is restricted to roles and users.
|
void |
setTabNameToChild(int languageID,
java.lang.String tabName)
Sets the tab name of this asset relation for the given language.
|
void |
setTabNameToMaster(int languageID,
java.lang.String tabName)
Sets the tab name of this asset relation for the given language.
|
void |
setTreatAsMaster(boolean treatAsMaster)
Sets this asset relation to treat as master.
|
addChangeListener, addChangeListener, addGlobalChangeListener, addPackListener, forgetPush, getPack, isShared, popPack, pushPack, removeChangeListener, removeChangeListener, removeGlobalChangeListener, removePackListener, save, save, toString, writeAsXML
public GUID getAssetRelationID()
public boolean getTreatAsMaster()
public void setTreatAsMaster(boolean treatAsMaster)
treatAsMaster
- true if this asset relation should be treated as masterpublic boolean isRestricted()
public void setRestricted(boolean restricted)
restricted
- true if this asset relation should be restricted to roles and userspublic RestrictionsList getRestrictionsList()
isRestricted()
returns true.public java.lang.String getName(int languageID, boolean useFallback)
languageID
- the language to getpublic void setName(int languageID, java.lang.String name)
languageID
- the language to setname
- the name to setpublic java.lang.String getName(int languageID, boolean useFallback, boolean useRelationIDAsFallback)
languageID
- the language to getpublic void setDescription(int languageID, java.lang.String description)
languageID
- the language to setdescription
- the description to setpublic java.lang.String getDescription(int languageID, boolean useFallback)
languageID
- the language to getpublic void setDirectionNameToChild(int languageID, java.lang.String directionName)
languageID
- the language to setdirectionName
- the direction name to setpublic java.lang.String getDirectionNameToChild(int languageID, boolean useFallback)
languageID
- the language to getpublic void setDirectionNameToMaster(int languageID, java.lang.String directionName)
languageID
- the language to setdirectionName
- the direction name to setpublic java.lang.String getDirectionNameToMaster(int languageID, boolean useFallback)
languageID
- the language to getpublic void setTabNameToChild(int languageID, java.lang.String tabName)
languageID
- the language to settabName
- the tab name to setpublic java.lang.String getTabNameToChild(int languageID, boolean useFallback)
languageID
- the language to getpublic void setTabNameToMaster(int languageID, java.lang.String tabName)
languageID
- the language to settabName
- the tab name to setpublic java.lang.String getTabNameToMaster(int languageID, boolean useFallback)
languageID
- the language to getwww.canto.com
Canto, the Canto logo, the Cumulus logo, and Cumulus are registered trademarks of Canto GmbH, registered in the U.S. and other countries.