Archive

Posts Tagged ‘custom’

Syncplicity & Custom Plug-ins actions

August 21, 2019 Comments off

In the Previous post, I tried to explain the various customization and plug-ins that are available/offered with D2 in this post I will detail my experiences with the custom plug-ins , how to override a D2 Service and how we handle actions in D2. Let me start with a lighter concept with D2 before I jump onto the custom plugins and actions…

Syncplicity

Files can be shared directly from D2 to Syncplicity, allowing content to make available to users inside and outside an organization on multiple devices.  Folders may be synced from a menu option or from a workflow task. An icon is shown on the folder/content to indicate that the content has been synced. Automatic shares can be set up by an administrator and limited to specific document types.  Shares can also be manually initiated by authorized users.


Custom Plug-ins Custom Actions

1

 

2

3


Creating and Configuring a Custom Plug-in – Creating a New Plug-in Using the Template

  1. Rename the Your Co-PluginName project.
  2. Rename com.yourdomainhere.yourplugin in Eclipse to your domain namespace and package name for each package in the plug-in template.
  3. Optionally, rename PluginNameVersion.java and PluginNameVersion.properties ; If you rename the files, you must edit build.properties to reflect the name change.
  4. Edit build.properties and change project.version.file to reflect the package structure and the plug-in properties file name.
  5. Edit PluginNameVersion.properties
  6. Add the plug-in implementation classes. For example: *.webfs.services.content and *.webfs.services.create
  1. Re-run .\build\build.xml to rebuild the plug-in.

How do you create and handle actions, custom actions in D2?

  1. Create a Java class in the <project folder>/src/com/<your namespace>/<plug-in name>/webfs/services/custom/ folder.
  2. Import the d2fs resources:

import java.util.List;

import com.emc.d2fs.dctm.plugin.IPluginAction;

import com.emc.d2fs.dctm.web.services.D2fsContext;

import com.emc.d2fs.models.attribute.Attribute;

  1. Implement IPluginAction: public class <name of the class> implements IPluginAction
  2. The class must contain a method that has at minimum the following format:

public List<attribute> <methodName>(D2fsContext context) throws UnsupportedEncodingException, DfException, D2fsException;

  1. After building and installing the plug-in, create a menu button in D2 Config to allow end users to perform the custom action.

Throwing Exceptions

We can use Exception () and D2fsException () to report exceptions or errors encountered in Service extension or Custom Action code back to D2 and the end user. The following example shows how to use D2fsException ():

public List<Attribute> getCustomDownloadURL(D2fsContext context) throws UnsupportedEncodingException, DfException, D2fsException


Setting Up D2 Service Overrides

  1. Determine the <name of the service> : To determine the <name of the service>, replace the prefix I with D2. For example, IExportService uses the D2 service D2ExportService.
  1. Create a .java file named <name of the service>Plugin.java for the services class to configure the process in the <company name>-<plug-in name>/src/com/<your namespace>/<plug-in name>/webfs/services/<name of the service package>/ folder.
  2. Create and name the class <name of the service>Plugin. For example, the sample uses the service D2ExportService to name its class D2ExportServicePlugin.
  1. Extend the service class with the <name of the service> and implement the ID2fsPlugin interface. For example, the sample declares the class:

public class D2ExportServicePlugin extends D2ExportService implements ID2fsPlugin

The ID2fsPlugin interface forces the implementation of two methods:

  • getFullName: Returns the full plug-in name with its version number. The method is called by the About dialog box in D2.
  • getProductName: Returns the plug-in name to determine whether the plug-in should be executed based on the D2 configuration matrix.

Features of Windows Sharepoint Services(WSS)

June 16, 2010 Comments off

Windows Sharepoint Services 3.0 is enhanced and designed in order to deliver increased productivity by connecting people, documents and information. And also concentrates on getting more work done through sharing ideas and organize information in a better manner.

• Windows Sharepoint services 3.0 has improved UI with enhanced views and menus which helps in easy navigation of within the application and to the environment connected to the application. This feature reduces the cost involved in training resources newly introduced to the application.

• Windows Sharepoint services 3.0 is provided with Large list-indexing and cross list-indexing, these used along with specific list column properties will increase the capacity and performance and also creates a rich storage model.

• Windows Sharepoint Services 3.0 provides custom field types, which could be added as required and recurring events generated in calendars are enhanced.

• Effective easy to use collaborative tools like creation of work spaces, coordinating with calendars, communication portals, wikis and blogs, effective way of organizing documents and efficient offline synchronizing capabilities.

• Easy document management, content recovery and enhanced security features enable to create users and groups with more sophisticated controls.

• Windows Sharepoint services 3.0 provide item level security which ensures more security to the company resources. Windows Sharepoint Services uses standard windows/ASP.Net form/Web SSO authentication methods appropriately. Then the user is checked whether is authorized or not and allowed UI is visible/actionable to the user depending on the access control. This is called UI trimming. This feature helps in reduced webpage clutter and also supports easy navigation.

• Windows Sharepoint services 3.0 provide enhanced features of foundation for development and customization of web based applications and the built on applications.

• A Windows Sharepoint service 3.0 has enhanced content storage allowing more types of content to be stored and data integrity features.

%d bloggers like this: