public class BrandUtility extends Object
Constructor and Description |
---|
BrandUtility(PortalContext ctxt) |
Modifier and Type | Method and Description |
---|---|
com.portal.permission.ScopeEntryPoint |
getActiveBrand()
Returns the active brand as a ScopeEntryPoint Object
|
TreeModel |
getBrands()
Returns the Brand hierarchy in a swing TreeModel.
|
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.
|
com.portal.permission.ScopeEntryPoint |
lookupBrandFromPoid(Poid brandPoid)
Used to lookup the brand that is associated with the given brand poid.
|
void |
reloadBrands()
Reloads the Brand hierarchy from the database.
|
boolean |
setActiveBrand(com.portal.permission.ScopeEntryPoint newScope)
Sets the given brand as the new active brand in the infranet system.
|
public BrandUtility(PortalContext ctxt)
public TreeModel getBrands()
public void reloadBrands()
public boolean isDummyRoot()
public com.portal.permission.ScopeEntryPoint getActiveBrand() throws IllegalStateException
IllegalStateException
public com.portal.permission.ScopeEntryPoint lookupBrandFromPoid(Poid brandPoid)
brandPoid
- The Brand poid object.public boolean setActiveBrand(com.portal.permission.ScopeEntryPoint newScope)
ScopeEntryPoint
- A Brand info object containing the brand to which the credentials/scope
should be set topublic boolean isBrandingEnabled()
Copyright © 2003, 2023, Oracle and/or its affiliates.