Java Doc for AliasService.java in  » ERP-CRM-Financial » sakai » org » sakaiproject » alias » api » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ERP CRM Financial » sakai » org.sakaiproject.alias.api 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.sakaiproject.alias.api.AliasService

All known Subclasses:   org.sakaiproject.alias.impl.BaseAliasService,
AliasService
public interface AliasService extends EntityProducer(Code)

AliasService provides a single unque namespace where Sakai entities can have alternate case-insenstive names.



Field Summary
final static  StringAPPLICATION_ID
     The type string for this application: should not change over time as it may be stored in various parts of persistent entities.
final static  StringREFERENCE_ROOT
     This string starts the references to resources in this service.
final static  StringSECURE_ADD_ALIAS
     Name for the event of adding an alias.
final static  StringSECURE_REMOVE_ALIAS
     Name for the event of removing an alias.
final static  StringSECURE_UPDATE_ALIAS
     Name for the event of updating an alias.


Method Summary
 AliasEditadd(String id)
     Add a new alias.
 StringaliasReference(String id)
     Access the internal reference which can be used to access the resource from within the system.
Parameters:
  id - The alias id string.
 booleanallowAdd()
     Check to see if the current user can add an alias.
 booleanallowEdit(String id)
     Check to see if the current user can edit this alias.
Parameters:
  id - The alias id string.
 booleanallowRemoveAlias(String alias)
     Check to see if the current user can remove this alias.
Parameters:
  alias - The alias.
 booleanallowRemoveTargetAliases(String target)
     Check to see if the current user can remove these aliasese for this target resource reference.
Parameters:
  target - The target resource reference string.
 booleanallowSetAlias(String alias, String target)
     Check if the current user has permission to set this alias.
Parameters:
  alias - The alias.
Parameters:
  target - The resource reference string alias target.
 voidcancel(AliasEdit edit)
     Cancel the changes made to a AliasEdit object, and release the lock.
 voidcommit(AliasEdit edit)
     Commit the changes made to a AliasEdit object, and release the lock.
 intcountAliases()
     Count all the aliases.
 intcountSearchAliases(String criteria)
     Count all the aliases that match this criteria in id or target.
 AliasEditedit(String id)
     Get a locked alias object for editing.
 ListgetAliases(String target)
     Find all the aliases defined for this target.
Parameters:
  target - The target resource reference string.
 ListgetAliases(String target, int first, int last)
     Find all the aliases defined for this target, within the record range given (sorted by id).
Parameters:
  target - The target resource reference string.
Parameters:
  first - The first record position to return.
Parameters:
  last - The last record position to return.
 ListgetAliases(int first, int last)
     Find all the aliases within the record range given (sorted by id).
Parameters:
  first - The first record position to return.
Parameters:
  last - The last record position to return.
 StringgetTarget(String alias)
     Find the target resource reference string associated with this alias.
Parameters:
  alias - The alias.
 voidremove(AliasEdit edit)
     Remove this alias information - it must be a user with a lock from edit().
 voidremoveAlias(String alias)
     Remove an alias.
 voidremoveTargetAliases(String target)
     Remove all aliases for this target resource reference, if any.
 ListsearchAliases(String criteria, int first, int last)
     Search all the aliases that match this criteria in id or target, returning a subset of records within the record range given (sorted by id).
Parameters:
  criteria - The search criteria.
Parameters:
  first - The first record position to return.
Parameters:
  last - The last record position to return.
 voidsetAlias(String alias, String target)
    

Field Detail
APPLICATION_ID
final static String APPLICATION_ID(Code)
The type string for this application: should not change over time as it may be stored in various parts of persistent entities.



REFERENCE_ROOT
final static String REFERENCE_ROOT(Code)
This string starts the references to resources in this service.



SECURE_ADD_ALIAS
final static String SECURE_ADD_ALIAS(Code)
Name for the event of adding an alias.



SECURE_REMOVE_ALIAS
final static String SECURE_REMOVE_ALIAS(Code)
Name for the event of removing an alias.



SECURE_UPDATE_ALIAS
final static String SECURE_UPDATE_ALIAS(Code)
Name for the event of updating an alias.





Method Detail
add
AliasEdit add(String id) throws IdInvalidException, IdUsedException, PermissionException(Code)
Add a new alias. Must commit() to make official, or cancel() when done!
Parameters:
  id - The alias id. A locked AliasEdit object (reserving the id).
exception:
  IdInvalidException - if the alias id is invalid.
exception:
  IdUsedException - if the alias id is already used.
exception:
  PermissionException - if the current user does not have permission to add an alias.



aliasReference
String aliasReference(String id)(Code)
Access the internal reference which can be used to access the resource from within the system.
Parameters:
  id - The alias id string. The the internal reference which can be used to access the resource from within the system.



allowAdd
boolean allowAdd()(Code)
Check to see if the current user can add an alias. true if the current user can add an alias, false if not.



allowEdit
boolean allowEdit(String id)(Code)
Check to see if the current user can edit this alias.
Parameters:
  id - The alias id string. true if the current user can edit this alias, false if not.



allowRemoveAlias
boolean allowRemoveAlias(String alias)(Code)
Check to see if the current user can remove this alias.
Parameters:
  alias - The alias. true if the current user can remove this alias, false if not.



allowRemoveTargetAliases
boolean allowRemoveTargetAliases(String target)(Code)
Check to see if the current user can remove these aliasese for this target resource reference.
Parameters:
  target - The target resource reference string. true if the current user can remove these aliasese for this target resource reference, false if not.



allowSetAlias
boolean allowSetAlias(String alias, String target)(Code)
Check if the current user has permission to set this alias.
Parameters:
  alias - The alias.
Parameters:
  target - The resource reference string alias target. true if the current user has permission to set this alias, false if not.



cancel
void cancel(AliasEdit edit)(Code)
Cancel the changes made to a AliasEdit object, and release the lock. The AliasEdit is disabled, and not to be used after this call.
Parameters:
  user - The AliasEdit object to commit.



commit
void commit(AliasEdit edit)(Code)
Commit the changes made to a AliasEdit object, and release the lock. The AliasEdit is disabled, and not to be used after this call.
Parameters:
  user - The AliasEdit object to commit.



countAliases
int countAliases()(Code)
Count all the aliases. The count of all aliases.



countSearchAliases
int countSearchAliases(String criteria)(Code)
Count all the aliases that match this criteria in id or target. The count of all aliases matching the criteria.



edit
AliasEdit edit(String id) throws IdUnusedException, PermissionException, InUseException(Code)
Get a locked alias object for editing. Must commit() to make official, or cancel() (or remove()) when done!
Parameters:
  id - The alias id string. An AliasEdit object for editing.
exception:
  IdUnusedException - if not found.
exception:
  PermissionException - if the current user does not have permission to mess with this alias.
exception:
  InUseException - if the Alias object is locked by someone else.



getAliases
List getAliases(String target)(Code)
Find all the aliases defined for this target.
Parameters:
  target - The target resource reference string. A list (Alias) of all the aliases defined for this target.



getAliases
List getAliases(String target, int first, int last)(Code)
Find all the aliases defined for this target, within the record range given (sorted by id).
Parameters:
  target - The target resource reference string.
Parameters:
  first - The first record position to return.
Parameters:
  last - The last record position to return. A list (Alias) of all the aliases defined for this target, within the record range given (sorted by id).



getAliases
List getAliases(int first, int last)(Code)
Find all the aliases within the record range given (sorted by id).
Parameters:
  first - The first record position to return.
Parameters:
  last - The last record position to return. A list (Alias) of all the aliases within the record range given (sorted by id).



getTarget
String getTarget(String alias) throws IdUnusedException(Code)
Find the target resource reference string associated with this alias.
Parameters:
  alias - The alias. The target resource reference string associated with this alias.
throws:
  IdUnusedException - if the alias is not defined.



remove
void remove(AliasEdit edit) throws PermissionException(Code)
Remove this alias information - it must be a user with a lock from edit(). The AliasEdit is disabled, and not to be used after this call.
Parameters:
  edit - The locked AliasEdit object to remove.
exception:
  PermissionException - if the current user does not have permission to remove this alias.



removeAlias
void removeAlias(String alias) throws IdUnusedException, PermissionException, InUseException(Code)
Remove an alias.
Parameters:
  alias - The alias.
exception:
  IdUnusedException - if not found.
exception:
  PermissionException - if the current user does not have permission to remove this alias.
exception:
  InUseException - if the Alias object is locked by someone else.



removeTargetAliases
void removeTargetAliases(String target) throws PermissionException(Code)
Remove all aliases for this target resource reference, if any.
Parameters:
  target - The target resource reference string.
throws:
  PermissionException - if the current user does not have permission to remove these aliases.



searchAliases
List searchAliases(String criteria, int first, int last)(Code)
Search all the aliases that match this criteria in id or target, returning a subset of records within the record range given (sorted by id).
Parameters:
  criteria - The search criteria.
Parameters:
  first - The first record position to return.
Parameters:
  last - The last record position to return. A list (Alias) of all the aliases matching the criteria, within the record range given (sorted by id).



setAlias
void setAlias(String alias, String target) throws IdUsedException, IdInvalidException, PermissionException(Code)
Allocate an alias for a resource
Parameters:
  alias - The alias.
Parameters:
  target - The resource reference string alias target.
throws:
  IdUsedException - if the alias is already used.
throws:
  IdInvalidException - if the alias id is invalid.
throws:
  PermissionException - if the current user does not have permission to set this alias.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.