com.sapportals.wcm.service.actioninbox

Interface IActionInboxCategory

All Known Implementing Classes:
AbstractActionInboxCategory

public interface IActionInboxCategory

A IActionInboxCategory describes the type of a IActionInboxNotification.
All IActionInboxNotifications and belong to such a category.

Copyright 2004 SAP AG


Field Summary
static int CREATION_ADD
          Creation adds.
static int CREATION_UPDATE
          Creation updates.
static int DELETION_ALLOWED
          Deletion of items is allowed.
static int DELETION_NOT_ALLOWED
          Deletion of items is not allowed.
static int DONE_HANDLING_AUTHORDONE
          Linked done items are marked as done for the done author, and marked as delete for all others.
static int DONE_HANDLING_DELETE
          Linked done items are deleted.
static int DONE_HANDLING_DONE
          Linked done items are all marked as done.
 
Method Summary
 IActionInboxAction getAction(String name)
          Get a specific action by name.
 IActionInboxAction[] getActions()
          Get a list of available actions for this category.
 int getCreationType()
          Check if creation of items is allowed for this category.
 int getDeletionType()
          Check if deletion of items is allowed for this category.
 String getDescription(Locale locale)
          Get a (displayable) description for this category.
 int getDoneHandlingType()
          Check if deletion of items is allowed for this category.
 String getID()
          Get the unique ID (the full path) of the category.
 IActionInboxItemCategory getItemCategory(IResourceContext context, com.sapportals.portal.security.usermanagement.IUMPrincipal owner)
          Get an item category for a specific user/group/role.
 String getName()
          Get the name of the category.
 IActionInboxCategory getParent()
          Get the parent category for this category.
 Properties getRequiredItemProperties()
          Get a list of with the required properties.
 String getResourceType()
           
 boolean isUsersOnly()
          Check if action inboxes for this category are for users only (will lead to autoresolving of recipients).
 

Field Detail

CREATION_UPDATE

public static final int CREATION_UPDATE
Creation updates.

See Also:
Constant Field Values

CREATION_ADD

public static final int CREATION_ADD
Creation adds.

See Also:
Constant Field Values

DELETION_NOT_ALLOWED

public static final int DELETION_NOT_ALLOWED
Deletion of items is not allowed.

See Also:
Constant Field Values

DELETION_ALLOWED

public static final int DELETION_ALLOWED
Deletion of items is allowed.

See Also:
Constant Field Values

DONE_HANDLING_DONE

public static final int DONE_HANDLING_DONE
Linked done items are all marked as done.

See Also:
Constant Field Values

DONE_HANDLING_AUTHORDONE

public static final int DONE_HANDLING_AUTHORDONE
Linked done items are marked as done for the done author, and marked as delete for all others.

See Also:
Constant Field Values

DONE_HANDLING_DELETE

public static final int DONE_HANDLING_DELETE
Linked done items are deleted.

See Also:
Constant Field Values
Method Detail

getID

public String getID()
Get the unique ID (the full path) of the category.

Returns:
a String with the unique ID for this category.

getName

public String getName()
Get the name of the category.
This name is only unique within the parent's name (see getID()).

Returns:
a String with the category's name.

getDescription

public String getDescription(Locale locale)
Get a (displayable) description for this category.

Parameters:
locale - a Locale with the preferred language to get the description for.
Returns:
a String with the description for this category.

getParent

public IActionInboxCategory getParent()
                               throws WcmException
Get the parent category for this category.

Returns:
a IActionInboxCategory with the parent category for this category or null if no such parent category exists.
Throws:
a - WcmException if an error occurred.
WcmException

getActions

public IActionInboxAction[] getActions()
                                throws WcmException
Get a list of available actions for this category.

Returns:
an array of IActionInboxAction for this category.
Throws:
a - WcmException if an error occurred.
WcmException

getAction

public IActionInboxAction getAction(String name)
                             throws WcmException
Get a specific action by name.

Parameters:
name - a String with the name of the action to get.
Returns:
a IActionInboxAction with the given name for this category.
Throws:
a - WcmException if an error occurred.
WcmException

getRequiredItemProperties

public Properties getRequiredItemProperties()
                                     throws WcmException
Get a list of with the required properties.
Warning: Only the keys are set for this property bag, all values are set to an empty string!

Returns:
a bag of Properties with the keys of the required properties for this category, all values are set to an empty string.
Throws:
WcmException

getItemCategory

public IActionInboxItemCategory getItemCategory(IResourceContext context,
                                                com.sapportals.portal.security.usermanagement.IUMPrincipal owner)
                                         throws WcmException
Get an item category for a specific user/group/role.

Parameters:
context - the IResourceContext to use for accessing the inbox.
owner - the IUMPrincipal of the user/group/role to get the inbox for.
Returns:
a IActionInboxItemCategory with the inbox category for the given user/group/role.
Throws:
a - WcmException if an error occurred.
WcmException

getResourceType

public String getResourceType()
Returns:
the Type of the ActionInboxCategory, e.g. used for OTH, is read from the xml-specification of the categories

getCreationType

public int getCreationType()
                    throws WcmException
Check if creation of items is allowed for this category.

Returns:
an int with the CREATION_... code.
Throws:
a - WcmException if an error occurred.
WcmException

getDeletionType

public int getDeletionType()
                    throws WcmException
Check if deletion of items is allowed for this category.

Returns:
an int with the DELETION_... code.
Throws:
a - WcmException if an error occurred.
WcmException

getDoneHandlingType

public int getDoneHandlingType()
                        throws WcmException
Check if deletion of items is allowed for this category.

Returns:
an int with the DONE_HANDLING_... code.
Throws:
a - WcmException if an error occurred.
WcmException

isUsersOnly

public boolean isUsersOnly()
                    throws WcmException
Check if action inboxes for this category are for users only (will lead to autoresolving of recipients).

Returns:
a boolean true if this category should send items to users only, false if roles/groups are allowed as recipients.
Throws:
a - WcmException if an error occurred.
WcmException


Copyright 2006 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Microsoft, Windows, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. Oracle is a registered trademark of Oracle Corporation. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc. HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C, World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Sun Microsystems, Inc. JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. MaxDB is a trademark of MySQL AB, Sweden. SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary. These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.