public class PBrandBeanImpl extends PControllerImpl implements PBrandBean
mFList, mRemoteListeners, UPDATE_CLIENT, UPDATE_MODEL_CHANGE, UPDATE_NEW_MODEL, UPDATE_PROPERTY
Constructor and Description |
---|
PBrandBeanImpl() |
Modifier and Type | Method and Description |
---|---|
PScopeEntryPoint |
getActiveBrand()
Returns the active brand as a PScopeEntryPoint Object
|
TreeModel |
getBrands()
Returns the Brand hierarchy in a swing TreeModel.
|
Object |
getModelField(PModelHandle mh,
PFieldSpecification spec)
Get a specific field from the data model.
|
Object |
getSelectionDataFor(String dataItem,
int index)
Given the name of a display data item, and an optional index,
return the information needed for Selection event to be useful.
|
boolean |
isBrandingEnabled()
Check if branding is enabled.
|
boolean |
isDummyRoot()
Returns true if the root node of the tree model is a dummy root node only serving the
purpose of parenting loose brands and account groups.
|
PScopeEntryPoint |
lookupBrandFromPoid(PModelHandle brandPoid)
Used to lookup the brand that is associated with the given brand poid.
|
void |
retrieveBrands()
Retrieves the Brand hierarchy from the database.
|
boolean |
setActiveBrand(PScopeEntryPoint newActiveBrand)
Sets the given brand as the new active brand in the infranet system.
|
void |
update(int reason,
Object data)
Update.
|
addRemoteListener, closeSecContext, createClientException, distributeEventToListeners, fireModelChangeEvent, getAppController, getArrayRange, getContext, getField, getField, getField, getFieldWithRestriction, getFieldWithRestriction, getFieldWithRestriction, getModel, getRemoteListenerHandle, getSecContext, handleDistributeToListener, isLight, register, releaseContext, releaseRemoteListener, removeRemoteListener, setField, setField, setModel, unreferenced
public PBrandBeanImpl() throws RemoteException
RemoteException
public TreeModel getBrands() throws RemoteException
getBrands
in interface PBrandBean
RemoteException
RemoteException
- <public void retrieveBrands() throws RemoteException
retrieveBrands
in interface PBrandBean
RemoteException
RemoteException
- <public boolean isDummyRoot() throws RemoteException
isDummyRoot
in interface PBrandBean
RemoteException
public PScopeEntryPoint getActiveBrand() throws RemoteException
getActiveBrand
in interface PBrandBean
RemoteException
RemoteException
- <public PScopeEntryPoint lookupBrandFromPoid(PModelHandle brandPoid) throws RemoteException
lookupBrandFromPoid
in interface PBrandBean
brandPoid
- A PModelHandle object representing a Brand poid object.RemoteException
public boolean setActiveBrand(PScopeEntryPoint newActiveBrand) throws RemoteException
setActiveBrand
in interface PBrandBean
PScopeEntryPoint
- A Brand info object containing the brand to which the credentials/scope
should be set toRemoteException
RemoteException
- <public Object getModelField(PModelHandle mh, PFieldSpecification spec)
mh
- A ModelHandle get get a field fromspec
- A field specificationRemoteException
- thrown for other problemsEBufException
- is thrown if there is a problem with PortalPBadFieldException
- thrown if specification is incorrectpublic boolean isBrandingEnabled() throws RemoteException
isBrandingEnabled
in interface PBrandBean
RemoteException
RemoteException
- <public void update(int reason, Object data) throws RemoteException
update
in class PControllerImpl
reason
- The reason for the update. One of:
(@link PComponentControllerInfo.UPDATE_NEW_MODEL)
(@link PComponentControllerInfo.UPDATE_PROPERTY)
(@link PComponentControllerInfo.UPDATE_MODEL_CHANGE)
(@link PComponentControllerInfo.UPDATE_CLIENT)data
- Data associated with update.RemoteException
public Object getSelectionDataFor(String dataItem, int index) throws RemoteException
getSelectionDataFor
in interface PControllerBean
dataItem
- The name of a data item. Must match the name of
an item changed via sending a ViewDataChangeEventindex
- Optional index into an array data itemRemoteException
- thrown for errorsCopyright © 2003, 2023, Oracle and/or its affiliates.