public interface Portal<B extends PortalPropertyBean> extends ManagedPortalObject<B>, Subscribable
Portal
type is logically abstract. Use the PortalObjectRepository
to obtain an instance of a suitable subtype such as PortalInstance
or PortalTemplate
.PortalInstance
, PortalTemplate
ManagedPortalObject.ValidateOnCreate, ManagedPortalObject.ValidateOnUpdate
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_GROUP_SPACE_NAME |
static java.lang.String |
DEFAULT_PORTAL_ID |
static java.lang.String |
DEFAULT_PORTAL_NAMESPACE |
static java.lang.String |
DEFAULT_PORTAL_TEMPLATE_NAMESPACE |
Modifier and Type | Method and Description |
---|---|
void |
addToCustomAttributes(java.lang.String key, java.lang.String value)
Add a custom attribute.
|
void |
addToDeviceGroups(PortalDeviceGroup group)
Adds the given device group to device groups of this portal
|
void |
addToMembers(Member member)
Adds a member to the Portal's members.
|
void |
addToMembers(java.lang.String identity, boolean isEntrRole, java.lang.String roleName)
Creates and adds a member/role to the Portal using the information passed in by the parameters.
|
void |
clearCustomAttributes()
Clear all custom attributes.
|
java.util.List<Asset> |
getAssets()
Gets a list of assets owned by this Portal.
|
java.util.Map<java.lang.String,java.lang.String> |
getCustomAttributes()
Get the map of custom attributes.
|
PortalDeviceGroup |
getDeviceGroup(java.lang.String name)
Gets the device group of this portal
|
java.util.List<PortalDeviceGroup> |
getDeviceGroups()
Gets the device groups for this portal
|
java.lang.String |
getJavaFormatId()
Get the Portal Id in Java identifier format.
|
java.util.List<Page> |
getLockedPages()
Gets a list of locked pages owned by this Portal.
|
Page |
getLoginFailedPage()
Gets the login failed page.
|
Page |
getLoginPage()
Gets the login page.
|
Member |
getMember(java.lang.String identity, boolean isEntRole, java.lang.String role)
Returns a member given the passed in attributes if the member exists, otherwise null will be returned.
|
java.util.List<Member> |
getMembers()
Returns a list of the Members added to the Portal.
|
NavigationNode |
getNavigationRootNode()
Gets the navigation root node.
|
java.lang.String |
getNavigationRootNodeId()
Get the Id of the navigation root node of the portal.
|
Page |
getOfflinePage()
Gets the offline page.
|
java.util.List<Page> |
getOverrideSecurityPages()
Gets a list of pages owned by this Portal that override security
|
PageStyle |
getPageCreationStyle()
Gets the page creation style.
|
java.util.List<Page> |
getPageDrafts()
Gets a list of page drafts owned by this Portal.
|
java.lang.String |
getPagesResourceCatalogId()
Gets the Id of the pages resource catalog of the portal.
|
java.lang.String |
getPageTemplateId()
Get the Id of the page template of the portal.
|
java.lang.String |
getPageTemplatesResourceCatalogId()
Gets the Id of the page templates resource catalog of the portal.
|
B |
getProperties()
Get a property bean representing the current state of properties on this portal object.
|
java.util.List<java.lang.String> |
getProvisionedServiceIds()
Gets the list of Provisioned Service Ids.
|
ResourceCatalog |
getResourceCatalogForGroupSpaceSiteTemplates()
Gets the resource catalog for group space site templates.
|
Skin |
getSkin()
Gets the skin.
|
java.lang.String |
getSkinId()
Get the Id of the skin of the portal.
|
boolean |
isDefault()
Whether the portal is the default portal
|
void |
removeFromCustomAttributes(java.lang.String key)
Remove a custom attribute.
|
void |
removeFromDeviceGroups(PortalDeviceGroup group)
Removes the given device group for list of device groups for this portal
|
void |
removeFromMembers(Member member)
Removes a member from the Portal's members.
|
void |
removeFromMembers(java.lang.String identity, boolean isEntRole, java.lang.String roleName)
Removes a member from the Portal using the information passed in.
|
void |
removeMembersWithRole(java.lang.String roleName)
Removes all members with the given role from the Portal.
|
void |
setCustomAttributes(java.util.Map<java.lang.String,java.lang.String> customAttributes)
Set the map of custom attributes.
|
void |
setDeviceGroups(java.util.List<PortalDeviceGroup> groupList)
Sets the device groups for this portal
|
void |
setLoginFailedPage(Page loginFailedPage)
Sets the login failed page.
|
void |
setLoginPage(Page loginPage)
Sets the login page.
|
void |
setNavigationRootNode(NavigationNode rootNode)
Sets the navigation root node.
|
void |
setNavigationRootNodeById(java.lang.String id)
Set the navigation root node of the portal by the Id of the navigation node.
|
void |
setOfflinePage(Page offlinePage)
Sets the offline page.
|
void |
setPageCreationStyle(PageStyle pageStyle)
Sets the page style.
|
void |
setPagesResourceCatalogById(java.lang.String id)
Sets the pages resource catalog of the portal by the Id of the resource catalog.
|
void |
setPageTemplateById(java.lang.String id)
Set the page template of the portal by the Id of the page template.
|
void |
setPageTemplatesResourceCatalogById(java.lang.String id)
Sets the page templates resource catalog of the portal by the Id of the resource catalog.
|
void |
setResourceCatalogForGroupSpaceSiteTemplates(ResourceCatalog rc)
Sets the resource catalog for group space site templates.
|
void |
setSkin(Skin skin)
Sets the skin.
|
void |
setSkinById(java.lang.String id)
Set the skin of the portal by the Id of the skin.
|
void |
updateCustomAttribute(java.lang.String key, java.lang.String value)
Update a custom attribute.
|
copy, copy, delete, expandProperties, getAuthorizedActions, getDependentPortalObjects, getHolder, getPortal, getTypeName, isCurrent, isValid, setPortal, setProperties
getId, getProperties
getSubscriptionApproval, getUnsubscriptionApproval
static final java.lang.String DEFAULT_PORTAL_NAMESPACE
static final java.lang.String DEFAULT_PORTAL_TEMPLATE_NAMESPACE
static final java.lang.String DEFAULT_GROUP_SPACE_NAME
static final java.lang.String DEFAULT_PORTAL_ID
B getProperties()
getProperties
in interface PortalObject<B extends PortalPropertyBean>
java.lang.String getJavaFormatId()
NavigationNode getNavigationRootNode()
void setNavigationRootNode(NavigationNode rootNode)
rootNode
- the new navigation root nodePage getLoginPage()
void setLoginPage(Page loginPage)
loginPage
- the new login pagePage getLoginFailedPage()
void setLoginFailedPage(Page loginFailedPage)
loginFailedPage
- the new login failed pagePage getOfflinePage()
void setOfflinePage(Page offlinePage)
offlinePage
- the new offline pageResourceCatalog getResourceCatalogForGroupSpaceSiteTemplates()
void setResourceCatalogForGroupSpaceSiteTemplates(ResourceCatalog rc)
rc
- the new resource catalog for group space site templatesPageStyle getPageCreationStyle()
void setPageCreationStyle(PageStyle pageStyle)
pageStyle
- the new page styleSkin getSkin()
void setSkin(Skin skin)
skin
- the new skinjava.util.List<Asset> getAssets()
java.util.List<Member> getMembers()
Member getMember(java.lang.String identity, boolean isEntRole, java.lang.String role)
identity
- The user id to look up.isEntRole
- Whether the user id is an enterprise role or not.role
- The role being looked up.void addToMembers(Member member)
member
- The member to add to the Portal.void addToMembers(java.lang.String identity, boolean isEntrRole, java.lang.String roleName) throws MemberOperationException
identity
- The users identity.roleName
- The role name.isEntrRole
- Whether or not this is an enterprise role.MemberOperationException
- if there is an error adding the member.void removeFromMembers(Member member)
member
- the member to remove.void removeFromMembers(java.lang.String identity, boolean isEntRole, java.lang.String roleName) throws MemberOperationException
identity
- The member's identity.isEntRole
- Whether or not the identity is an enterprise role.roleName
- The member's role name.MemberOperationException
- if any error occurs on removing the member.void removeMembersWithRole(java.lang.String roleName) throws MemberOperationException
roleName
- The role name.MemberOperationException
- if any error occurs on removing the matching members.java.util.List<Page> getPageDrafts()
java.util.List<Page> getOverrideSecurityPages()
java.util.List<Page> getLockedPages()
java.util.Map<java.lang.String,java.lang.String> getCustomAttributes()
void setCustomAttributes(java.util.Map<java.lang.String,java.lang.String> customAttributes)
customAttributes
- map of custom attributesvoid addToCustomAttributes(java.lang.String key, java.lang.String value)
key
- of the custom attributevalue
- of the custom attributevoid updateCustomAttribute(java.lang.String key, java.lang.String value)
key
- of the custom attributevalue
- new value of the custom attributevoid removeFromCustomAttributes(java.lang.String key)
key
- of the custom attributevoid clearCustomAttributes()
java.lang.String getPageTemplateId()
void setPageTemplateById(java.lang.String id)
id
- of the page templatejava.lang.String getSkinId()
void setSkinById(java.lang.String id)
id
- of the skinjava.lang.String getNavigationRootNodeId()
void setNavigationRootNodeById(java.lang.String id)
id
- of the navigation root nodejava.lang.String getPagesResourceCatalogId()
void setPagesResourceCatalogById(java.lang.String id)
id
- of the resource catalogjava.lang.String getPageTemplatesResourceCatalogId()
void setPageTemplatesResourceCatalogById(java.lang.String id)
id
- of the resource catalogboolean isDefault()
java.util.List<PortalDeviceGroup> getDeviceGroups()
void setDeviceGroups(java.util.List<PortalDeviceGroup> groupList)
groupList
- list of device groupsvoid addToDeviceGroups(PortalDeviceGroup group)
group
- to be added to device group listvoid removeFromDeviceGroups(PortalDeviceGroup group)
group
- to be removed from the device group listPortalDeviceGroup getDeviceGroup(java.lang.String name)
name
- of the device group to be returnedjava.util.List<java.lang.String> getProvisionedServiceIds()